0);\n}","funcProperties":{"__isSmartRef__":true,"id":529},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"528":{"this":{"__isSmartRef__":true,"id":248}},"529":{},"530":{"varMapping":{"__isSmartRef__":true,"id":531},"source":"function getDisplayStringFor(treeNode) {\n return treeNode.label + \": \" + (this.testMutabilityOf(treeNode.data) ? this.getTypeStringFor(treeNode.data) : treeNode.data)\n}","funcProperties":{"__isSmartRef__":true,"id":532},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"531":{"this":{"__isSmartRef__":true,"id":248}},"532":{},"533":{"varMapping":{"__isSmartRef__":true,"id":534},"source":"function getTypeStringFor(object) {\n var name; \n if (object.getName) name = object.getName();\n if (!name) {\n name = this.getClassNameOf(object);\n var displayTypeAndEmptiness = function (type, firstBracket, secondBracket) {\n if (name === type) {\n name = \"\";\n name += firstBracket; \n if (Properties.own(object).length > 0) name += \"...\";\n name += secondBracket;\n }\n }\n displayTypeAndEmptiness(\"object\", \"{\", \"}\");\n displayTypeAndEmptiness(\"array\", \"[\", \"]\");\n }\n return name;\n}","funcProperties":{"__isSmartRef__":true,"id":535},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"534":{"this":{"__isSmartRef__":true,"id":248}},"535":{},"536":{"varMapping":{"__isSmartRef__":true,"id":537},"source":"function update() {\n this.rootNode.update();\n}","funcProperties":{"__isSmartRef__":true,"id":538},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"537":{"this":{"__isSmartRef__":true,"id":248}},"538":{},"539":{"varMapping":{"__isSmartRef__":true,"id":540},"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":541},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"540":{"this":{"__isSmartRef__":true,"id":248}},"541":{},"542":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":543},"id":94,"renderContextTable":{"__isSmartRef__":true,"id":550},"textChunks":[{"__isSmartRef__":true,"id":551}],"eventHandler":{"__isSmartRef__":true,"id":553},"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":554},"priorExtent":{"__isSmartRef__":true,"id":555},"_MaxTextWidth":249.96194292390481,"_MinTextWidth":249.96194292390481,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":556},"doitContext":{"__isSmartRef__":true,"id":307},"previousSelection":[17,14],"priorSelectionRange":[9,0],"charsReplaced":"1,2","lastFindLoc":20,"__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"isBeingDragged":false,"showsHalos":false,"name":"Workspace","owner":{"__isSmartRef__":true,"id":247},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":557},"isCopyMorphRef":true,"morphRefId":1,"scriptAnnotations":{"__isSmartRef__":true,"id":558},"lastDragTime":1317079672221,"_Rotation":0,"_Scale":0.9980010000000006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":561},"__LivelyClassName__":"lively.morphic.Text"},"543":{"_Position":{"__isSmartRef__":true,"id":544},"renderContextTable":{"__isSmartRef__":true,"id":545},"_Extent":{"__isSmartRef__":true,"id":546},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":547},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":548},"_Fill":{"__isSmartRef__":true,"id":549},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"544":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"545":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"546":{"x":259.9619429239048,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"547":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"548":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"549":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"550":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"551":{"style":{"__isSmartRef__":true,"id":552},"chunkOwner":{"__isSmartRef__":true,"id":542},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"this.showfunction () {\n // for debugging\n newShowMorph(this)\n }","__LivelyClassName__":"lively.morphic.TextChunk"},"552":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"553":{"morph":{"__isSmartRef__":true,"id":542},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"554":{"x":10,"y":324.99799699599487,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"555":{"x":259.9619429239048,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"556":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true,"adjustForNewBounds":true},"557":{"x":164.35052570087606,"y":-17.252879506132672,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"558":{"reset":{"__isSmartRef__":true,"id":559}},"559":{"time":{"__isSmartRef__":true,"id":560},"user":"lauritz"},"560":{"isSerializedDate":true,"string":"Tue Sep 20 2011 16:26:58 GMT-0700 (PDT)"},"561":{"reset":{"__isSmartRef__":true,"id":562}},"562":{"varMapping":{"__isSmartRef__":true,"id":563},"source":"function reset() {\n this.doitContext = null;\n this.setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":564},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"563":{"this":{"__isSmartRef__":true,"id":542}},"564":{},"565":{"position":{"__isSmartRef__":true,"id":566},"_Extent":{"__isSmartRef__":true,"id":567},"_BorderWidth":2.6340000000000003,"_BorderColor":{"__isSmartRef__":true,"id":568},"_Fill":{"__isSmartRef__":true,"id":569},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":570},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":571},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"566":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"567":{"x":279.9619429239048,"y":415.9999999999999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"568":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"569":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"570":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"571":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"572":{"x":1.0000000000001137,"y":22.00000000000128,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"573":{"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":574}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"574":{"date":{"__isSmartRef__":true,"id":575},"author":"lauritz","message":"Disabled grabbing and dragging on other submorphs as well..."},"575":{"isSerializedDate":true,"string":"Tue Oct 25 2011 11:21:08 GMT-0700 (PDT)"},"576":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"577":{"morph":{"__isSmartRef__":true,"id":247},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"578":{"x":280.9619429239048,"y":415.9999999999999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"579":{"x":176.3545317088861,"y":19.080120160200238,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"580":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true,"layouter":{"__isSmartRef__":true,"id":581}},"581":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":247},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"582":{"reset":{"__isSmartRef__":true,"id":583},"moveFocusTo":{"__isSmartRef__":true,"id":585},"explore":{"__isSmartRef__":true,"id":587}},"583":{"time":{"__isSmartRef__":true,"id":584},"user":"lauritz"},"584":{"isSerializedDate":true,"string":"Tue Sep 20 2011 16:48:08 GMT-0700 (PDT)"},"585":{"time":{"__isSmartRef__":true,"id":586},"user":"lauritz"},"586":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:41:09 GMT-0700 (PDT)"},"587":{"time":{"__isSmartRef__":true,"id":588},"user":"lauritz"},"588":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:48:20 GMT-0700 (PDT)"},"589":{"reset":{"__isSmartRef__":true,"id":590},"moveFocusTo":{"__isSmartRef__":true,"id":593},"explore":{"__isSmartRef__":true,"id":596}},"590":{"varMapping":{"__isSmartRef__":true,"id":591},"source":"function reset() {\n this.workspace.reset();\n this.treeView.reset();\n this.focusedNode = null;\n}","funcProperties":{"__isSmartRef__":true,"id":592},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"591":{"this":{"__isSmartRef__":true,"id":247}},"592":{},"593":{"varMapping":{"__isSmartRef__":true,"id":594},"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 \n this.focusedNode.text.setFill(this.focusedNode.treeView.colors.focusedText);\n}","funcProperties":{"__isSmartRef__":true,"id":595},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"594":{"this":{"__isSmartRef__":true,"id":247}},"595":{},"596":{"varMapping":{"__isSmartRef__":true,"id":597},"source":"function explore(object) {\n this.reset();\n this.treeView.renderTree(object);\n this.moveFocusTo(this.treeView.rootNode);\n}","funcProperties":{"__isSmartRef__":true,"id":598},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"597":{"this":{"__isSmartRef__":true,"id":247}},"598":{},"599":{"renderContextTable":{"__isSmartRef__":true,"id":600},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":601},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":602},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"600":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"601":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"602":{"x":281.49672894514134,"y":437.92138184230294,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"603":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"604":{"morph":{"__isSmartRef__":true,"id":62},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"605":{"adjustForNewBounds":true},"606":{"x":962.4041817252618,"y":258.18138870835014,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"607":{"x":281.49672894514134,"y":437.92138184230294,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"608":{"x":0,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"609":{"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"A Smalltalk-like Explorer. Displays object properties in a tree and provides a small workspace. The workspace's context is set to the last clicked tree node.","migrationLevel":4,"partName":"Explorer","changes":[{"__isSmartRef__":true,"id":610},{"__isSmartRef__":true,"id":612},{"__isSmartRef__":true,"id":614}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"610":{"date":{"__isSmartRef__":true,"id":611},"author":"lauritz","message":"Disabled grabbing and dragging on other morphs as well."},"611":{"isSerializedDate":true,"string":"Tue Oct 25 2011 11:23:10 GMT-0700 (PDT)"},"612":{"date":{"__isSmartRef__":true,"id":613},"author":"lauritz","message":"Disabled dragging and grabbing on tree nodes. Those should only be clickable."},"613":{"isSerializedDate":true,"string":"Tue Oct 25 2011 10:25:14 GMT-0700 (PDT)"},"614":{"date":{"__isSmartRef__":true,"id":615},"author":"lauritz","message":"Fixed a bug by adding a condition to getClassNameOf. In case an object has no constructor."},"615":{"isSerializedDate":true,"string":"Tue Oct 25 2011 13:37:11 GMT-0700 (PDT)"},"616":{"x":1157,"y":266,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"617":{"explore":{"__isSmartRef__":true,"id":618},"reset":{"__isSmartRef__":true,"id":620}},"618":{"time":{"__isSmartRef__":true,"id":619},"user":"lauritz"},"619":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:25:04 GMT-0700 (PDT)"},"620":{"time":{"__isSmartRef__":true,"id":621},"user":"lauritz"},"621":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:25:04 GMT-0700 (PDT)"},"622":{"explore":{"__isSmartRef__":true,"id":623},"reset":{"__isSmartRef__":true,"id":626}},"623":{"varMapping":{"__isSmartRef__":true,"id":624},"source":"function explore(object) {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":625},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"624":{"this":{"__isSmartRef__":true,"id":62}},"625":{},"626":{"varMapping":{"__isSmartRef__":true,"id":627},"source":"function reset() {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":628},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"627":{"this":{"__isSmartRef__":true,"id":62}},"628":{},"629":{"submorphs":[{"__isSmartRef__":true,"id":630},{"__isSmartRef__":true,"id":772}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1346},"id":92,"renderContextTable":{"__isSmartRef__":true,"id":1350},"eventHandler":{"__isSmartRef__":true,"id":1351},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1352},"LK2":true,"_Position":{"__isSmartRef__":true,"id":1353},"priorExtent":{"__isSmartRef__":true,"id":1354},"targetMorph":{"__isSmartRef__":true,"id":772},"titleBar":{"__isSmartRef__":true,"id":630},"contentOffset":{"__isSmartRef__":true,"id":1345},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":0},"highlighted":true,"prevDragPos":{"__isSmartRef__":true,"id":1355},"isBeingDragged":false,"prevScroll":[0,0],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"630":{"submorphs":[{"__isSmartRef__":true,"id":631},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":692},{"__isSmartRef__":true,"id":726}],"scripts":[],"shape":{"__isSmartRef__":true,"id":761},"id":93,"renderContextTable":{"__isSmartRef__":true,"id":767},"eventHandler":{"__isSmartRef__":true,"id":768},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":769},"_Position":{"__isSmartRef__":true,"id":770},"windowMorph":{"__isSmartRef__":true,"id":629},"label":{"__isSmartRef__":true,"id":631},"closeButton":{"__isSmartRef__":true,"id":645},"menuButton":{"__isSmartRef__":true,"id":692},"collapseButton":{"__isSmartRef__":true,"id":726},"priorExtent":{"__isSmartRef__":true,"id":771},"owner":{"__isSmartRef__":true,"id":629},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"631":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":632},"id":94,"renderContextTable":{"__isSmartRef__":true,"id":638},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":639}],"eventHandler":{"__isSmartRef__":true,"id":641},"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":642},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":630},"priorExtent":{"__isSmartRef__":true,"id":643},"_MaxTextWidth":761,"_MinTextWidth":761,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":644},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"632":{"_Position":{"__isSmartRef__":true,"id":633},"renderContextTable":{"__isSmartRef__":true,"id":634},"_Extent":{"__isSmartRef__":true,"id":635},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":636},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"633":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"635":{"x":761,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"636":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"637":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"638":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"639":{"style":{"__isSmartRef__":true,"id":640},"chunkOwner":{"__isSmartRef__":true,"id":631},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"640":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"641":{"morph":{"__isSmartRef__":true,"id":631},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"642":{"resizeWidth":true},"643":{"x":761,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"644":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"645":{"submorphs":[{"__isSmartRef__":true,"id":646}],"scripts":[],"shape":{"__isSmartRef__":true,"id":658},"id":95,"renderContextTable":{"__isSmartRef__":true,"id":674},"eventHandler":{"__isSmartRef__":true,"id":675},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":676},"priorExtent":{"__isSmartRef__":true,"id":677},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":664},"lighterFill":{"__isSmartRef__":true,"id":678},"label":{"__isSmartRef__":true,"id":646},"owner":{"__isSmartRef__":true,"id":630},"layout":{"__isSmartRef__":true,"id":687},"attributeConnections":[{"__isSmartRef__":true,"id":688},{"__isSmartRef__":true,"id":690}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"646":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":647},"id":96,"renderContextTable":{"__isSmartRef__":true,"id":652},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":653}],"eventHandler":{"__isSmartRef__":true,"id":655},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":656},"priorExtent":{"__isSmartRef__":true,"id":657},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":645},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"647":{"_Position":{"__isSmartRef__":true,"id":648},"renderContextTable":{"__isSmartRef__":true,"id":649},"_Extent":{"__isSmartRef__":true,"id":650},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":651},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"648":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"649":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"650":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"651":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"652":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"653":{"style":{"__isSmartRef__":true,"id":654},"chunkOwner":{"__isSmartRef__":true,"id":646},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"654":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"655":{"morph":{"__isSmartRef__":true,"id":646},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"656":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"657":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"658":{"_Position":{"__isSmartRef__":true,"id":659},"renderContextTable":{"__isSmartRef__":true,"id":660},"_Extent":{"__isSmartRef__":true,"id":661},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":662},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":663},"_Fill":{"__isSmartRef__":true,"id":664},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"659":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"660":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"661":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"662":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"663":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"664":{"stops":[{"__isSmartRef__":true,"id":665},{"__isSmartRef__":true,"id":667},{"__isSmartRef__":true,"id":669},{"__isSmartRef__":true,"id":671}],"vector":{"__isSmartRef__":true,"id":673},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"665":{"offset":0,"color":{"__isSmartRef__":true,"id":666}},"666":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"667":{"offset":0.4,"color":{"__isSmartRef__":true,"id":668}},"668":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"669":{"offset":0.6,"color":{"__isSmartRef__":true,"id":670}},"670":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"671":{"offset":1,"color":{"__isSmartRef__":true,"id":672}},"672":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"673":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"674":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"675":{"morph":{"__isSmartRef__":true,"id":645},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"676":{"x":800,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"677":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"678":{"stops":[{"__isSmartRef__":true,"id":679},{"__isSmartRef__":true,"id":681},{"__isSmartRef__":true,"id":683},{"__isSmartRef__":true,"id":685}],"vector":{"__isSmartRef__":true,"id":673},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"679":{"offset":0,"color":{"__isSmartRef__":true,"id":680}},"680":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"681":{"offset":0.4,"color":{"__isSmartRef__":true,"id":682}},"682":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"683":{"offset":0.6,"color":{"__isSmartRef__":true,"id":684}},"684":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"685":{"offset":1,"color":{"__isSmartRef__":true,"id":686}},"686":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"687":{"moveHorizontal":true},"688":{"sourceObj":{"__isSmartRef__":true,"id":645},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":629},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":689},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"689":{"source":{"__isSmartRef__":true,"id":645},"target":{"__isSmartRef__":true,"id":629}},"690":{"sourceObj":{"__isSmartRef__":true,"id":645},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":629},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":691},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"691":{"source":{"__isSmartRef__":true,"id":645},"target":{"__isSmartRef__":true,"id":629}},"692":{"submorphs":[{"__isSmartRef__":true,"id":693}],"scripts":[],"shape":{"__isSmartRef__":true,"id":704},"id":97,"renderContextTable":{"__isSmartRef__":true,"id":709},"eventHandler":{"__isSmartRef__":true,"id":710},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":711},"priorExtent":{"__isSmartRef__":true,"id":712},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":664},"lighterFill":{"__isSmartRef__":true,"id":713},"label":{"__isSmartRef__":true,"id":693},"owner":{"__isSmartRef__":true,"id":630},"attributeConnections":[{"__isSmartRef__":true,"id":722},{"__isSmartRef__":true,"id":724}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"693":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":694},"id":98,"renderContextTable":{"__isSmartRef__":true,"id":698},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":699}],"eventHandler":{"__isSmartRef__":true,"id":701},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":702},"priorExtent":{"__isSmartRef__":true,"id":703},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":692},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"694":{"_Position":{"__isSmartRef__":true,"id":695},"renderContextTable":{"__isSmartRef__":true,"id":696},"_Extent":{"__isSmartRef__":true,"id":697},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":651},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"695":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"696":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"697":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"698":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"699":{"style":{"__isSmartRef__":true,"id":700},"chunkOwner":{"__isSmartRef__":true,"id":693},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"700":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"701":{"morph":{"__isSmartRef__":true,"id":693},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"702":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"703":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"704":{"_Position":{"__isSmartRef__":true,"id":705},"renderContextTable":{"__isSmartRef__":true,"id":706},"_Extent":{"__isSmartRef__":true,"id":707},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":708},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":663},"_Fill":{"__isSmartRef__":true,"id":664},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"705":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"706":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"707":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"708":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"709":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"710":{"morph":{"__isSmartRef__":true,"id":692},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"711":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"712":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"713":{"stops":[{"__isSmartRef__":true,"id":714},{"__isSmartRef__":true,"id":716},{"__isSmartRef__":true,"id":718},{"__isSmartRef__":true,"id":720}],"vector":{"__isSmartRef__":true,"id":673},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"714":{"offset":0,"color":{"__isSmartRef__":true,"id":715}},"715":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"716":{"offset":0.4,"color":{"__isSmartRef__":true,"id":717}},"717":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"718":{"offset":0.6,"color":{"__isSmartRef__":true,"id":719}},"719":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"720":{"offset":1,"color":{"__isSmartRef__":true,"id":721}},"721":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"722":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":629},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":723},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"723":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":629}},"724":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":629},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":725},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"725":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":629}},"726":{"submorphs":[{"__isSmartRef__":true,"id":727}],"scripts":[],"shape":{"__isSmartRef__":true,"id":738},"id":99,"renderContextTable":{"__isSmartRef__":true,"id":743},"eventHandler":{"__isSmartRef__":true,"id":744},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":745},"priorExtent":{"__isSmartRef__":true,"id":746},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":664},"lighterFill":{"__isSmartRef__":true,"id":747},"label":{"__isSmartRef__":true,"id":727},"owner":{"__isSmartRef__":true,"id":630},"layout":{"__isSmartRef__":true,"id":756},"attributeConnections":[{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":759}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"727":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":728},"id":100,"renderContextTable":{"__isSmartRef__":true,"id":732},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":733}],"eventHandler":{"__isSmartRef__":true,"id":735},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":736},"priorExtent":{"__isSmartRef__":true,"id":737},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":726},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"728":{"_Position":{"__isSmartRef__":true,"id":729},"renderContextTable":{"__isSmartRef__":true,"id":730},"_Extent":{"__isSmartRef__":true,"id":731},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":651},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":637},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"729":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"730":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"731":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"732":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"733":{"style":{"__isSmartRef__":true,"id":734},"chunkOwner":{"__isSmartRef__":true,"id":727},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"734":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"735":{"morph":{"__isSmartRef__":true,"id":727},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"736":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"737":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"738":{"_Position":{"__isSmartRef__":true,"id":739},"renderContextTable":{"__isSmartRef__":true,"id":740},"_Extent":{"__isSmartRef__":true,"id":741},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":742},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":663},"_Fill":{"__isSmartRef__":true,"id":664},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"739":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"740":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"741":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"742":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"743":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"744":{"morph":{"__isSmartRef__":true,"id":726},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"745":{"x":781,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"746":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"747":{"stops":[{"__isSmartRef__":true,"id":748},{"__isSmartRef__":true,"id":750},{"__isSmartRef__":true,"id":752},{"__isSmartRef__":true,"id":754}],"vector":{"__isSmartRef__":true,"id":673},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"748":{"offset":0,"color":{"__isSmartRef__":true,"id":749}},"749":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"750":{"offset":0.4,"color":{"__isSmartRef__":true,"id":751}},"751":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"752":{"offset":0.6,"color":{"__isSmartRef__":true,"id":753}},"753":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"754":{"offset":1,"color":{"__isSmartRef__":true,"id":755}},"755":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"756":{"moveHorizontal":true},"757":{"sourceObj":{"__isSmartRef__":true,"id":726},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":629},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":758},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"758":{"source":{"__isSmartRef__":true,"id":726},"target":{"__isSmartRef__":true,"id":629}},"759":{"sourceObj":{"__isSmartRef__":true,"id":726},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":629},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":760},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"760":{"source":{"__isSmartRef__":true,"id":726},"target":{"__isSmartRef__":true,"id":629}},"761":{"_Position":{"__isSmartRef__":true,"id":762},"renderContextTable":{"__isSmartRef__":true,"id":763},"_Extent":{"__isSmartRef__":true,"id":764},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":765},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":766},"_Fill":{"__isSmartRef__":true,"id":200},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"762":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"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":820,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"765":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"766":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"767":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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":630},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"769":{"resizeWidth":true,"adjustForNewBounds":true},"770":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"771":{"x":820,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"772":{"submorphs":[{"__isSmartRef__":true,"id":773},{"__isSmartRef__":true,"id":1258},{"__isSmartRef__":true,"id":1292},{"__isSmartRef__":true,"id":1053},{"__isSmartRef__":true,"id":1129},{"__isSmartRef__":true,"id":1164},{"__isSmartRef__":true,"id":1199},{"__isSmartRef__":true,"id":1326},{"__isSmartRef__":true,"id":1234},{"__isSmartRef__":true,"id":791},{"__isSmartRef__":true,"id":837},{"__isSmartRef__":true,"id":872},{"__isSmartRef__":true,"id":907},{"__isSmartRef__":true,"id":942},{"__isSmartRef__":true,"id":977},{"__isSmartRef__":true,"id":1012}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1336},"id":1,"renderContextTable":{"__isSmartRef__":true,"id":1342},"eventHandler":{"__isSmartRef__":true,"id":1343},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1344},"_Position":{"__isSmartRef__":true,"id":1345},"locationPane":{"__isSmartRef__":true,"id":773},"codeBaseDirBtn":{"__isSmartRef__":true,"id":1258},"localDirBtn":{"__isSmartRef__":true,"id":1292},"Pane1":{"__isSmartRef__":true,"id":1053},"Pane2":{"__isSmartRef__":true,"id":1129},"Pane3":{"__isSmartRef__":true,"id":1164},"Pane4":{"__isSmartRef__":true,"id":1199},"midResizer":{"__isSmartRef__":true,"id":1326},"sourcePane":{"__isSmartRef__":true,"id":1234},"ownerWidget":{"__isSmartRef__":true,"id":789},"owner":{"__isSmartRef__":true,"id":629},"__LivelyClassName__":"lively.ide.BrowserPanel","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"773":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":774},"id":2,"renderContextTable":{"__isSmartRef__":true,"id":781},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":782}],"eventHandler":{"__isSmartRef__":true,"id":784},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":785},"priorExtent":{"__isSmartRef__":true,"id":786},"_MaxTextWidth":646,"_MinTextWidth":646,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":772},"isInputLine":true,"layout":{"__isSmartRef__":true,"id":787},"noEval":true,"styleClass":["Browser_locationInput"],"attributeConnections":[{"__isSmartRef__":true,"id":788}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"774":{"_Position":{"__isSmartRef__":true,"id":775},"renderContextTable":{"__isSmartRef__":true,"id":776},"_Extent":{"__isSmartRef__":true,"id":777},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":{"__isSmartRef__":true,"id":780},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"775":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"776":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"777":{"x":656,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"778":{"x":4,"y":2,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"779":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"780":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"781":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"782":{"style":{"__isSmartRef__":true,"id":783},"chunkOwner":{"__isSmartRef__":true,"id":773},"storedString":"http://lively-kernel.org/repository/webwerkstatt/core/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"783":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"784":{"morph":{"__isSmartRef__":true,"id":773},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"785":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"786":{"x":656,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"787":{"resizeWidth":true},"788":{"sourceObj":{"__isSmartRef__":true,"id":773},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"setTargetURL","converter":null,"converterString":"function (value) { return new URL(value) }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1257},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"789":{"buttonCommands":[{"__isSmartRef__":true,"id":790},{"__isSmartRef__":true,"id":836},{"__isSmartRef__":true,"id":871},{"__isSmartRef__":true,"id":906},{"__isSmartRef__":true,"id":941},{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":1011}],"RootFilters":[{"__isSmartRef__":true,"id":1046}],"Pane1Filters":[{"__isSmartRef__":true,"id":1047},{"__isSmartRef__":true,"id":1048}],"Pane2Filters":[{"__isSmartRef__":true,"id":1049}],"Pane3Filters":[{"__isSmartRef__":true,"id":1050}],"Pane4Filters":[{"__isSmartRef__":true,"id":1051}],"evaluate":true,"panel":{"__isSmartRef__":true,"id":772},"attributeConnections":[{"__isSmartRef__":true,"id":1052},{"__isSmartRef__":true,"id":1128},{"__isSmartRef__":true,"id":1163},{"__isSmartRef__":true,"id":1198},{"__isSmartRef__":true,"id":1233},{"__isSmartRef__":true,"id":1251}],"SourceString":"-----","sourceString":"-----","doNotSerialize":["$$targetURL"],"doNotCopyProperties":["$$targetURL"],"targetURL":{"__isSmartRef__":true,"id":1256},"_rootNode":{"__isSmartRef__":true,"id":1064},"Pane1Selection":null,"pane1Selection":null,"Pane2Selection":null,"pane2Selection":null,"Pane3Selection":null,"pane3Selection":null,"Pane4Selection":null,"pane4Selection":null,"Pane4Content":["-----"],"Pane3Content":["-----"],"Pane2Content":["-----"],"Pane1Content":[{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1090},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1092},{"__isSmartRef__":true,"id":1093},{"__isSmartRef__":true,"id":1094},{"__isSmartRef__":true,"id":1095},{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1097},{"__isSmartRef__":true,"id":1098},{"__isSmartRef__":true,"id":1099},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1101}],"__LivelyClassName__":"lively.ide.SystemBrowser","__SourceModuleName__":"Global.lively.ide.SystemCodeBrowser"},"790":{"browser":{"__isSmartRef__":true,"id":789},"button":{"__isSmartRef__":true,"id":791},"__LivelyClassName__":"lively.ide.AddNewFileCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"791":{"submorphs":[{"__isSmartRef__":true,"id":792}],"scripts":[],"shape":{"__isSmartRef__":true,"id":804},"id":13,"renderContextTable":{"__isSmartRef__":true,"id":820},"eventHandler":{"__isSmartRef__":true,"id":821},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":822},"priorExtent":{"__isSmartRef__":true,"id":823},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":824},"label":{"__isSmartRef__":true,"id":792},"command":{"__isSmartRef__":true,"id":790},"attributeConnections":[{"__isSmartRef__":true,"id":833},{"__isSmartRef__":true,"id":834}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":772},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"792":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":793},"id":14,"renderContextTable":{"__isSmartRef__":true,"id":798},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":799}],"eventHandler":{"__isSmartRef__":true,"id":801},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":802},"priorExtent":{"__isSmartRef__":true,"id":803},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":791},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"793":{"_Position":{"__isSmartRef__":true,"id":794},"renderContextTable":{"__isSmartRef__":true,"id":795},"_Extent":{"__isSmartRef__":true,"id":796},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":797},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"794":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"795":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"796":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"797":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"798":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"799":{"style":{"__isSmartRef__":true,"id":800},"chunkOwner":{"__isSmartRef__":true,"id":792},"storedString":"Add module","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"800":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"801":{"morph":{"__isSmartRef__":true,"id":792},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"802":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"803":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"804":{"_Position":{"__isSmartRef__":true,"id":805},"renderContextTable":{"__isSmartRef__":true,"id":806},"_Extent":{"__isSmartRef__":true,"id":807},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":808},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"805":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"806":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"807":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"808":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"809":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"810":{"stops":[{"__isSmartRef__":true,"id":811},{"__isSmartRef__":true,"id":813},{"__isSmartRef__":true,"id":815},{"__isSmartRef__":true,"id":817}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"811":{"offset":0,"color":{"__isSmartRef__":true,"id":812}},"812":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"813":{"offset":0.4,"color":{"__isSmartRef__":true,"id":814}},"814":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"815":{"offset":0.6,"color":{"__isSmartRef__":true,"id":816}},"816":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"817":{"offset":1,"color":{"__isSmartRef__":true,"id":818}},"818":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"819":{"x":0,"y":0,"width":0,"height":1,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"820":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"821":{"morph":{"__isSmartRef__":true,"id":791},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"822":{"x":0,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"823":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"824":{"stops":[{"__isSmartRef__":true,"id":825},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":829},{"__isSmartRef__":true,"id":831}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"825":{"offset":0,"color":{"__isSmartRef__":true,"id":826}},"826":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"827":{"offset":0.4,"color":{"__isSmartRef__":true,"id":828}},"828":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"829":{"offset":0.6,"color":{"__isSmartRef__":true,"id":830}},"830":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"831":{"offset":1,"color":{"__isSmartRef__":true,"id":832}},"832":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"833":{"sourceObj":{"__isSmartRef__":true,"id":791},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":790},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"834":{"sourceObj":{"__isSmartRef__":true,"id":791},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":791},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":835},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"835":{"source":{"__isSmartRef__":true,"id":791},"target":{"__isSmartRef__":true,"id":791}},"836":{"browser":{"__isSmartRef__":true,"id":789},"button":{"__isSmartRef__":true,"id":837},"__LivelyClassName__":"lively.ide.AllModulesLoadCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"837":{"submorphs":[{"__isSmartRef__":true,"id":838}],"scripts":[],"shape":{"__isSmartRef__":true,"id":850},"id":15,"renderContextTable":{"__isSmartRef__":true,"id":855},"eventHandler":{"__isSmartRef__":true,"id":856},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":857},"priorExtent":{"__isSmartRef__":true,"id":858},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":859},"label":{"__isSmartRef__":true,"id":838},"command":{"__isSmartRef__":true,"id":836},"attributeConnections":[{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":869}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":772},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"838":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":839},"id":16,"renderContextTable":{"__isSmartRef__":true,"id":844},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":845}],"eventHandler":{"__isSmartRef__":true,"id":847},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":848},"priorExtent":{"__isSmartRef__":true,"id":849},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":837},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"839":{"_Position":{"__isSmartRef__":true,"id":840},"renderContextTable":{"__isSmartRef__":true,"id":841},"_Extent":{"__isSmartRef__":true,"id":842},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":843},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"840":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"841":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"842":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"843":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"844":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"845":{"style":{"__isSmartRef__":true,"id":846},"chunkOwner":{"__isSmartRef__":true,"id":838},"storedString":"Load all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"846":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"847":{"morph":{"__isSmartRef__":true,"id":838},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"848":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"849":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"850":{"_Position":{"__isSmartRef__":true,"id":851},"renderContextTable":{"__isSmartRef__":true,"id":852},"_Extent":{"__isSmartRef__":true,"id":853},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":854},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"851":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"852":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"853":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"854":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"855":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"856":{"morph":{"__isSmartRef__":true,"id":837},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"857":{"x":117.14285714285714,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"858":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"859":{"stops":[{"__isSmartRef__":true,"id":860},{"__isSmartRef__":true,"id":862},{"__isSmartRef__":true,"id":864},{"__isSmartRef__":true,"id":866}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"860":{"offset":0,"color":{"__isSmartRef__":true,"id":861}},"861":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"862":{"offset":0.4,"color":{"__isSmartRef__":true,"id":863}},"863":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"864":{"offset":0.6,"color":{"__isSmartRef__":true,"id":865}},"865":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"866":{"offset":1,"color":{"__isSmartRef__":true,"id":867}},"867":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"868":{"sourceObj":{"__isSmartRef__":true,"id":837},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":836},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"869":{"sourceObj":{"__isSmartRef__":true,"id":837},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":837},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":870},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"870":{"source":{"__isSmartRef__":true,"id":837},"target":{"__isSmartRef__":true,"id":837}},"871":{"browser":{"__isSmartRef__":true,"id":789},"button":{"__isSmartRef__":true,"id":872},"__LivelyClassName__":"lively.ide.ShowLineNumbersCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"872":{"submorphs":[{"__isSmartRef__":true,"id":873}],"scripts":[],"shape":{"__isSmartRef__":true,"id":885},"id":17,"renderContextTable":{"__isSmartRef__":true,"id":890},"eventHandler":{"__isSmartRef__":true,"id":891},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":892},"priorExtent":{"__isSmartRef__":true,"id":893},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":894},"label":{"__isSmartRef__":true,"id":873},"command":{"__isSmartRef__":true,"id":871},"attributeConnections":[{"__isSmartRef__":true,"id":903},{"__isSmartRef__":true,"id":904}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":772},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"873":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":874},"id":18,"renderContextTable":{"__isSmartRef__":true,"id":879},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":880}],"eventHandler":{"__isSmartRef__":true,"id":882},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":883},"priorExtent":{"__isSmartRef__":true,"id":884},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":872},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"874":{"_Position":{"__isSmartRef__":true,"id":875},"renderContextTable":{"__isSmartRef__":true,"id":876},"_Extent":{"__isSmartRef__":true,"id":877},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":878},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"875":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"876":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"877":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"878":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"879":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"880":{"style":{"__isSmartRef__":true,"id":881},"chunkOwner":{"__isSmartRef__":true,"id":873},"storedString":"LineNo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"881":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"882":{"morph":{"__isSmartRef__":true,"id":873},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"883":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"884":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"885":{"_Position":{"__isSmartRef__":true,"id":886},"renderContextTable":{"__isSmartRef__":true,"id":887},"_Extent":{"__isSmartRef__":true,"id":888},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":889},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"886":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"887":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"888":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"889":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"890":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"891":{"morph":{"__isSmartRef__":true,"id":872},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"892":{"x":234.28571428571428,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"893":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"894":{"stops":[{"__isSmartRef__":true,"id":895},{"__isSmartRef__":true,"id":897},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":901}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"895":{"offset":0,"color":{"__isSmartRef__":true,"id":896}},"896":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"897":{"offset":0.4,"color":{"__isSmartRef__":true,"id":898}},"898":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"899":{"offset":0.6,"color":{"__isSmartRef__":true,"id":900}},"900":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"901":{"offset":1,"color":{"__isSmartRef__":true,"id":902}},"902":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"903":{"sourceObj":{"__isSmartRef__":true,"id":872},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":871},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"904":{"sourceObj":{"__isSmartRef__":true,"id":872},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":872},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":905},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"905":{"source":{"__isSmartRef__":true,"id":872},"target":{"__isSmartRef__":true,"id":872}},"906":{"browser":{"__isSmartRef__":true,"id":789},"button":{"__isSmartRef__":true,"id":907},"__LivelyClassName__":"lively.ide.ParserDebugCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"907":{"submorphs":[{"__isSmartRef__":true,"id":908}],"scripts":[],"shape":{"__isSmartRef__":true,"id":920},"id":19,"renderContextTable":{"__isSmartRef__":true,"id":925},"eventHandler":{"__isSmartRef__":true,"id":926},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":927},"priorExtent":{"__isSmartRef__":true,"id":928},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":929},"label":{"__isSmartRef__":true,"id":908},"command":{"__isSmartRef__":true,"id":906},"attributeConnections":[{"__isSmartRef__":true,"id":938},{"__isSmartRef__":true,"id":939}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":772},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"908":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":909},"id":20,"renderContextTable":{"__isSmartRef__":true,"id":914},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":915}],"eventHandler":{"__isSmartRef__":true,"id":917},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":918},"priorExtent":{"__isSmartRef__":true,"id":919},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":907},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"909":{"_Position":{"__isSmartRef__":true,"id":910},"renderContextTable":{"__isSmartRef__":true,"id":911},"_Extent":{"__isSmartRef__":true,"id":912},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":913},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"910":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"911":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"912":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"913":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"914":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"915":{"style":{"__isSmartRef__":true,"id":916},"chunkOwner":{"__isSmartRef__":true,"id":908},"storedString":"Dbg errors is off","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"916":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"917":{"morph":{"__isSmartRef__":true,"id":908},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"918":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"919":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"920":{"_Position":{"__isSmartRef__":true,"id":921},"renderContextTable":{"__isSmartRef__":true,"id":922},"_Extent":{"__isSmartRef__":true,"id":923},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":924},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"921":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"922":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"923":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"924":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"925":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"926":{"morph":{"__isSmartRef__":true,"id":907},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"927":{"x":351.42857142857144,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"928":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"929":{"stops":[{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":932},{"__isSmartRef__":true,"id":934},{"__isSmartRef__":true,"id":936}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"930":{"offset":0,"color":{"__isSmartRef__":true,"id":931}},"931":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"932":{"offset":0.4,"color":{"__isSmartRef__":true,"id":933}},"933":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"934":{"offset":0.6,"color":{"__isSmartRef__":true,"id":935}},"935":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"936":{"offset":1,"color":{"__isSmartRef__":true,"id":937}},"937":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"938":{"sourceObj":{"__isSmartRef__":true,"id":907},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":906},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"939":{"sourceObj":{"__isSmartRef__":true,"id":907},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":907},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":940},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"940":{"source":{"__isSmartRef__":true,"id":907},"target":{"__isSmartRef__":true,"id":907}},"941":{"browser":{"__isSmartRef__":true,"id":789},"button":{"__isSmartRef__":true,"id":942},"__LivelyClassName__":"lively.ide.EvaluateCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"942":{"submorphs":[{"__isSmartRef__":true,"id":943}],"scripts":[],"shape":{"__isSmartRef__":true,"id":955},"id":21,"renderContextTable":{"__isSmartRef__":true,"id":960},"eventHandler":{"__isSmartRef__":true,"id":961},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":962},"priorExtent":{"__isSmartRef__":true,"id":963},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":964},"label":{"__isSmartRef__":true,"id":943},"command":{"__isSmartRef__":true,"id":941},"attributeConnections":[{"__isSmartRef__":true,"id":973},{"__isSmartRef__":true,"id":974}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":772},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"943":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":944},"id":22,"renderContextTable":{"__isSmartRef__":true,"id":949},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":950}],"eventHandler":{"__isSmartRef__":true,"id":952},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":953},"priorExtent":{"__isSmartRef__":true,"id":954},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":942},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"944":{"_Position":{"__isSmartRef__":true,"id":945},"renderContextTable":{"__isSmartRef__":true,"id":946},"_Extent":{"__isSmartRef__":true,"id":947},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":948},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"945":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"946":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"947":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"948":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"949":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"950":{"style":{"__isSmartRef__":true,"id":951},"chunkOwner":{"__isSmartRef__":true,"id":943},"storedString":"Eval on","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"951":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"952":{"morph":{"__isSmartRef__":true,"id":943},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"953":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"954":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"955":{"_Position":{"__isSmartRef__":true,"id":956},"renderContextTable":{"__isSmartRef__":true,"id":957},"_Extent":{"__isSmartRef__":true,"id":958},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":959},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"956":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"957":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"958":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"959":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"961":{"morph":{"__isSmartRef__":true,"id":942},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"962":{"x":468.57142857142856,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"963":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"964":{"stops":[{"__isSmartRef__":true,"id":965},{"__isSmartRef__":true,"id":967},{"__isSmartRef__":true,"id":969},{"__isSmartRef__":true,"id":971}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"965":{"offset":0,"color":{"__isSmartRef__":true,"id":966}},"966":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"967":{"offset":0.4,"color":{"__isSmartRef__":true,"id":968}},"968":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"969":{"offset":0.6,"color":{"__isSmartRef__":true,"id":970}},"970":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"971":{"offset":1,"color":{"__isSmartRef__":true,"id":972}},"972":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"973":{"sourceObj":{"__isSmartRef__":true,"id":942},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":941},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"974":{"sourceObj":{"__isSmartRef__":true,"id":942},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":942},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":975},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"975":{"source":{"__isSmartRef__":true,"id":942},"target":{"__isSmartRef__":true,"id":942}},"976":{"browser":{"__isSmartRef__":true,"id":789},"button":{"__isSmartRef__":true,"id":977},"__LivelyClassName__":"lively.ide.SortCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"977":{"submorphs":[{"__isSmartRef__":true,"id":978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":990},"id":23,"renderContextTable":{"__isSmartRef__":true,"id":995},"eventHandler":{"__isSmartRef__":true,"id":996},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":997},"priorExtent":{"__isSmartRef__":true,"id":998},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":999},"label":{"__isSmartRef__":true,"id":978},"command":{"__isSmartRef__":true,"id":976},"attributeConnections":[{"__isSmartRef__":true,"id":1008},{"__isSmartRef__":true,"id":1009}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":772},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":979},"id":24,"renderContextTable":{"__isSmartRef__":true,"id":984},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":985}],"eventHandler":{"__isSmartRef__":true,"id":987},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":988},"priorExtent":{"__isSmartRef__":true,"id":989},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":977},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"979":{"_Position":{"__isSmartRef__":true,"id":980},"renderContextTable":{"__isSmartRef__":true,"id":981},"_Extent":{"__isSmartRef__":true,"id":982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":983},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"982":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"983":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"984":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"985":{"style":{"__isSmartRef__":true,"id":986},"chunkOwner":{"__isSmartRef__":true,"id":978},"storedString":"Sort","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"986":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"987":{"morph":{"__isSmartRef__":true,"id":978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"988":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"989":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"990":{"_Position":{"__isSmartRef__":true,"id":991},"renderContextTable":{"__isSmartRef__":true,"id":992},"_Extent":{"__isSmartRef__":true,"id":993},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":994},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"991":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"992":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"993":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"994":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"995":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"996":{"morph":{"__isSmartRef__":true,"id":977},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"997":{"x":585.7142857142857,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"998":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"999":{"stops":[{"__isSmartRef__":true,"id":1000},{"__isSmartRef__":true,"id":1002},{"__isSmartRef__":true,"id":1004},{"__isSmartRef__":true,"id":1006}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1000":{"offset":0,"color":{"__isSmartRef__":true,"id":1001}},"1001":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1002":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1003}},"1003":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1004":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1005}},"1005":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1006":{"offset":1,"color":{"__isSmartRef__":true,"id":1007}},"1007":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1008":{"sourceObj":{"__isSmartRef__":true,"id":977},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":976},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1009":{"sourceObj":{"__isSmartRef__":true,"id":977},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":977},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1010},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1010":{"source":{"__isSmartRef__":true,"id":977},"target":{"__isSmartRef__":true,"id":977}},"1011":{"browser":{"__isSmartRef__":true,"id":789},"button":{"__isSmartRef__":true,"id":1012},"__LivelyClassName__":"lively.ide.ViewSourceCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"1012":{"submorphs":[{"__isSmartRef__":true,"id":1013}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1025},"id":25,"renderContextTable":{"__isSmartRef__":true,"id":1030},"eventHandler":{"__isSmartRef__":true,"id":1031},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1032},"priorExtent":{"__isSmartRef__":true,"id":1033},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":1034},"label":{"__isSmartRef__":true,"id":1013},"command":{"__isSmartRef__":true,"id":1011},"attributeConnections":[{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":1044}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":772},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"1013":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1014},"id":26,"renderContextTable":{"__isSmartRef__":true,"id":1019},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1020}],"eventHandler":{"__isSmartRef__":true,"id":1022},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1023},"priorExtent":{"__isSmartRef__":true,"id":1024},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1012},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1014":{"_Position":{"__isSmartRef__":true,"id":1015},"renderContextTable":{"__isSmartRef__":true,"id":1016},"_Extent":{"__isSmartRef__":true,"id":1017},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1018},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1015":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1016":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1017":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1018":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1019":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1020":{"style":{"__isSmartRef__":true,"id":1021},"chunkOwner":{"__isSmartRef__":true,"id":1013},"storedString":"View as...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1021":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1022":{"morph":{"__isSmartRef__":true,"id":1013},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1023":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1024":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1025":{"_Position":{"__isSmartRef__":true,"id":1026},"renderContextTable":{"__isSmartRef__":true,"id":1027},"_Extent":{"__isSmartRef__":true,"id":1028},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1029},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1026":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1027":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1028":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1029":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1030":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1031":{"morph":{"__isSmartRef__":true,"id":1012},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1032":{"x":702.8571428571429,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1034":{"stops":[{"__isSmartRef__":true,"id":1035},{"__isSmartRef__":true,"id":1037},{"__isSmartRef__":true,"id":1039},{"__isSmartRef__":true,"id":1041}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1035":{"offset":0,"color":{"__isSmartRef__":true,"id":1036}},"1036":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1037":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1038}},"1038":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1039":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1040}},"1040":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1041":{"offset":1,"color":{"__isSmartRef__":true,"id":1042}},"1042":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1043":{"sourceObj":{"__isSmartRef__":true,"id":1012},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1011},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1044":{"sourceObj":{"__isSmartRef__":true,"id":1012},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1012},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1045},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1045":{"source":{"__isSmartRef__":true,"id":1012},"target":{"__isSmartRef__":true,"id":1012}},"1046":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"1047":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"1048":{"attributes":["isClassNode","isGrammarNode","isChangeNode","isFunctionNode","isObjectNode"],"__LivelyClassName__":"lively.ide.NodeTypeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"1049":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"1050":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"1051":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"1052":{"sourceObj":{"__isSmartRef__":true,"id":789},"sourceAttrName":"setPane1Content","targetObj":{"__isSmartRef__":true,"id":1053},"targetMethodName":"updateList","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1127},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1054},"id":7,"renderContextTable":{"__isSmartRef__":true,"id":1060},"itemList":[{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1090},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1092},{"__isSmartRef__":true,"id":1093},{"__isSmartRef__":true,"id":1094},{"__isSmartRef__":true,"id":1095},{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1097},{"__isSmartRef__":true,"id":1098},{"__isSmartRef__":true,"id":1099},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1101}],"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1102},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1103},"selectedLineNo":-1,"selectOnMove":false,"owner":{"__isSmartRef__":true,"id":772},"attributeConnections":[{"__isSmartRef__":true,"id":1104},{"__isSmartRef__":true,"id":1106},{"__isSmartRef__":true,"id":1108},{"__isSmartRef__":true,"id":1110}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1112},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core"},"1054":{"_Position":{"__isSmartRef__":true,"id":1055},"renderContextTable":{"__isSmartRef__":true,"id":1056},"_Extent":{"__isSmartRef__":true,"id":1057},"_Padding":{"__isSmartRef__":true,"id":1058},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":{"__isSmartRef__":true,"id":1059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1057":{"x":205,"y":192.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1059":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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"},"1061":{"isListItem":true,"string":"PartsBin/","value":{"__isSmartRef__":true,"id":1062}},"1062":{"target":{"__isSmartRef__":true,"id":1063},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"PartsBin/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1063":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/PartsBin/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1064":{"target":{"__isSmartRef__":true,"id":1065},"browser":{"__isSmartRef__":true,"id":789},"parent":null,"allFiles":[],"subNamespacePaths":[{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1068},{"__isSmartRef__":true,"id":1063},{"__isSmartRef__":true,"id":1069},{"__isSmartRef__":true,"id":1070},{"__isSmartRef__":true,"id":1071},{"__isSmartRef__":true,"id":1072},{"__isSmartRef__":true,"id":1073},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1075}],"parentNamespacePath":{"__isSmartRef__":true,"id":1076},"_childNodes":[{"__isSmartRef__":true,"id":1062},{"__isSmartRef__":true,"id":1077},{"__isSmartRef__":true,"id":1078},{"__isSmartRef__":true,"id":1079},{"__isSmartRef__":true,"id":1080},{"__isSmartRef__":true,"id":1081},{"__isSmartRef__":true,"id":1082},{"__isSmartRef__":true,"id":1083},{"__isSmartRef__":true,"id":1084},{"__isSmartRef__":true,"id":1085},{"__isSmartRef__":true,"id":1086},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1088}],"__LivelyClassName__":"lively.ide.SourceControlNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1065":{"__LivelyClassName__":"AnotherSourceDatabase","__SourceModuleName__":"Global.lively.ide.SourceDatabase"},"1066":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/media/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1067":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/cop/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1068":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/users/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1069":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/Tests/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1070":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/apps/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1071":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/lively/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1072":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/ometa/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1073":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/lib/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1074":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/server/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1075":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/projects/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1076":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/../","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1077":{"target":{"__isSmartRef__":true,"id":1069},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"Tests/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1078":{"target":{"__isSmartRef__":true,"id":1070},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"apps/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1079":{"target":{"__isSmartRef__":true,"id":1067},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"cop/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1080":{"target":{"__isSmartRef__":true,"id":1073},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"lib/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1081":{"target":{"__isSmartRef__":true,"id":1071},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"lively/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1082":{"target":{"__isSmartRef__":true,"id":1066},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"media/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1083":{"target":{"__isSmartRef__":true,"id":1072},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"ometa/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1084":{"target":{"__isSmartRef__":true,"id":1075},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"projects/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1085":{"target":{"__isSmartRef__":true,"id":1074},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"server/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1086":{"target":{"__isSmartRef__":true,"id":1068},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"users/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1087":{"target":{"__isSmartRef__":true,"id":1076},"browser":{"__isSmartRef__":true,"id":789},"parent":{"__isSmartRef__":true,"id":1064},"localName":"../","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"1088":{"target":{"__isSmartRef__":true,"id":1089},"browser":{"__isSmartRef__":true,"id":789},"__LivelyClassName__":"lively.ide.ChangeSetNode","__SourceModuleName__":"Global.lively.ide.LocalBrowser"},"1089":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"1090":{"isListItem":true,"string":"Tests/","value":{"__isSmartRef__":true,"id":1077}},"1091":{"isListItem":true,"string":"apps/","value":{"__isSmartRef__":true,"id":1078}},"1092":{"isListItem":true,"string":"cop/","value":{"__isSmartRef__":true,"id":1079}},"1093":{"isListItem":true,"string":"lib/","value":{"__isSmartRef__":true,"id":1080}},"1094":{"isListItem":true,"string":"lively/","value":{"__isSmartRef__":true,"id":1081}},"1095":{"isListItem":true,"string":"media/","value":{"__isSmartRef__":true,"id":1082}},"1096":{"isListItem":true,"string":"ometa/","value":{"__isSmartRef__":true,"id":1083}},"1097":{"isListItem":true,"string":"projects/","value":{"__isSmartRef__":true,"id":1084}},"1098":{"isListItem":true,"string":"server/","value":{"__isSmartRef__":true,"id":1085}},"1099":{"isListItem":true,"string":"users/","value":{"__isSmartRef__":true,"id":1086}},"1100":{"isListItem":true,"string":"../","value":{"__isSmartRef__":true,"id":1087}},"1101":{"isListItem":true,"string":"Local code","value":{"__isSmartRef__":true,"id":1088}},"1102":{"morph":{"__isSmartRef__":true,"id":1053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1103":{"x":0,"y":27.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1104":{"sourceObj":{"__isSmartRef__":true,"id":1053},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"setPane1Selection","converter":null,"converterString":null,"updater":null,"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","varMapping":{"__isSmartRef__":true,"id":1105},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1105":{"source":{"__isSmartRef__":true,"id":1053},"target":{"__isSmartRef__":true,"id":789}},"1106":{"sourceObj":{"__isSmartRef__":true,"id":1053},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane1Selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1107},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1107":{"source":{"__isSmartRef__":true,"id":1053},"target":{"__isSmartRef__":true,"id":789}},"1108":{"sourceObj":{"__isSmartRef__":true,"id":1053},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane1Content","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1109},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1109":{"source":{"__isSmartRef__":true,"id":1053},"target":{"__isSmartRef__":true,"id":789}},"1110":{"sourceObj":{"__isSmartRef__":true,"id":1053},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane1Menu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1111},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1111":{"source":{"__isSmartRef__":true,"id":1053},"target":{"__isSmartRef__":true,"id":789}},"1112":{"onDownPressed":{"__isSmartRef__":true,"id":1113},"onUpPressed":{"__isSmartRef__":true,"id":1120}},"1113":{"varMapping":{"__isSmartRef__":true,"id":1114},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":1119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1114":{"this":{"__isSmartRef__":true,"id":1053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1115}},"1115":{"$super":{"__isSmartRef__":true,"id":1116}},"1116":{"varMapping":{"__isSmartRef__":true,"id":1117},"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":1118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1117":{"obj":{"__isSmartRef__":true,"id":1053},"name":"onDownPressed"},"1118":{},"1119":{},"1120":{"varMapping":{"__isSmartRef__":true,"id":1121},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":1126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1121":{"this":{"__isSmartRef__":true,"id":1053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1122}},"1122":{"$super":{"__isSmartRef__":true,"id":1123}},"1123":{"varMapping":{"__isSmartRef__":true,"id":1124},"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":1125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1124":{"obj":{"__isSmartRef__":true,"id":1053},"name":"onUpPressed"},"1125":{},"1126":{},"1127":{"source":{"__isSmartRef__":true,"id":789},"target":{"__isSmartRef__":true,"id":1053}},"1128":{"sourceObj":{"__isSmartRef__":true,"id":789},"sourceAttrName":"setPane2Content","targetObj":{"__isSmartRef__":true,"id":1129},"targetMethodName":"updateList","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1162},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1129":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1130},"id":8,"renderContextTable":{"__isSmartRef__":true,"id":1136},"itemList":["-----"],"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1137},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1138},"selectedLineNo":-1,"selectOnMove":false,"owner":{"__isSmartRef__":true,"id":772},"attributeConnections":[{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1141},{"__isSmartRef__":true,"id":1143},{"__isSmartRef__":true,"id":1145}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1147},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core"},"1130":{"_Position":{"__isSmartRef__":true,"id":1131},"renderContextTable":{"__isSmartRef__":true,"id":1132},"_Extent":{"__isSmartRef__":true,"id":1133},"_Padding":{"__isSmartRef__":true,"id":1134},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":{"__isSmartRef__":true,"id":1135},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1131":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1132":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1133":{"x":205,"y":192.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1134":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1135":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1136":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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"},"1137":{"morph":{"__isSmartRef__":true,"id":1129},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1138":{"x":205,"y":27.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1139":{"sourceObj":{"__isSmartRef__":true,"id":1129},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"setPane2Selection","converter":null,"converterString":null,"updater":null,"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","varMapping":{"__isSmartRef__":true,"id":1140},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1140":{"source":{"__isSmartRef__":true,"id":1129},"target":{"__isSmartRef__":true,"id":789}},"1141":{"sourceObj":{"__isSmartRef__":true,"id":1129},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane2Selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1142},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1142":{"source":{"__isSmartRef__":true,"id":1129},"target":{"__isSmartRef__":true,"id":789}},"1143":{"sourceObj":{"__isSmartRef__":true,"id":1129},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane2Content","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1144},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1144":{"source":{"__isSmartRef__":true,"id":1129},"target":{"__isSmartRef__":true,"id":789}},"1145":{"sourceObj":{"__isSmartRef__":true,"id":1129},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane2Menu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1146},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1146":{"source":{"__isSmartRef__":true,"id":1129},"target":{"__isSmartRef__":true,"id":789}},"1147":{"onDownPressed":{"__isSmartRef__":true,"id":1148},"onUpPressed":{"__isSmartRef__":true,"id":1155}},"1148":{"varMapping":{"__isSmartRef__":true,"id":1149},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":1154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1149":{"this":{"__isSmartRef__":true,"id":1129},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1150}},"1150":{"$super":{"__isSmartRef__":true,"id":1151}},"1151":{"varMapping":{"__isSmartRef__":true,"id":1152},"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":1153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1152":{"obj":{"__isSmartRef__":true,"id":1129},"name":"onDownPressed"},"1153":{},"1154":{},"1155":{"varMapping":{"__isSmartRef__":true,"id":1156},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":1161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1156":{"this":{"__isSmartRef__":true,"id":1129},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1157}},"1157":{"$super":{"__isSmartRef__":true,"id":1158}},"1158":{"varMapping":{"__isSmartRef__":true,"id":1159},"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":1160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1159":{"obj":{"__isSmartRef__":true,"id":1129},"name":"onUpPressed"},"1160":{},"1161":{},"1162":{"source":{"__isSmartRef__":true,"id":789},"target":{"__isSmartRef__":true,"id":1129}},"1163":{"sourceObj":{"__isSmartRef__":true,"id":789},"sourceAttrName":"setPane3Content","targetObj":{"__isSmartRef__":true,"id":1164},"targetMethodName":"updateList","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1197},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1164":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1165},"id":9,"renderContextTable":{"__isSmartRef__":true,"id":1171},"itemList":["-----"],"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1172},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1173},"selectedLineNo":-1,"selectOnMove":false,"owner":{"__isSmartRef__":true,"id":772},"attributeConnections":[{"__isSmartRef__":true,"id":1174},{"__isSmartRef__":true,"id":1176},{"__isSmartRef__":true,"id":1178},{"__isSmartRef__":true,"id":1180}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1182},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core"},"1165":{"_Position":{"__isSmartRef__":true,"id":1166},"renderContextTable":{"__isSmartRef__":true,"id":1167},"_Extent":{"__isSmartRef__":true,"id":1168},"_Padding":{"__isSmartRef__":true,"id":1169},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":{"__isSmartRef__":true,"id":1170},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1166":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1167":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1168":{"x":205,"y":192.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1169":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1170":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1171":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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"},"1172":{"morph":{"__isSmartRef__":true,"id":1164},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1173":{"x":410,"y":27.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1174":{"sourceObj":{"__isSmartRef__":true,"id":1164},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"setPane3Selection","converter":null,"converterString":null,"updater":null,"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","varMapping":{"__isSmartRef__":true,"id":1175},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1175":{"source":{"__isSmartRef__":true,"id":1164},"target":{"__isSmartRef__":true,"id":789}},"1176":{"sourceObj":{"__isSmartRef__":true,"id":1164},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane3Selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1177},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1177":{"source":{"__isSmartRef__":true,"id":1164},"target":{"__isSmartRef__":true,"id":789}},"1178":{"sourceObj":{"__isSmartRef__":true,"id":1164},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane3Content","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1179},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1179":{"source":{"__isSmartRef__":true,"id":1164},"target":{"__isSmartRef__":true,"id":789}},"1180":{"sourceObj":{"__isSmartRef__":true,"id":1164},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane3Menu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1181},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1181":{"source":{"__isSmartRef__":true,"id":1164},"target":{"__isSmartRef__":true,"id":789}},"1182":{"onDownPressed":{"__isSmartRef__":true,"id":1183},"onUpPressed":{"__isSmartRef__":true,"id":1190}},"1183":{"varMapping":{"__isSmartRef__":true,"id":1184},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":1189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1184":{"this":{"__isSmartRef__":true,"id":1164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1185}},"1185":{"$super":{"__isSmartRef__":true,"id":1186}},"1186":{"varMapping":{"__isSmartRef__":true,"id":1187},"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":1188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1187":{"obj":{"__isSmartRef__":true,"id":1164},"name":"onDownPressed"},"1188":{},"1189":{},"1190":{"varMapping":{"__isSmartRef__":true,"id":1191},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":1196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1191":{"this":{"__isSmartRef__":true,"id":1164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1192}},"1192":{"$super":{"__isSmartRef__":true,"id":1193}},"1193":{"varMapping":{"__isSmartRef__":true,"id":1194},"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":1195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1194":{"obj":{"__isSmartRef__":true,"id":1164},"name":"onUpPressed"},"1195":{},"1196":{},"1197":{"source":{"__isSmartRef__":true,"id":789},"target":{"__isSmartRef__":true,"id":1164}},"1198":{"sourceObj":{"__isSmartRef__":true,"id":789},"sourceAttrName":"setPane4Content","targetObj":{"__isSmartRef__":true,"id":1199},"targetMethodName":"updateList","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1232},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1199":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1200},"id":10,"renderContextTable":{"__isSmartRef__":true,"id":1206},"itemList":["-----"],"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1207},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1208},"selectedLineNo":-1,"selectOnMove":false,"owner":{"__isSmartRef__":true,"id":772},"attributeConnections":[{"__isSmartRef__":true,"id":1209},{"__isSmartRef__":true,"id":1211},{"__isSmartRef__":true,"id":1213},{"__isSmartRef__":true,"id":1215}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1217},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core"},"1200":{"_Position":{"__isSmartRef__":true,"id":1201},"renderContextTable":{"__isSmartRef__":true,"id":1202},"_Extent":{"__isSmartRef__":true,"id":1203},"_Padding":{"__isSmartRef__":true,"id":1204},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":{"__isSmartRef__":true,"id":1205},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1201":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1202":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1203":{"x":205,"y":192.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1204":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1205":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1206":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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"},"1207":{"morph":{"__isSmartRef__":true,"id":1199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1208":{"x":615,"y":27.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1209":{"sourceObj":{"__isSmartRef__":true,"id":1199},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"setPane4Selection","converter":null,"converterString":null,"updater":null,"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","varMapping":{"__isSmartRef__":true,"id":1210},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1210":{"source":{"__isSmartRef__":true,"id":1199},"target":{"__isSmartRef__":true,"id":789}},"1211":{"sourceObj":{"__isSmartRef__":true,"id":1199},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane4Selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1212},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1212":{"source":{"__isSmartRef__":true,"id":1199},"target":{"__isSmartRef__":true,"id":789}},"1213":{"sourceObj":{"__isSmartRef__":true,"id":1199},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane4Content","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1214},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1214":{"source":{"__isSmartRef__":true,"id":1199},"target":{"__isSmartRef__":true,"id":789}},"1215":{"sourceObj":{"__isSmartRef__":true,"id":1199},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"getPane4Menu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1216},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1216":{"source":{"__isSmartRef__":true,"id":1199},"target":{"__isSmartRef__":true,"id":789}},"1217":{"onDownPressed":{"__isSmartRef__":true,"id":1218},"onUpPressed":{"__isSmartRef__":true,"id":1225}},"1218":{"varMapping":{"__isSmartRef__":true,"id":1219},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":1224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1219":{"this":{"__isSmartRef__":true,"id":1199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1220}},"1220":{"$super":{"__isSmartRef__":true,"id":1221}},"1221":{"varMapping":{"__isSmartRef__":true,"id":1222},"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":1223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1222":{"obj":{"__isSmartRef__":true,"id":1199},"name":"onDownPressed"},"1223":{},"1224":{},"1225":{"varMapping":{"__isSmartRef__":true,"id":1226},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":1231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1226":{"this":{"__isSmartRef__":true,"id":1199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1227}},"1227":{"$super":{"__isSmartRef__":true,"id":1228}},"1228":{"varMapping":{"__isSmartRef__":true,"id":1229},"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":1230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1229":{"obj":{"__isSmartRef__":true,"id":1199},"name":"onUpPressed"},"1230":{},"1231":{},"1232":{"source":{"__isSmartRef__":true,"id":789},"target":{"__isSmartRef__":true,"id":1199}},"1233":{"sourceObj":{"__isSmartRef__":true,"id":789},"sourceAttrName":"setSourceString","targetObj":{"__isSmartRef__":true,"id":1234},"targetMethodName":"setTextString","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1250},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1234":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1235},"id":12,"renderContextTable":{"__isSmartRef__":true,"id":1240},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1241}],"eventHandler":{"__isSmartRef__":true,"id":1243},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Courier","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1244},"priorExtent":{"__isSmartRef__":true,"id":1245},"_MaxTextWidth":808,"_MinTextWidth":808,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":772},"accessibleInInactiveWindow":true,"layout":{"__isSmartRef__":true,"id":1246},"noEval":true,"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":1247},{"__isSmartRef__":true,"id":1248}],"doNotSerialize":["$$textString","$$savedTextString"],"doNotCopyProperties":["$$textString","$$savedTextString"],"textString":"-----","lastSyntaxHighlightTime":1319826381070,"styleClass":["Browser_codePaneText"],"focusHaloBorderWidth":0.5,"cachedTextString":"-----","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1235":{"_Position":{"__isSmartRef__":true,"id":1236},"renderContextTable":{"__isSmartRef__":true,"id":1237},"_Extent":{"__isSmartRef__":true,"id":1238},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":1239},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":{"__isSmartRef__":true,"id":780},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1236":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1237":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1238":{"x":820,"y":302.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1239":{"x":5,"y":5,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1240":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1241":{"style":{"__isSmartRef__":true,"id":1242},"chunkOwner":{"__isSmartRef__":true,"id":1234},"storedString":"-----","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1242":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1243":{"morph":{"__isSmartRef__":true,"id":1234},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1244":{"x":0,"y":247.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1245":{"x":820,"y":302.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1246":{"resizeWidth":true,"resizeHeight":true},"1247":{"sourceObj":{"__isSmartRef__":true,"id":1234},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1234},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1248":{"sourceObj":{"__isSmartRef__":true,"id":1234},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"setSourceString","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1249},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1249":{"source":{"__isSmartRef__":true,"id":1234},"target":{"__isSmartRef__":true,"id":789}},"1250":{"source":{"__isSmartRef__":true,"id":789},"target":{"__isSmartRef__":true,"id":1234}},"1251":{"sourceObj":{"__isSmartRef__":true,"id":789},"sourceAttrName":"targetURL","targetObj":{"__isSmartRef__":true,"id":773},"targetMethodName":"setTextString","converter":null,"converterString":null,"updaterString":"function ($upd, value) { value && $upd(String(value)) }","varMapping":{"__isSmartRef__":true,"id":1252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1253},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1252":{"source":{"__isSmartRef__":true,"id":789},"target":{"__isSmartRef__":true,"id":773}},"1253":{"updater":{"__isSmartRef__":true,"id":1254}},"1254":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1252},"source":"function ($upd, value) { value && $upd(String(value)) }","funcProperties":{"__isSmartRef__":true,"id":1255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1255":{},"1256":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"1257":{"source":{"__isSmartRef__":true,"id":773},"target":{"__isSmartRef__":true,"id":789}},"1258":{"submorphs":[{"__isSmartRef__":true,"id":1259}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1271},"id":3,"renderContextTable":{"__isSmartRef__":true,"id":1276},"eventHandler":{"__isSmartRef__":true,"id":1277},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1278},"priorExtent":{"__isSmartRef__":true,"id":1279},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":1280},"label":{"__isSmartRef__":true,"id":1259},"owner":{"__isSmartRef__":true,"id":772},"attributeConnections":[{"__isSmartRef__":true,"id":1289}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"layout":{"__isSmartRef__":true,"id":1291},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"1259":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1260},"id":4,"renderContextTable":{"__isSmartRef__":true,"id":1265},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1266}],"eventHandler":{"__isSmartRef__":true,"id":1268},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1269},"priorExtent":{"__isSmartRef__":true,"id":1270},"_MaxTextWidth":98.39999999999999,"_MinTextWidth":98.39999999999999,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1258},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1260":{"_Position":{"__isSmartRef__":true,"id":1261},"renderContextTable":{"__isSmartRef__":true,"id":1262},"_Extent":{"__isSmartRef__":true,"id":1263},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1264},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1261":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1262":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1263":{"x":98.39999999999999,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1264":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1265":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1266":{"style":{"__isSmartRef__":true,"id":1267},"chunkOwner":{"__isSmartRef__":true,"id":1259},"storedString":"codebase","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1267":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1268":{"morph":{"__isSmartRef__":true,"id":1259},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1269":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1270":{"x":98.39999999999999,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1271":{"_Position":{"__isSmartRef__":true,"id":1272},"renderContextTable":{"__isSmartRef__":true,"id":1273},"_Extent":{"__isSmartRef__":true,"id":1274},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1275},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1272":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1273":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1274":{"x":98.39999999999999,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1275":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1276":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1277":{"morph":{"__isSmartRef__":true,"id":1258},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1278":{"x":656,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1279":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1280":{"stops":[{"__isSmartRef__":true,"id":1281},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1285},{"__isSmartRef__":true,"id":1287}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1281":{"offset":0,"color":{"__isSmartRef__":true,"id":1282}},"1282":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1283":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1284}},"1284":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1285":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1286}},"1286":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1287":{"offset":1,"color":{"__isSmartRef__":true,"id":1288}},"1288":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1289":{"sourceObj":{"__isSmartRef__":true,"id":1258},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"setTargetURL","converter":null,"converterString":"function () { return URL.codeBase.withFilename('lively/')}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1290},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1290":{"source":{"__isSmartRef__":true,"id":1258},"target":{"__isSmartRef__":true,"id":789}},"1291":{"moveHorizontal":true},"1292":{"submorphs":[{"__isSmartRef__":true,"id":1293}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1305},"id":5,"renderContextTable":{"__isSmartRef__":true,"id":1310},"eventHandler":{"__isSmartRef__":true,"id":1311},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1312},"priorExtent":{"__isSmartRef__":true,"id":1313},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":1314},"label":{"__isSmartRef__":true,"id":1293},"owner":{"__isSmartRef__":true,"id":772},"attributeConnections":[{"__isSmartRef__":true,"id":1323}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"layout":{"__isSmartRef__":true,"id":1325},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"1293":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1294},"id":6,"renderContextTable":{"__isSmartRef__":true,"id":1299},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1300}],"eventHandler":{"__isSmartRef__":true,"id":1302},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1303},"priorExtent":{"__isSmartRef__":true,"id":1304},"_MaxTextWidth":65.6,"_MinTextWidth":65.6,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1292},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1294":{"_Position":{"__isSmartRef__":true,"id":1295},"renderContextTable":{"__isSmartRef__":true,"id":1296},"_Extent":{"__isSmartRef__":true,"id":1297},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1298},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1295":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1296":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1297":{"x":65.6,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1298":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1299":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1300":{"style":{"__isSmartRef__":true,"id":1301},"chunkOwner":{"__isSmartRef__":true,"id":1293},"storedString":"local","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1301":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1302":{"morph":{"__isSmartRef__":true,"id":1293},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1304":{"x":65.6,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1305":{"_Position":{"__isSmartRef__":true,"id":1306},"renderContextTable":{"__isSmartRef__":true,"id":1307},"_Extent":{"__isSmartRef__":true,"id":1308},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1309},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1306":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1307":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1308":{"x":65.6,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1309":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1310":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1311":{"morph":{"__isSmartRef__":true,"id":1292},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1312":{"x":754.4,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1313":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1314":{"stops":[{"__isSmartRef__":true,"id":1315},{"__isSmartRef__":true,"id":1317},{"__isSmartRef__":true,"id":1319},{"__isSmartRef__":true,"id":1321}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1315":{"offset":0,"color":{"__isSmartRef__":true,"id":1316}},"1316":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1317":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1318}},"1318":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1319":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1320}},"1320":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1321":{"offset":1,"color":{"__isSmartRef__":true,"id":1322}},"1322":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1323":{"sourceObj":{"__isSmartRef__":true,"id":1292},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":789},"targetMethodName":"setTargetURL","converter":null,"converterString":"function () { return URL.source.getDirectory() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1324},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1324":{"source":{"__isSmartRef__":true,"id":1292},"target":{"__isSmartRef__":true,"id":789}},"1325":{"moveHorizontal":true},"1326":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1327},"id":11,"renderContextTable":{"__isSmartRef__":true,"id":1333},"eventHandler":{"__isSmartRef__":true,"id":1334},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"_Position":{"__isSmartRef__":true,"id":1335},"fixed":[{"__isSmartRef__":true,"id":791},{"__isSmartRef__":true,"id":837},{"__isSmartRef__":true,"id":872},{"__isSmartRef__":true,"id":907},{"__isSmartRef__":true,"id":942},{"__isSmartRef__":true,"id":977},{"__isSmartRef__":true,"id":1012}],"scalingBelow":[{"__isSmartRef__":true,"id":1234}],"scalingAbove":[{"__isSmartRef__":true,"id":1053},{"__isSmartRef__":true,"id":1129},{"__isSmartRef__":true,"id":1164},{"__isSmartRef__":true,"id":1199}],"minHeight":20,"pointerConnection":null,"owner":{"__isSmartRef__":true,"id":772},"styleClass":["Browser_resizer"],"__LivelyClassName__":"lively.morphic.HorizontalDivider","__SourceModuleName__":"Global.lively.morphic.Widgets"},"1327":{"_Position":{"__isSmartRef__":true,"id":1328},"renderContextTable":{"__isSmartRef__":true,"id":1329},"_Extent":{"__isSmartRef__":true,"id":1330},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1331},"_Fill":{"__isSmartRef__":true,"id":1332},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1328":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1329":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1330":{"x":820,"y":5.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1331":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1332":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1333":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1334":{"morph":{"__isSmartRef__":true,"id":1326},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1335":{"x":0,"y":242,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1336":{"_Position":{"__isSmartRef__":true,"id":1337},"renderContextTable":{"__isSmartRef__":true,"id":1338},"_Extent":{"__isSmartRef__":true,"id":1339},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1340},"_Fill":{"__isSmartRef__":true,"id":1341},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1337":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1338":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1339":{"x":820,"y":550,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1340":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1341":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1342":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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":772},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1344":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"1345":{"x":0,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1346":{"renderContextTable":{"__isSmartRef__":true,"id":1347},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1348},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1349},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1347":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1348":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1349":{"x":820,"y":571,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1350":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1351":{"morph":{"__isSmartRef__":true,"id":629},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1352":{"adjustForNewBounds":true},"1353":{"x":30,"y":97.5,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1354":{"x":820,"y":571,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1355":{"x":150,"y":96,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1356":{"submorphs":[{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1454}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1601},"id":37,"renderContextTable":{"__isSmartRef__":true,"id":1605},"eventHandler":{"__isSmartRef__":true,"id":1606},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1607},"LK2":true,"_Position":{"__isSmartRef__":true,"id":1608},"priorExtent":{"__isSmartRef__":true,"id":1609},"targetMorph":{"__isSmartRef__":true,"id":1357},"titleBar":{"__isSmartRef__":true,"id":1454},"contentOffset":{"__isSmartRef__":true,"id":1450},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":0},"highlighted":true,"prevDragPos":{"__isSmartRef__":true,"id":1610},"isBeingDragged":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"1357":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1358},"id":36,"renderContextTable":{"__isSmartRef__":true,"id":1365},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1366},{"__isSmartRef__":true,"id":1368},{"__isSmartRef__":true,"id":1371},{"__isSmartRef__":true,"id":1374},{"__isSmartRef__":true,"id":1376},{"__isSmartRef__":true,"id":1378},{"__isSmartRef__":true,"id":1380},{"__isSmartRef__":true,"id":1382},{"__isSmartRef__":true,"id":1385},{"__isSmartRef__":true,"id":1387},{"__isSmartRef__":true,"id":1390},{"__isSmartRef__":true,"id":1392},{"__isSmartRef__":true,"id":1394},{"__isSmartRef__":true,"id":1396},{"__isSmartRef__":true,"id":1398},{"__isSmartRef__":true,"id":1400},{"__isSmartRef__":true,"id":1402},{"__isSmartRef__":true,"id":1404},{"__isSmartRef__":true,"id":1406},{"__isSmartRef__":true,"id":1409},{"__isSmartRef__":true,"id":1411},{"__isSmartRef__":true,"id":1413},{"__isSmartRef__":true,"id":1415},{"__isSmartRef__":true,"id":1417},{"__isSmartRef__":true,"id":1419},{"__isSmartRef__":true,"id":1421},{"__isSmartRef__":true,"id":1423},{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1429},{"__isSmartRef__":true,"id":1431},{"__isSmartRef__":true,"id":1433},{"__isSmartRef__":true,"id":1435},{"__isSmartRef__":true,"id":1437},{"__isSmartRef__":true,"id":1439},{"__isSmartRef__":true,"id":1441},{"__isSmartRef__":true,"id":1443},{"__isSmartRef__":true,"id":1445},{"__isSmartRef__":true,"id":1447}],"eventHandler":{"__isSmartRef__":true,"id":1449},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1450},"priorExtent":{"__isSmartRef__":true,"id":1451},"_MaxTextWidth":1033,"_MinTextWidth":1033,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1356},"layout":{"__isSmartRef__":true,"id":1452},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":1453}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1319826408316,"accessibleInInactiveWindow":true,"previousSelection":[650,632],"priorSelectionRange":[667,651],"charsReplaced":"","lastFindLoc":590,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"LivelyLoader.codeBase\nhttp://lively-kernel.org/repository/webwerkstatt/kernel/\nLivelyLoader.rootPathhttp://lively-kernel.org/repository/webwerkstatt/\n\n\n\ndlc = new DocLinkConverter(Config.codeBase, 'http://lively-kernel.org/repository/webwerkstatt/users/fbo/xxx.xhtml');\ndlc.relativeLivelyPathFrom(dlc.codeBase, dlc.toDir)\n\ndlc.codeBaseFrom(dlc.codeBase, dlc.toDir) + 'kernel/lively/'\n\n(new URL(dlc.toDir)).relativePathFrom(new URL(dlc.codeBase))../users/fbo/xxx.xhtml/\n\ndlc.relativeCodeBaseFrom(dlc.codeBase, dlc.toDir)\n//.convertPath('../../kernel/lively/bootstrap.js')\n\nJSLoader.loadJs\n\n\nConfig.modulePaths.push('documentation/')\nConfig.modulePaths\ninspect(Config);\n\nmodule('lively.morphic.Events').isLoaded()\n\nmodule('lively.morphic.Events').uri()http://lively-kernel.org/repository/webwerkstatt/kernel/lively/morphic/Events.js\n\nnew WebResource(module('lively.morphic.Events').uri()).get().status.isSuccess()\n\nConfig.modulePaths\n\nCouchDB\n\n\nmodule('BP2012.CouchDBLongPoll').load()\n\n","cachedTextString":"LivelyLoader.codeBase\nhttp://lively-kernel.org/repository/webwerkstatt/kernel/\nLivelyLoader.rootPathhttp://lively-kernel.org/repository/webwerkstatt/\n\n\n\ndlc = new DocLinkConverter(Config.codeBase, 'http://lively-kernel.org/repository/webwerkstatt/users/fbo/xxx.xhtml');\ndlc.relativeLivelyPathFrom(dlc.codeBase, dlc.toDir)\n\ndlc.codeBaseFrom(dlc.codeBase, dlc.toDir) + 'kernel/lively/'\n\n(new URL(dlc.toDir)).relativePathFrom(new URL(dlc.codeBase))../users/fbo/xxx.xhtml/\n\ndlc.relativeCodeBaseFrom(dlc.codeBase, dlc.toDir)\n//.convertPath('../../kernel/lively/bootstrap.js')\n\nJSLoader.loadJs\n\n\nConfig.modulePaths.push('documentation/')\nConfig.modulePaths\ninspect(Config);\n\nmodule('lively.morphic.Events').isLoaded()\n\nmodule('lively.morphic.Events').uri()http://lively-kernel.org/repository/webwerkstatt/kernel/lively/morphic/Events.js\n\nnew WebResource(module('lively.morphic.Events').uri()).get().status.isSuccess()\n\nConfig.modulePaths\n\nCouchDB\n\n\nmodule('BP2012.CouchDBLongPoll').load()\n\n","__LivelyClassName__":"lively.morphic.Text"},"1358":{"_Position":{"__isSmartRef__":true,"id":1359},"renderContextTable":{"__isSmartRef__":true,"id":1360},"_Extent":{"__isSmartRef__":true,"id":1361},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":1362},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1363},"_Fill":{"__isSmartRef__":true,"id":1364},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1359":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1360":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1361":{"x":1043,"y":693,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1362":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1363":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1364":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1365":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1366":{"style":{"__isSmartRef__":true,"id":1367},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"LivelyLoader.codeBase\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1367":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1368":{"style":{"__isSmartRef__":true,"id":1369},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"http:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1369":{"color":{"__isSmartRef__":true,"id":1370},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1370":{"r":0.5450980392156862,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1371":{"style":{"__isSmartRef__":true,"id":1372},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"//lively-kernel.org/repository/webwerkstatt/kernel/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1372":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1373":{"r":0,"g":0.5019607843137255,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1374":{"style":{"__isSmartRef__":true,"id":1375},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"\nLivelyLoader.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1375":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1376":{"style":{"__isSmartRef__":true,"id":1377},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"rootPathhttp:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1377":{"color":{"__isSmartRef__":true,"id":1370},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1378":{"style":{"__isSmartRef__":true,"id":1379},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"//lively-kernel.org/repository/webwerkstatt/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1379":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1380":{"style":{"__isSmartRef__":true,"id":1381},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"\n\n\n\ndlc = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1381":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1382":{"style":{"__isSmartRef__":true,"id":1383},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1383":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1384":{"r":0,"g":0,"b":0.5450980392156862,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1385":{"style":{"__isSmartRef__":true,"id":1386},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":" DocLinkConverter(Config.codeBase, ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1386":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1387":{"style":{"__isSmartRef__":true,"id":1388},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"'http:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1388":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1389":{"r":0,"g":0.5019607843137255,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1390":{"style":{"__isSmartRef__":true,"id":1391},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"//lively-kernel.org/repository/webwerkstatt/users/fbo/xxx.xhtml');","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1391":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1392":{"style":{"__isSmartRef__":true,"id":1393},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"\ndlc.relativeLivelyPathFrom(dlc.codeBase, dlc.toDir)\n\ndlc.codeBaseFrom(dlc.codeBase, dlc.toDir) + ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1393":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1394":{"style":{"__isSmartRef__":true,"id":1395},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"'kernel/lively/'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1395":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1396":{"style":{"__isSmartRef__":true,"id":1397},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"\n\n(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1397":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1398":{"style":{"__isSmartRef__":true,"id":1399},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1399":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1400":{"style":{"__isSmartRef__":true,"id":1401},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":" URL(dlc.toDir)).relativePathFrom(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1401":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1402":{"style":{"__isSmartRef__":true,"id":1403},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1403":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1404":{"style":{"__isSmartRef__":true,"id":1405},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":" URL(dlc.codeBase))..","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1405":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1406":{"style":{"__isSmartRef__":true,"id":1407},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"/users/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1407":{"color":{"__isSmartRef__":true,"id":1408},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1408":{"r":0.5019607843137255,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1409":{"style":{"__isSmartRef__":true,"id":1410},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"fbo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1410":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1411":{"style":{"__isSmartRef__":true,"id":1412},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"/xxx.xhtml/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1412":{"color":{"__isSmartRef__":true,"id":1408},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1413":{"style":{"__isSmartRef__":true,"id":1414},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"\n\ndlc.relativeCodeBaseFrom(dlc.codeBase, dlc.toDir)\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1414":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1415":{"style":{"__isSmartRef__":true,"id":1416},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"//.convertPath('../../kernel/lively/bootstrap.js')","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1416":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1417":{"style":{"__isSmartRef__":true,"id":1418},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"\n\nJSLoader.loadJs\n\n\nConfig.modulePaths.push(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1418":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1419":{"style":{"__isSmartRef__":true,"id":1420},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"'documentation/'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1420":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1421":{"style":{"__isSmartRef__":true,"id":1422},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":")\nConfig.modulePaths\ninspect(Config);\n\nmodule(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1422":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1423":{"style":{"__isSmartRef__":true,"id":1424},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"'lively.morphic.Events'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1424":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1425":{"style":{"__isSmartRef__":true,"id":1426},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":").isLoaded()\n\nmodule(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1426":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1427":{"style":{"__isSmartRef__":true,"id":1428},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"'lively.morphic.Events'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1428":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1429":{"style":{"__isSmartRef__":true,"id":1430},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":").uri()","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1430":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1431":{"style":{"__isSmartRef__":true,"id":1432},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"http:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1432":{"color":{"__isSmartRef__":true,"id":1370},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1433":{"style":{"__isSmartRef__":true,"id":1434},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"//lively-kernel.org/repository/webwerkstatt/kernel/lively/morphic/Events.js","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1434":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1435":{"style":{"__isSmartRef__":true,"id":1436},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"\n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1436":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1437":{"style":{"__isSmartRef__":true,"id":1438},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1438":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1439":{"style":{"__isSmartRef__":true,"id":1440},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":" WebResource(module(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1440":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1441":{"style":{"__isSmartRef__":true,"id":1442},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"'lively.morphic.Events'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1442":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1443":{"style":{"__isSmartRef__":true,"id":1444},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":").uri()).get().status.isSuccess()\n\nConfig.modulePaths\n\nCouchDB\n\n\nmodule(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1444":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1445":{"style":{"__isSmartRef__":true,"id":1446},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":"'BP2012.CouchDBLongPoll'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1446":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1447":{"style":{"__isSmartRef__":true,"id":1448},"chunkOwner":{"__isSmartRef__":true,"id":1357},"storedString":").load()\n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1448":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1449":{"morph":{"__isSmartRef__":true,"id":1357},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1450":{"x":0,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1451":{"x":1043,"y":693,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1452":{"resizeWidth":true,"resizeHeight":true},"1453":{"sourceObj":{"__isSmartRef__":true,"id":1357},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1357},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1454":{"submorphs":[{"__isSmartRef__":true,"id":1455},{"__isSmartRef__":true,"id":1469},{"__isSmartRef__":true,"id":1516},{"__isSmartRef__":true,"id":1550}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1585},"id":38,"renderContextTable":{"__isSmartRef__":true,"id":1596},"eventHandler":{"__isSmartRef__":true,"id":1597},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1598},"_Position":{"__isSmartRef__":true,"id":1599},"windowMorph":{"__isSmartRef__":true,"id":1356},"label":{"__isSmartRef__":true,"id":1455},"closeButton":{"__isSmartRef__":true,"id":1469},"menuButton":{"__isSmartRef__":true,"id":1516},"collapseButton":{"__isSmartRef__":true,"id":1550},"priorExtent":{"__isSmartRef__":true,"id":1600},"owner":{"__isSmartRef__":true,"id":1356},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1455":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1456},"id":39,"renderContextTable":{"__isSmartRef__":true,"id":1462},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1463}],"eventHandler":{"__isSmartRef__":true,"id":1465},"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":1466},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1454},"priorExtent":{"__isSmartRef__":true,"id":1467},"_MaxTextWidth":984,"_MinTextWidth":984,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":1468},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1456":{"_Position":{"__isSmartRef__":true,"id":1457},"renderContextTable":{"__isSmartRef__":true,"id":1458},"_Extent":{"__isSmartRef__":true,"id":1459},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1460},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1461},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1457":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1458":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1459":{"x":984,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1460":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1461":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1462":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1463":{"style":{"__isSmartRef__":true,"id":1464},"chunkOwner":{"__isSmartRef__":true,"id":1455},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Workspace","__LivelyClassName__":"lively.morphic.TextChunk"},"1464":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1465":{"morph":{"__isSmartRef__":true,"id":1455},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1466":{"resizeWidth":true},"1467":{"x":984,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1468":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1469":{"submorphs":[{"__isSmartRef__":true,"id":1470}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1482},"id":40,"renderContextTable":{"__isSmartRef__":true,"id":1498},"eventHandler":{"__isSmartRef__":true,"id":1499},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":1500},"priorExtent":{"__isSmartRef__":true,"id":1501},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1488},"lighterFill":{"__isSmartRef__":true,"id":1502},"label":{"__isSmartRef__":true,"id":1470},"owner":{"__isSmartRef__":true,"id":1454},"layout":{"__isSmartRef__":true,"id":1511},"attributeConnections":[{"__isSmartRef__":true,"id":1512},{"__isSmartRef__":true,"id":1514}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1470":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1471},"id":41,"renderContextTable":{"__isSmartRef__":true,"id":1476},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1477}],"eventHandler":{"__isSmartRef__":true,"id":1479},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":1480},"priorExtent":{"__isSmartRef__":true,"id":1481},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1469},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1471":{"_Position":{"__isSmartRef__":true,"id":1472},"renderContextTable":{"__isSmartRef__":true,"id":1473},"_Extent":{"__isSmartRef__":true,"id":1474},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1475},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1461},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1472":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1473":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1474":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1475":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1476":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1477":{"style":{"__isSmartRef__":true,"id":1478},"chunkOwner":{"__isSmartRef__":true,"id":1470},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"1478":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1479":{"morph":{"__isSmartRef__":true,"id":1470},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1480":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1481":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1482":{"_Position":{"__isSmartRef__":true,"id":1483},"renderContextTable":{"__isSmartRef__":true,"id":1484},"_Extent":{"__isSmartRef__":true,"id":1485},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1486},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1487},"_Fill":{"__isSmartRef__":true,"id":1488},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1483":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1484":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1485":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1486":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1487":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1488":{"stops":[{"__isSmartRef__":true,"id":1489},{"__isSmartRef__":true,"id":1491},{"__isSmartRef__":true,"id":1493},{"__isSmartRef__":true,"id":1495}],"vector":{"__isSmartRef__":true,"id":1497},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1489":{"offset":0,"color":{"__isSmartRef__":true,"id":1490}},"1490":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1491":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1492}},"1492":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1493":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1494}},"1494":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1495":{"offset":1,"color":{"__isSmartRef__":true,"id":1496}},"1496":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1497":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1498":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1499":{"morph":{"__isSmartRef__":true,"id":1469},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1500":{"x":1023,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1501":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1502":{"stops":[{"__isSmartRef__":true,"id":1503},{"__isSmartRef__":true,"id":1505},{"__isSmartRef__":true,"id":1507},{"__isSmartRef__":true,"id":1509}],"vector":{"__isSmartRef__":true,"id":1497},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1503":{"offset":0,"color":{"__isSmartRef__":true,"id":1504}},"1504":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1505":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1506}},"1506":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1507":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1508}},"1508":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1509":{"offset":1,"color":{"__isSmartRef__":true,"id":1510}},"1510":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1511":{"moveHorizontal":true},"1512":{"sourceObj":{"__isSmartRef__":true,"id":1469},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1513},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1513":{"source":{"__isSmartRef__":true,"id":1469},"target":{"__isSmartRef__":true,"id":1356}},"1514":{"sourceObj":{"__isSmartRef__":true,"id":1469},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1515},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1515":{"source":{"__isSmartRef__":true,"id":1469},"target":{"__isSmartRef__":true,"id":1356}},"1516":{"submorphs":[{"__isSmartRef__":true,"id":1517}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1528},"id":42,"renderContextTable":{"__isSmartRef__":true,"id":1533},"eventHandler":{"__isSmartRef__":true,"id":1534},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":1535},"priorExtent":{"__isSmartRef__":true,"id":1536},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1488},"lighterFill":{"__isSmartRef__":true,"id":1537},"label":{"__isSmartRef__":true,"id":1517},"owner":{"__isSmartRef__":true,"id":1454},"attributeConnections":[{"__isSmartRef__":true,"id":1546},{"__isSmartRef__":true,"id":1548}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1517":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1518},"id":43,"renderContextTable":{"__isSmartRef__":true,"id":1522},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1523}],"eventHandler":{"__isSmartRef__":true,"id":1525},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":1526},"priorExtent":{"__isSmartRef__":true,"id":1527},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1516},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1518":{"_Position":{"__isSmartRef__":true,"id":1519},"renderContextTable":{"__isSmartRef__":true,"id":1520},"_Extent":{"__isSmartRef__":true,"id":1521},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1475},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1461},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1519":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1520":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1521":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1522":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1523":{"style":{"__isSmartRef__":true,"id":1524},"chunkOwner":{"__isSmartRef__":true,"id":1517},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"1524":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1525":{"morph":{"__isSmartRef__":true,"id":1517},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1526":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1527":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1528":{"_Position":{"__isSmartRef__":true,"id":1529},"renderContextTable":{"__isSmartRef__":true,"id":1530},"_Extent":{"__isSmartRef__":true,"id":1531},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1532},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1487},"_Fill":{"__isSmartRef__":true,"id":1488},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1529":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1530":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1531":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1532":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1533":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1534":{"morph":{"__isSmartRef__":true,"id":1516},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1535":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1536":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1537":{"stops":[{"__isSmartRef__":true,"id":1538},{"__isSmartRef__":true,"id":1540},{"__isSmartRef__":true,"id":1542},{"__isSmartRef__":true,"id":1544}],"vector":{"__isSmartRef__":true,"id":1497},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1538":{"offset":0,"color":{"__isSmartRef__":true,"id":1539}},"1539":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1540":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1541}},"1541":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1542":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1543}},"1543":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1544":{"offset":1,"color":{"__isSmartRef__":true,"id":1545}},"1545":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1546":{"sourceObj":{"__isSmartRef__":true,"id":1516},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1547},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1547":{"source":{"__isSmartRef__":true,"id":1516},"target":{"__isSmartRef__":true,"id":1356}},"1548":{"sourceObj":{"__isSmartRef__":true,"id":1516},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1549},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1549":{"source":{"__isSmartRef__":true,"id":1516},"target":{"__isSmartRef__":true,"id":1356}},"1550":{"submorphs":[{"__isSmartRef__":true,"id":1551}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1562},"id":44,"renderContextTable":{"__isSmartRef__":true,"id":1567},"eventHandler":{"__isSmartRef__":true,"id":1568},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":1569},"priorExtent":{"__isSmartRef__":true,"id":1570},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1488},"lighterFill":{"__isSmartRef__":true,"id":1571},"label":{"__isSmartRef__":true,"id":1551},"owner":{"__isSmartRef__":true,"id":1454},"layout":{"__isSmartRef__":true,"id":1580},"attributeConnections":[{"__isSmartRef__":true,"id":1581},{"__isSmartRef__":true,"id":1583}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1551":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1552},"id":45,"renderContextTable":{"__isSmartRef__":true,"id":1556},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1557}],"eventHandler":{"__isSmartRef__":true,"id":1559},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":1560},"priorExtent":{"__isSmartRef__":true,"id":1561},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1550},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1552":{"_Position":{"__isSmartRef__":true,"id":1553},"renderContextTable":{"__isSmartRef__":true,"id":1554},"_Extent":{"__isSmartRef__":true,"id":1555},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1475},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1461},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1553":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1554":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1555":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1556":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1557":{"style":{"__isSmartRef__":true,"id":1558},"chunkOwner":{"__isSmartRef__":true,"id":1551},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"1558":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1559":{"morph":{"__isSmartRef__":true,"id":1551},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1560":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1561":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1562":{"_Position":{"__isSmartRef__":true,"id":1563},"renderContextTable":{"__isSmartRef__":true,"id":1564},"_Extent":{"__isSmartRef__":true,"id":1565},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1566},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1487},"_Fill":{"__isSmartRef__":true,"id":1488},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1563":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1564":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1565":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1566":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1567":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1568":{"morph":{"__isSmartRef__":true,"id":1550},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1569":{"x":1004,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1570":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1571":{"stops":[{"__isSmartRef__":true,"id":1572},{"__isSmartRef__":true,"id":1574},{"__isSmartRef__":true,"id":1576},{"__isSmartRef__":true,"id":1578}],"vector":{"__isSmartRef__":true,"id":1497},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1572":{"offset":0,"color":{"__isSmartRef__":true,"id":1573}},"1573":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1574":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1575}},"1575":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1576":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1577}},"1577":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1578":{"offset":1,"color":{"__isSmartRef__":true,"id":1579}},"1579":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1580":{"moveHorizontal":true},"1581":{"sourceObj":{"__isSmartRef__":true,"id":1550},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1582},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1582":{"source":{"__isSmartRef__":true,"id":1550},"target":{"__isSmartRef__":true,"id":1356}},"1583":{"sourceObj":{"__isSmartRef__":true,"id":1550},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1356},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1584},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1584":{"source":{"__isSmartRef__":true,"id":1550},"target":{"__isSmartRef__":true,"id":1356}},"1585":{"_Position":{"__isSmartRef__":true,"id":1586},"renderContextTable":{"__isSmartRef__":true,"id":1587},"_Extent":{"__isSmartRef__":true,"id":1588},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1589},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1590},"_Fill":{"__isSmartRef__":true,"id":1591},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1586":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1587":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1588":{"x":1043,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1589":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1590":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1591":{"stops":[{"__isSmartRef__":true,"id":1592},{"__isSmartRef__":true,"id":1594}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1592":{"offset":0,"color":{"__isSmartRef__":true,"id":1593}},"1593":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1594":{"offset":1,"color":{"__isSmartRef__":true,"id":1595}},"1595":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1596":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1597":{"morph":{"__isSmartRef__":true,"id":1454},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1598":{"resizeWidth":true,"adjustForNewBounds":true},"1599":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1600":{"x":1043,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1601":{"renderContextTable":{"__isSmartRef__":true,"id":1602},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1603},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1604},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1602":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1603":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1604":{"x":1043,"y":714,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1605":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1606":{"morph":{"__isSmartRef__":true,"id":1356},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1607":{"adjustForNewBounds":true},"1608":{"x":172,"y":68,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1609":{"x":1043,"y":714,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1610":{"x":908,"y":72,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1611":{"submorphs":[{"__isSmartRef__":true,"id":1612},{"__isSmartRef__":true,"id":1758},{"__isSmartRef__":true,"id":1793}],"scripts":[],"id":499,"shape":{"__isSmartRef__":true,"id":14007},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":14011},"_Position":{"__isSmartRef__":true,"id":14012},"priorExtent":{"__isSmartRef__":true,"id":14013},"targetMorph":{"__isSmartRef__":true,"id":1793},"titleBar":{"__isSmartRef__":true,"id":1612},"contentOffset":{"__isSmartRef__":true,"id":14014},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"prevDragPos":{"__isSmartRef__":true,"id":14015},"showsHalos":false,"name":"MethodFinder","partsBinMetaInfo":{"__isSmartRef__":true,"id":13522},"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":14016},"eventHandler":{"__isSmartRef__":true,"id":14017},"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"_Scale":1,"prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"1612":{"submorphs":[{"__isSmartRef__":true,"id":1613},{"__isSmartRef__":true,"id":1627},{"__isSmartRef__":true,"id":1673},{"__isSmartRef__":true,"id":1707}],"scripts":[],"id":500,"shape":{"__isSmartRef__":true,"id":1742},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1753},"_Position":{"__isSmartRef__":true,"id":1754},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":1611},"label":{"__isSmartRef__":true,"id":1613},"closeButton":{"__isSmartRef__":true,"id":1627},"menuButton":{"__isSmartRef__":true,"id":1673},"collapseButton":{"__isSmartRef__":true,"id":1707},"priorExtent":{"__isSmartRef__":true,"id":1755},"owner":{"__isSmartRef__":true,"id":1611},"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":1756},"eventHandler":{"__isSmartRef__":true,"id":1757},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.TitleBar"},"1613":{"submorphs":[],"scripts":[],"id":501,"shape":{"__isSmartRef__":true,"id":1614},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1620},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1621},"priorExtent":{"__isSmartRef__":true,"id":1622},"_MaxTextWidth":null,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":1623}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"owner":{"__isSmartRef__":true,"id":1612},"__SourceModuleName__":"Global.lively.morphic.TextCore","renderContextTable":{"__isSmartRef__":true,"id":1625},"eventHandler":{"__isSmartRef__":true,"id":1626},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":null,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"1614":{"_Position":{"__isSmartRef__":true,"id":1615},"_Extent":{"__isSmartRef__":true,"id":1616},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1617},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1618},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1619},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1615":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1616":{"x":837.4170420843768,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1617":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1618":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1619":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1620":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1621":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1622":{"x":837.4170420843768,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1623":{"style":{"__isSmartRef__":true,"id":1624},"morph":{"__isSmartRef__":true,"id":1613},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1613},"storedString":"MethodFinder","__LivelyClassName__":"lively.morphic.TextChunk"},"1624":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1625":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1626":{"morph":{"__isSmartRef__":true,"id":1613},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1627":{"submorphs":[{"__isSmartRef__":true,"id":1628}],"scripts":[],"id":502,"shape":{"__isSmartRef__":true,"id":1641},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1657},"priorExtent":{"__isSmartRef__":true,"id":1658},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1645},"lighterFill":{"__isSmartRef__":true,"id":1659},"label":{"__isSmartRef__":true,"id":1628},"owner":{"__isSmartRef__":true,"id":1612},"layout":{"__isSmartRef__":true,"id":1668},"attributeConnections":[{"__isSmartRef__":true,"id":1669},{"__isSmartRef__":true,"id":1670}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":1671},"eventHandler":{"__isSmartRef__":true,"id":1672},"__LivelyClassName__":"lively.morphic.WindowControl"},"1628":{"submorphs":[],"scripts":[],"id":503,"shape":{"__isSmartRef__":true,"id":1629},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1634},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1635},"priorExtent":{"__isSmartRef__":true,"id":1636},"_MaxTextWidth":null,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":1637}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1627},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","renderContextTable":{"__isSmartRef__":true,"id":1639},"eventHandler":{"__isSmartRef__":true,"id":1640},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":null,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"1629":{"_Position":{"__isSmartRef__":true,"id":1630},"_Extent":{"__isSmartRef__":true,"id":1631},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1617},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1632},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1633},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1630":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1631":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1632":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1633":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1634":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1635":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1636":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1637":{"style":{"__isSmartRef__":true,"id":1638},"morph":{"__isSmartRef__":true,"id":1628},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1628},"storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"1638":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1639":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1640":{"morph":{"__isSmartRef__":true,"id":1628},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1641":{"_Position":{"__isSmartRef__":true,"id":1642},"_Extent":{"__isSmartRef__":true,"id":1643},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1644},"_Fill":{"__isSmartRef__":true,"id":1645},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1655},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1656},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1642":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1643":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1644":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1645":{"stops":[{"__isSmartRef__":true,"id":1646},{"__isSmartRef__":true,"id":1648},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":1652}],"vector":{"__isSmartRef__":true,"id":1654},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1646":{"offset":0,"color":{"__isSmartRef__":true,"id":1647}},"1647":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1648":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1649}},"1649":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1650":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1651}},"1651":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1652":{"offset":1,"color":{"__isSmartRef__":true,"id":1653}},"1653":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1654":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1655":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1656":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1657":{"x":876.4170420843768,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1658":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1659":{"stops":[{"__isSmartRef__":true,"id":1660},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":1664},{"__isSmartRef__":true,"id":1666}],"vector":{"__isSmartRef__":true,"id":1654},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1660":{"offset":0,"color":{"__isSmartRef__":true,"id":1661}},"1661":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1662":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1663}},"1663":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1664":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1665}},"1665":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1666":{"offset":1,"color":{"__isSmartRef__":true,"id":1667}},"1667":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1668":{"moveHorizontal":true},"1669":{"sourceObj":{"__isSmartRef__":true,"id":1627},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1611},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1670":{"sourceObj":{"__isSmartRef__":true,"id":1627},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1611},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1671":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1672":{"morph":{"__isSmartRef__":true,"id":1627},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1673":{"submorphs":[{"__isSmartRef__":true,"id":1674}],"scripts":[],"id":504,"shape":{"__isSmartRef__":true,"id":1687},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1692},"priorExtent":{"__isSmartRef__":true,"id":1693},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1645},"lighterFill":{"__isSmartRef__":true,"id":1694},"label":{"__isSmartRef__":true,"id":1674},"owner":{"__isSmartRef__":true,"id":1612},"attributeConnections":[{"__isSmartRef__":true,"id":1703},{"__isSmartRef__":true,"id":1704}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":1705},"eventHandler":{"__isSmartRef__":true,"id":1706},"__LivelyClassName__":"lively.morphic.WindowControl"},"1674":{"submorphs":[],"scripts":[],"id":505,"shape":{"__isSmartRef__":true,"id":1675},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1680},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1681},"priorExtent":{"__isSmartRef__":true,"id":1682},"_MaxTextWidth":null,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":1683}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1673},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","renderContextTable":{"__isSmartRef__":true,"id":1685},"eventHandler":{"__isSmartRef__":true,"id":1686},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":null,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"1675":{"_Position":{"__isSmartRef__":true,"id":1676},"_Extent":{"__isSmartRef__":true,"id":1677},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1617},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1678},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1679},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1676":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1677":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1678":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1679":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1680":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1681":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1682":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1683":{"style":{"__isSmartRef__":true,"id":1684},"morph":{"__isSmartRef__":true,"id":1674},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1674},"storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"1684":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1685":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1686":{"morph":{"__isSmartRef__":true,"id":1674},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1687":{"_Position":{"__isSmartRef__":true,"id":1688},"_Extent":{"__isSmartRef__":true,"id":1689},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1644},"_Fill":{"__isSmartRef__":true,"id":1645},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1690},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1691},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1688":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1689":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1690":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1691":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1692":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1693":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1694":{"stops":[{"__isSmartRef__":true,"id":1695},{"__isSmartRef__":true,"id":1697},{"__isSmartRef__":true,"id":1699},{"__isSmartRef__":true,"id":1701}],"vector":{"__isSmartRef__":true,"id":1654},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1695":{"offset":0,"color":{"__isSmartRef__":true,"id":1696}},"1696":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1697":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1698}},"1698":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1699":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1700}},"1700":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1701":{"offset":1,"color":{"__isSmartRef__":true,"id":1702}},"1702":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1703":{"sourceObj":{"__isSmartRef__":true,"id":1673},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1611},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1704":{"sourceObj":{"__isSmartRef__":true,"id":1673},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1611},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1705":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1706":{"morph":{"__isSmartRef__":true,"id":1673},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1707":{"submorphs":[{"__isSmartRef__":true,"id":1708}],"scripts":[],"id":506,"shape":{"__isSmartRef__":true,"id":1721},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1726},"priorExtent":{"__isSmartRef__":true,"id":1727},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1645},"lighterFill":{"__isSmartRef__":true,"id":1728},"label":{"__isSmartRef__":true,"id":1708},"owner":{"__isSmartRef__":true,"id":1612},"layout":{"__isSmartRef__":true,"id":1737},"attributeConnections":[{"__isSmartRef__":true,"id":1738},{"__isSmartRef__":true,"id":1739}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":1740},"eventHandler":{"__isSmartRef__":true,"id":1741},"__LivelyClassName__":"lively.morphic.WindowControl"},"1708":{"submorphs":[],"scripts":[],"id":507,"shape":{"__isSmartRef__":true,"id":1709},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1714},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1715},"priorExtent":{"__isSmartRef__":true,"id":1716},"_MaxTextWidth":null,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":1717}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1707},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","renderContextTable":{"__isSmartRef__":true,"id":1719},"eventHandler":{"__isSmartRef__":true,"id":1720},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":null,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"1709":{"_Position":{"__isSmartRef__":true,"id":1710},"_Extent":{"__isSmartRef__":true,"id":1711},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1617},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1712},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1713},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1710":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1711":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1712":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1713":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1714":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1715":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1716":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1717":{"style":{"__isSmartRef__":true,"id":1718},"morph":{"__isSmartRef__":true,"id":1708},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1708},"storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"1718":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1719":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1720":{"morph":{"__isSmartRef__":true,"id":1708},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1721":{"_Position":{"__isSmartRef__":true,"id":1722},"_Extent":{"__isSmartRef__":true,"id":1723},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1644},"_Fill":{"__isSmartRef__":true,"id":1645},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1724},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1725},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1722":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1723":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1724":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1725":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1726":{"x":857.4170420843768,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1727":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1728":{"stops":[{"__isSmartRef__":true,"id":1729},{"__isSmartRef__":true,"id":1731},{"__isSmartRef__":true,"id":1733},{"__isSmartRef__":true,"id":1735}],"vector":{"__isSmartRef__":true,"id":1654},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1729":{"offset":0,"color":{"__isSmartRef__":true,"id":1730}},"1730":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1731":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1732}},"1732":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1733":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1734}},"1734":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1735":{"offset":1,"color":{"__isSmartRef__":true,"id":1736}},"1736":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1737":{"moveHorizontal":true},"1738":{"sourceObj":{"__isSmartRef__":true,"id":1707},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1611},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1739":{"sourceObj":{"__isSmartRef__":true,"id":1707},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1611},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1740":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1741":{"morph":{"__isSmartRef__":true,"id":1707},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1742":{"_Position":{"__isSmartRef__":true,"id":1743},"_Extent":{"__isSmartRef__":true,"id":1744},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1745},"_Fill":{"__isSmartRef__":true,"id":1746},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1751},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1752},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1743":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1744":{"x":896.4170420843768,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1745":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1746":{"stops":[{"__isSmartRef__":true,"id":1747},{"__isSmartRef__":true,"id":1749}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1747":{"offset":0,"color":{"__isSmartRef__":true,"id":1748}},"1748":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1749":{"offset":1,"color":{"__isSmartRef__":true,"id":1750}},"1750":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1751":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1752":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1753":{"resizeWidth":true,"adjustForNewBounds":true},"1754":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1755":{"x":896.4170420843768,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1756":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1757":{"morph":{"__isSmartRef__":true,"id":1612},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1758":{"submorphs":[],"scripts":[],"id":508,"shape":{"__isSmartRef__":true,"id":1759},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1766},"showsHalos":false,"name":"ResizeCorner2","partsBinMetaInfo":{"__isSmartRef__":true,"id":1767},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1768},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":1611},"renderContextTable":{"__isSmartRef__":true,"id":1769},"eventHandler":{"__isSmartRef__":true,"id":1770},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"_Scale":1.0000000000000002,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1771},"__LivelyClassName__":"lively.morphic.Box"},"1759":{"position":{"__isSmartRef__":true,"id":1760},"_Extent":{"__isSmartRef__":true,"id":1761},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1762},"_Fill":{"__isSmartRef__":true,"id":1763},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1764},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1765},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1760":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1761":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1762":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1763":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1764":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1765":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1766":{"x":883.4170420843768,"y":492.002005010021,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1767":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1768":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1769":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1770":{"morph":{"__isSmartRef__":true,"id":1758},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1771":{"onDrag":{"__isSmartRef__":true,"id":1772},"onDragEnd":{"__isSmartRef__":true,"id":1779},"onDragStart":{"__isSmartRef__":true,"id":1786}},"1772":{"varMapping":{"__isSmartRef__":true,"id":1773},"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":1778},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1773":{"this":{"__isSmartRef__":true,"id":1758},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1774}},"1774":{"$super":{"__isSmartRef__":true,"id":1775}},"1775":{"varMapping":{"__isSmartRef__":true,"id":1776},"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":1777},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1776":{"obj":{"__isSmartRef__":true,"id":1758},"name":"onDrag"},"1777":{},"1778":{},"1779":{"varMapping":{"__isSmartRef__":true,"id":1780},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1785},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1780":{"this":{"__isSmartRef__":true,"id":1758},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1781}},"1781":{"$super":{"__isSmartRef__":true,"id":1782}},"1782":{"varMapping":{"__isSmartRef__":true,"id":1783},"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":1784},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1783":{"obj":{"__isSmartRef__":true,"id":1758},"name":"onDragEnd"},"1784":{},"1785":{},"1786":{"varMapping":{"__isSmartRef__":true,"id":1787},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":1792},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1787":{"this":{"__isSmartRef__":true,"id":1758},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1788}},"1788":{"$super":{"__isSmartRef__":true,"id":1789}},"1789":{"varMapping":{"__isSmartRef__":true,"id":1790},"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":1791},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1790":{"obj":{"__isSmartRef__":true,"id":1758},"name":"onDragStart"},"1791":{},"1792":{},"1793":{"submorphs":[{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":1856},{"__isSmartRef__":true,"id":13674},{"__isSmartRef__":true,"id":13896},{"__isSmartRef__":true,"id":13911}],"scripts":[],"id":509,"shape":{"__isSmartRef__":true,"id":13958},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":13964},"showsHalos":false,"name":"MethodFinderPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":13965},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":1611},"isCopyMorphRef":true,"morphRefId":1,"layout":{"__isSmartRef__":true,"id":13966},"priorExtent":{"__isSmartRef__":true,"id":13967},"targetObject":{"__isSmartRef__":true,"id":1871},"renderContextTable":{"__isSmartRef__":true,"id":13968},"eventHandler":{"__isSmartRef__":true,"id":13969},"scriptAnnotations":{"__isSmartRef__":true,"id":13970},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"_Scale":1,"prevScroll":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13979},"__LivelyClassName__":"lively.morphic.Box"},"1794":{"submorphs":[],"scripts":[],"id":510,"shape":{"__isSmartRef__":true,"id":1795},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1801},"_MaxTextWidth":290,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1798},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"searchText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1802},"owner":{"__isSmartRef__":true,"id":1793},"charsReplaced":"selection","lastFindLoc":9,"attributeConnections":[{"__isSmartRef__":true,"id":1803}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"isInputLine":true,"_WhiteSpaceHandling":"pre-wrap","allowInput":true,"textChunks":[{"__isSmartRef__":true,"id":1804}],"priorSelectionRange":[3,3],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":1806},"lastSearchString":"prev","renderContextTable":{"__isSmartRef__":true,"id":1807},"eventHandler":{"__isSmartRef__":true,"id":1808},"_Rotation":0,"_MinTextWidth":290,"_MinTextHeight":null,"previousSelection":[3,3],"savedTextString":"onDrag","__LivelyClassName__":"lively.morphic.Text"},"1795":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1796},"_Extent":{"__isSmartRef__":true,"id":1797},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1798},"renderContextTable":{"__isSmartRef__":true,"id":1799},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1800},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1796":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1797":{"x":292,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1798":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1799":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1800":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1801":{"x":17,"y":24,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1802":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1803":{"sourceObj":{"__isSmartRef__":true,"id":1794},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1793},"targetMethodName":"search","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1804":{"style":{"__isSmartRef__":true,"id":1805},"chunkOwner":{"__isSmartRef__":true,"id":1794},"storedString":"getBaseDocument","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1805":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1806":{"x":292,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1807":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1808":{"morph":{"__isSmartRef__":true,"id":1794},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1809":{"submorphs":[{"__isSmartRef__":true,"id":1810}],"scripts":[],"id":511,"shape":{"__isSmartRef__":true,"id":1825},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1841},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1829},"lighterFill":{"__isSmartRef__":true,"id":1842},"label":{"__isSmartRef__":true,"id":1810},"showsHalos":false,"name":"searchButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1851},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":{"__isSmartRef__":true,"id":1793},"attributeConnections":[{"__isSmartRef__":true,"id":1852}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"priorExtent":{"__isSmartRef__":true,"id":1853},"renderContextTable":{"__isSmartRef__":true,"id":1854},"eventHandler":{"__isSmartRef__":true,"id":1855},"_Rotation":0,"__LivelyClassName__":"lively.morphic.Button"},"1810":{"submorphs":[],"scripts":[],"id":512,"shape":{"__isSmartRef__":true,"id":1811},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1817},"_MaxTextWidth":77,"_MaxTextHeight":null,"padding":{"__isSmartRef__":true,"id":1818},"_Padding":{"__isSmartRef__":true,"id":1819},"owner":{"__isSmartRef__":true,"id":1809},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textStyle":null,"textChunks":[{"__isSmartRef__":true,"id":1820}],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":1822},"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":1823},"eventHandler":{"__isSmartRef__":true,"id":1824},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":77,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"1811":{"position":{"__isSmartRef__":true,"id":1812},"_Extent":{"__isSmartRef__":true,"id":1813},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1814},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1815},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1816},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1812":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1813":{"x":77,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1814":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1815":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1816":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1817":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1818":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1819":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1820":{"style":{"__isSmartRef__":true,"id":1821},"morph":{"__isSmartRef__":true,"id":1810},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1810},"storedString":"search","__LivelyClassName__":"lively.morphic.TextChunk"},"1821":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1822":{"x":77,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1823":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1824":{"morph":{"__isSmartRef__":true,"id":1810},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1825":{"position":{"__isSmartRef__":true,"id":1826},"_Extent":{"__isSmartRef__":true,"id":1827},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1828},"_Fill":{"__isSmartRef__":true,"id":1829},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1839},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1840},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1826":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1827":{"x":77,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1828":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1829":{"stops":[{"__isSmartRef__":true,"id":1830},{"__isSmartRef__":true,"id":1832},{"__isSmartRef__":true,"id":1834},{"__isSmartRef__":true,"id":1836}],"vector":{"__isSmartRef__":true,"id":1838},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1830":{"offset":0,"color":{"__isSmartRef__":true,"id":1831}},"1831":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1832":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1833}},"1833":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1834":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1835}},"1835":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1836":{"offset":1,"color":{"__isSmartRef__":true,"id":1837}},"1837":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1838":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1839":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1840":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1841":{"x":315,"y":26,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1842":{"stops":[{"__isSmartRef__":true,"id":1843},{"__isSmartRef__":true,"id":1845},{"__isSmartRef__":true,"id":1847},{"__isSmartRef__":true,"id":1849}],"vector":{"__isSmartRef__":true,"id":1838},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1843":{"offset":0,"color":{"__isSmartRef__":true,"id":1844}},"1844":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1845":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1846}},"1846":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1847":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1848}},"1848":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1849":{"offset":1,"color":{"__isSmartRef__":true,"id":1850}},"1850":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1851":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1852":{"sourceObj":{"__isSmartRef__":true,"id":1809},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1794},"targetMethodName":"doSave","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1853":{"x":77,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1854":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1855":{"morph":{"__isSmartRef__":true,"id":1809},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1856":{"submorphs":[],"scripts":[],"id":513,"shape":{"__isSmartRef__":true,"id":1857},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1864},"itemList":[{"__isSmartRef__":true,"id":1865},{"__isSmartRef__":true,"id":1869},{"__isSmartRef__":true,"id":1872}],"showsHalos":false,"name":"searchResultList","partsBinMetaInfo":{"__isSmartRef__":true,"id":13668},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":1793},"attributeConnections":[{"__isSmartRef__":true,"id":13669}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,48],"resizeHeight":true,"resizeWidth":true,"layout":{"__isSmartRef__":true,"id":13670},"priorExtent":{"__isSmartRef__":true,"id":13671},"renderContextTable":{"__isSmartRef__":true,"id":13672},"eventHandler":{"__isSmartRef__":true,"id":13673},"_Rotation":0,"selection":{"__isSmartRef__":true,"id":1870},"selectedLineNo":1,"__LivelyClassName__":"lively.morphic.List"},"1857":{"position":{"__isSmartRef__":true,"id":1858},"_Extent":{"__isSmartRef__":true,"id":1859},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1860},"_Fill":{"__isSmartRef__":true,"id":1861},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1862},"_Padding":{"__isSmartRef__":true,"id":1863},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1858":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1859":{"x":875.3800299912526,"y":145.98799096394293,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1860":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1861":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1862":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1863":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1864":{"x":8,"y":60,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1865":{"isListItem":true,"value":{"__isSmartRef__":true,"id":1866},"string":"class full: World: saveWorldAs"},"1866":{"object":{"__isSmartRef__":true,"id":1867},"method":"saveWorldAs","string":"World: saveWorldAs","type":"class","search":"sender"},"1867":{"style":{"__isSmartRef__":true,"id":1868},"isWorld":true,"doNotSerialize":["revisionOnLoad","clickedOnMorph","draggedMorph"],"_layer_object_id":9,"__LivelyClassName__":"lively.morphic.World","__SourceModuleName__":"Global.lively.morphic.Core"},"1868":{"fill":{"__isSmartRef__":true,"id":780},"enableGrabbing":false,"enableHalos":true,"enableMorphMenu":true,"enableDragging":true},"1869":{"isListItem":true,"value":{"__isSmartRef__":true,"id":1870},"string":"class name: Importer: getBaseDocument"},"1870":{"object":{"__isSmartRef__":true,"id":1871},"method":"getBaseDocument","string":"Importer: getBaseDocument","type":"class","search":"implementor"},"1871":{"isImporter":true,"__LivelyClassName__":"Importer","__SourceModuleName__":"Global.lively.DOMAbstraction"},"1872":{"isListItem":true,"value":{"__isSmartRef__":true,"id":1873},"string":"extend full: Global.lively.persistence.Serializer(object): serializeWorld"},"1873":{"object":{"__isSmartRef__":true,"id":1874},"method":"serializeWorld","string":"Global.lively.persistence.Serializer(object): serializeWorld","type":"extend","search":"sender"},"1874":{"namespaceIdentifier":"Global.lively.persistence.Serializer","createTime":{"__isSmartRef__":true,"id":1875},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1876}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/persistence/Serializer.js","wasDefined":true,"callbacks":[],"jsonWorldId":"LivelyJSONWorld","changeSetElementId":"WorldChangeSet","_isLoaded":true,"__LivelyClassName__":"Namespace"},"1875":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:13 GMT-0700 (PDT)"},"1876":{"namespaceIdentifier":"Global.lively.Main","createTime":{"__isSmartRef__":true,"id":1877},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1878}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/Main.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1874},{"__isSmartRef__":true,"id":1892}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1877":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:07 GMT-0700 (PDT)"},"1878":{"namespaceIdentifier":"Global.anonymous_module_0","createTime":{"__isSmartRef__":true,"id":1879},"wasDefined":true,"_isAnonymous":true,"sourceModuleName":"Global","defStack":"Error\n at require (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:224:15)\n at Object.loadMain (http://lively-kernel.org/repository/webwerkstatt/core/lively/bootstrap.js:489:9)\n at http://lively-kernel.org/repository/webwerkstatt/core/lively/bootstrap.js:539:18\n at HTMLScriptElement. (http://lively-kernel.org/repository/webwerkstatt/core/lively/bootstrap.js:201:60)","privateRequirements":[{"__isSmartRef__":true,"id":1880},{"__isSmartRef__":true,"id":1876}],"pendingRequirements":[],"callbacks":[],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_0","_isLoaded":true,"__LivelyClassName__":"Namespace"},"1879":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:07 GMT-0700 (PDT)"},"1880":{"namespaceIdentifier":"Global.lively.bindings","createTime":{"__isSmartRef__":true,"id":1881},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1878}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/bindings.js","wasDefined":true,"callbacks":[],"documentation":"connect parameters: source, sourceProp, target, targetProp, spec\nspec can be: {removeAfterUpdate: Boolean, converter: Function, updater: Function, varMapping: Object}","_isLoaded":true,"GeometryBindings":{"__isSmartRef__":true,"id":1882},"Core":{"__isSmartRef__":true,"id":13666},"_layer_object_id":6,"__LivelyClassName__":"Namespace"},"1881":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:07 GMT-0700 (PDT)"},"1882":{"namespaceIdentifier":"Global.lively.bindings.GeometryBindings","createTime":{"__isSmartRef__":true,"id":1883},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1884}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/bindings/GeometryBindings.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":13666},{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":1914}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1883":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"1884":{"namespaceIdentifier":"Global.lively.morphic.Connectors","createTime":{"__isSmartRef__":true,"id":1885},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1886}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Connectors.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13580},{"__isSmartRef__":true,"id":1882}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1885":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"1886":{"namespaceIdentifier":"Global.lively.morphic.ScriptingSupport","createTime":{"__isSmartRef__":true,"id":1887},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1888}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/ScriptingSupport.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1940},{"__isSmartRef__":true,"id":1884}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1887":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"1888":{"namespaceIdentifier":"Global.lively.morphic.Complete","createTime":{"__isSmartRef__":true,"id":1889},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":13565}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Complete.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13580},{"__isSmartRef__":true,"id":1914},{"__isSmartRef__":true,"id":1898},{"__isSmartRef__":true,"id":13578},{"__isSmartRef__":true,"id":1886},{"__isSmartRef__":true,"id":13574},{"__isSmartRef__":true,"id":13523},{"__isSmartRef__":true,"id":13582},{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":13584}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1889":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"1890":{"namespaceIdentifier":"Global.anonymous_module_2","createTime":{"__isSmartRef__":true,"id":1891},"wasDefined":true,"_isAnonymous":true,"sourceModuleName":"Global.anonymous_module_1","defStack":"Error\n at require (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:224:15)\n at http://lively-kernel.org/repository/webwerkstatt/core/lively/Main.js?1319826367291:263:13\n at curried (http://lively-kernel.org/repository/webwerkstatt/core/lively/miniprototype.js?1319826366401:117:21)\n at http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:197:30\n at Namespace.runOnloadCallbacks (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1173:26)\n at Namespace.load (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1212:9)\n at Namespace.removeRequiredModule (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1140:9)\n at Namespace. (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1110:34)\n at Array.forEach (native)\n at Namespace.informDependendModules (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1110:8)","privateRequirements":[{"__isSmartRef__":true,"id":1892},{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1914},{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":1926},{"__isSmartRef__":true,"id":1916},{"__isSmartRef__":true,"id":1880},{"__isSmartRef__":true,"id":1940},{"__isSmartRef__":true,"id":13523},{"__isSmartRef__":true,"id":13531},{"__isSmartRef__":true,"id":13533},{"__isSmartRef__":true,"id":13537},{"__isSmartRef__":true,"id":13535},{"__isSmartRef__":true,"id":1902},{"__isSmartRef__":true,"id":13541},{"__isSmartRef__":true,"id":13539},{"__isSmartRef__":true,"id":1892},{"__isSmartRef__":true,"id":1888}],"pendingRequirements":[],"callbacks":[],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_2","_isLoaded":true,"__LivelyClassName__":"Namespace"},"1891":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"1892":{"namespaceIdentifier":"Global.lively.ChangeSet","createTime":{"__isSmartRef__":true,"id":1893},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1876}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ChangeSet.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1894}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1893":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:13 GMT-0700 (PDT)"},"1894":{"namespaceIdentifier":"Global.lively.DOMAbstraction","createTime":{"__isSmartRef__":true,"id":1895},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1892}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/DOMAbstraction.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1895":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:14 GMT-0700 (PDT)"},"1896":{"namespaceIdentifier":"Global.lively.morphic.Core","createTime":{"__isSmartRef__":true,"id":1897},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1898}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Core.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1926},{"__isSmartRef__":true,"id":1930}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1897":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:14 GMT-0700 (PDT)"},"1898":{"namespaceIdentifier":"Global.lively.morphic.Serialization","createTime":{"__isSmartRef__":true,"id":1899},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1900}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Serialization.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1902},{"__isSmartRef__":true,"id":1874},{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":1894},{"__isSmartRef__":true,"id":1914}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1899":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:14 GMT-0700 (PDT)"},"1900":{"namespaceIdentifier":"Global.anonymous_module_1","createTime":{"__isSmartRef__":true,"id":1901},"wasDefined":true,"_isAnonymous":true,"sourceModuleName":"Global.anonymous_module_0","defStack":"Error\n at require (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:224:15)\n at CanvasLoader.loadWorld (http://lively-kernel.org/repository/webwerkstatt/core/lively/Main.js?1319826367291:262:9)\n at CanvasLoader.systemStart (http://lively-kernel.org/repository/webwerkstatt/core/lively/Main.js?1319826367291:256:14)\n at http://lively-kernel.org/repository/webwerkstatt/core/lively/bootstrap.js:492:20\n at curried (http://lively-kernel.org/repository/webwerkstatt/core/lively/miniprototype.js?1319826366401:117:21)\n at http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:197:30\n at Namespace.runOnloadCallbacks (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1173:26)\n at Namespace.load (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1212:9)\n at Namespace.removeRequiredModule (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1140:9)\n at Namespace. (http://lively-kernel.org/repository/webwerkstatt/core/lively/Base.js?1319826366916:1110:34)","privateRequirements":[{"__isSmartRef__":true,"id":1898}],"pendingRequirements":[],"callbacks":[],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/anonymous_module_1","_isLoaded":true,"__LivelyClassName__":"Namespace"},"1901":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:14 GMT-0700 (PDT)"},"1902":{"namespaceIdentifier":"Global.lively.Network","createTime":{"__isSmartRef__":true,"id":1903},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1898}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/Network.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1880},{"__isSmartRef__":true,"id":1904},{"__isSmartRef__":true,"id":1908}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1903":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:14 GMT-0700 (PDT)"},"1904":{"namespaceIdentifier":"Global.lively.NoMoreModels","createTime":{"__isSmartRef__":true,"id":1905},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1902}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/NoMoreModels.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1906}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1905":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1906":{"namespaceIdentifier":"Global.lively.OldModel","createTime":{"__isSmartRef__":true,"id":1907},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1904},{"__isSmartRef__":true,"id":1908}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/OldModel.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1880}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1907":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1908":{"namespaceIdentifier":"Global.lively.Data","createTime":{"__isSmartRef__":true,"id":1909},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1902}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/Data.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1906}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1909":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1910":{"namespaceIdentifier":"Global.lively.morphic.TextCore","createTime":{"__isSmartRef__":true,"id":1911},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1898}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/TextCore.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":1896}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1911":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:14 GMT-0700 (PDT)"},"1912":{"namespaceIdentifier":"Global.cop.Layers","createTime":{"__isSmartRef__":true,"id":1913},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1910}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/cop/Layers.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1913":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1914":{"namespaceIdentifier":"Global.lively.morphic.Widgets","createTime":{"__isSmartRef__":true,"id":1915},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1898}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Widgets.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1916},{"__isSmartRef__":true,"id":1934},{"__isSmartRef__":true,"id":1936}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1915":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:14 GMT-0700 (PDT)"},"1916":{"namespaceIdentifier":"Global.lively.morphic.Events","createTime":{"__isSmartRef__":true,"id":1917},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1914}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Events.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":1918},{"__isSmartRef__":true,"id":1922},{"__isSmartRef__":true,"id":1928},{"__isSmartRef__":true,"id":1930}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1917":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1918":{"namespaceIdentifier":"Global.lively.morphic.HTML","createTime":{"__isSmartRef__":true,"id":1919},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1916}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/HTML.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1920},{"__isSmartRef__":true,"id":1924},{"__isSmartRef__":true,"id":1930},{"__isSmartRef__":true,"id":1932}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1919":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1920":{"namespaceIdentifier":"Global.lively.morphic.Rendering","createTime":{"__isSmartRef__":true,"id":1921},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1922},{"__isSmartRef__":true,"id":1928},{"__isSmartRef__":true,"id":1918}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Rendering.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":1926}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1921":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:16 GMT-0700 (PDT)"},"1922":{"namespaceIdentifier":"Global.lively.morphic.SVG","createTime":{"__isSmartRef__":true,"id":1923},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1916}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/SVG.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1920},{"__isSmartRef__":true,"id":1924}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1923":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1924":{"namespaceIdentifier":"Global.lively.morphic.PathShapes","createTime":{"__isSmartRef__":true,"id":1925},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1922},{"__isSmartRef__":true,"id":1918}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/PathShapes.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1926}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1925":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:16 GMT-0700 (PDT)"},"1926":{"namespaceIdentifier":"Global.lively.morphic.Shapes","createTime":{"__isSmartRef__":true,"id":1927},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1896}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Shapes.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1927":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1928":{"namespaceIdentifier":"Global.lively.morphic.Canvas","createTime":{"__isSmartRef__":true,"id":1929},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1916}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Canvas.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1920}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1929":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1930":{"namespaceIdentifier":"Global.lively.Traits","createTime":{"__isSmartRef__":true,"id":1931},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1896}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/Traits.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1931":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1932":{"namespaceIdentifier":"Global.lively.morphic.jQueryMorphAddons","createTime":{"__isSmartRef__":true,"id":1933},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1918}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/jQueryMorphAddons.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1933":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:16 GMT-0700 (PDT)"},"1934":{"namespaceIdentifier":"Global.lively.WidgetsTraits","createTime":{"__isSmartRef__":true,"id":1935},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1914}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/WidgetsTraits.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1930}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1935":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1936":{"namespaceIdentifier":"Global.lively.morphic.Styles","createTime":{"__isSmartRef__":true,"id":1937},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1914}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Styles.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1926},{"__isSmartRef__":true,"id":1938}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1937":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1938":{"namespaceIdentifier":"Global.lively.CrayonColors","createTime":{"__isSmartRef__":true,"id":1939},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1936}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/CrayonColors.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1939":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:15 GMT-0700 (PDT)"},"1940":{"namespaceIdentifier":"Global.lively.PartsBin","createTime":{"__isSmartRef__":true,"id":1941},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/PartsBin.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1930}],"callbacks":[],"partSpaces":{"__isSmartRef__":true,"id":1942},"_isLoaded":true,"__LivelyClassName__":"Namespace"},"1941":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"1942":{"PartsBin/Tools":{"__isSmartRef__":true,"id":1943}},"1943":{"name":"PartsBin/Tools","partItems":{"__isSmartRef__":true,"id":1944},"__LivelyClassName__":"lively.PartsBin.PartsSpace","__SourceModuleName__":"Global.lively.PartsBin"},"1944":{"Explorer":{"__isSmartRef__":true,"id":1945},"MethodFinder":{"__isSmartRef__":true,"id":13521}},"1945":{"partsSpaceName":"PartsBin/Tools","name":"Explorer","part":{"__isSmartRef__":true,"id":1946},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"json":"{\"id\":0,\"registry\":{\"0\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":1},{\"__isSmartRef__\":true,\"id\":149},{\"__isSmartRef__\":true,\"id\":185}],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":403},\"id\":6664,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":407},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":408},\"droppingEnabled\":true,\"halosEnabled\":true,\"__layered_draggingEnabled__\":true,\"layout\":{\"__isSmartRef__\":true,\"id\":409},\"LK2\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":410},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":411},\"targetMorph\":{\"__isSmartRef__\":true,\"id\":185},\"titleBar\":{\"__isSmartRef__\":true,\"id\":1},\"contentOffset\":{\"__isSmartRef__\":true,\"id\":412},\"collapsedTransform\":null,\"collapsedExtent\":null,\"expandedTransform\":null,\"expandedExtent\":null,\"ignoreEventsOnExpand\":false,\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":413},\"name\":\"Explorer\",\"prevDragPos\":{\"__isSmartRef__\":true,\"id\":422},\"isBeingDragged\":false,\"highlighted\":true,\"showsHalos\":false,\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"explorer\":{\"__isSmartRef__\":true,\"id\":185},\"scriptAnnotations\":{\"__isSmartRef__\":true,\"id\":423},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"isCopyMorphRef\":true,\"morphRefId\":1,\"prevScroll\":[0,0],\"_Rotation\":0,\"_Scale\":1,\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":428},\"__LivelyClassName__\":\"lively.morphic.Window\",\"withoutLayers\":[\"Global.lively.morphic.GrabbingLayer\"]},\"1\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":2},{\"__isSmartRef__\":true,\"id\":16},{\"__isSmartRef__\":true,\"id\":63},{\"__isSmartRef__\":true,\"id\":97}],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":132},\"id\":6665,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":144},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":145},\"droppingEnabled\":true,\"halosEnabled\":true,\"layout\":{\"__isSmartRef__\":true,\"id\":146},\"_Position\":{\"__isSmartRef__\":true,\"id\":147},\"windowMorph\":{\"__isSmartRef__\":true,\"id\":0},\"label\":{\"__isSmartRef__\":true,\"id\":2},\"closeButton\":{\"__isSmartRef__\":true,\"id\":16},\"menuButton\":{\"__isSmartRef__\":true,\"id\":63},\"collapseButton\":{\"__isSmartRef__\":true,\"id\":97},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":148},\"owner\":{\"__isSmartRef__\":true,\"id\":0},\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"isCopyMorphRef\":true,\"morphRefId\":1,\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"showsHalos\":false,\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.TitleBar\"},\"2\":{\"submorphs\":[],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":3},\"id\":6666,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":9},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":10},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_ClipMode\":\"hidden\",\"fixedWidth\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"_FontSize\":10,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":11}],\"evalEnabled\":false,\"isLabel\":true,\"_HandStyle\":\"default\",\"layout\":{\"__isSmartRef__\":true,\"id\":13},\"_Align\":\"center\",\"eventsAreIgnored\":true,\"_PointerEvents\":\"none\",\"owner\":{\"__isSmartRef__\":true,\"id\":1},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":14},\"_MaxTextWidth\":222.49672894514134,\"_MinTextWidth\":222.49672894514134,\"_MaxTextHeight\":null,\"_MinTextHeight\":null,\"_Position\":{\"__isSmartRef__\":true,\"id\":15},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"3\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":4},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":5},\"_Extent\":{\"__isSmartRef__\":true,\"id\":6},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":7},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":8},\"_Fill\":null,\"_BorderRadius\":0,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"4\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"5\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"6\":{\"x\":222.49672894514134,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"7\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"8\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"9\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"10\":{\"morph\":{\"__isSmartRef__\":true,\"id\":2},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"11\":{\"style\":{\"__isSmartRef__\":true,\"id\":12},\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":2},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"storedString\":\"Explorer\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"12\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"13\":{\"resizeWidth\":true},\"14\":{\"x\":222.49672894514134,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"15\":{\"x\":20,\"y\":3,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"16\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":17}],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":29},\"id\":6667,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":45},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":46},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":47},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":48},\"value\":false,\"toggle\":false,\"isActive\":true,\"normalFill\":{\"__isSmartRef__\":true,\"id\":35},\"lighterFill\":{\"__isSmartRef__\":true,\"id\":49},\"label\":{\"__isSmartRef__\":true,\"id\":17},\"owner\":{\"__isSmartRef__\":true,\"id\":1},\"layout\":{\"__isSmartRef__\":true,\"id\":58},\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":59},{\"__isSmartRef__\":true,\"id\":61}],\"doNotSerialize\":[\"$$getHelpText\",\"$$fire\"],\"doNotCopyProperties\":[\"$$getHelpText\",\"$$fire\"],\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"showsHalos\":false,\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.WindowControl\"},\"17\":{\"submorphs\":[],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":18},\"id\":6668,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":23},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":24},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_ClipMode\":\"hidden\",\"fixedWidth\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"_FontSize\":8,\"_Position\":{\"__isSmartRef__\":true,\"id\":25},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":26},\"_MaxTextWidth\":17,\"_MinTextWidth\":17,\"_MaxTextHeight\":null,\"_MinTextHeight\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":27}],\"evalEnabled\":false,\"owner\":{\"__isSmartRef__\":true,\"id\":16},\"isLabel\":true,\"_HandStyle\":\"default\",\"_Align\":\"center\",\"eventsAreIgnored\":true,\"_PointerEvents\":\"none\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"18\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":19},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":20},\"_Extent\":{\"__isSmartRef__\":true,\"id\":21},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":22},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":8},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"19\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"20\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"21\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"22\":{\"x\":0,\"y\":3,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"23\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"24\":{\"morph\":{\"__isSmartRef__\":true,\"id\":17},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"25\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"26\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"27\":{\"style\":{\"__isSmartRef__\":true,\"id\":28},\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":17},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"storedString\":\"X\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"28\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"29\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":30},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":31},\"_Extent\":{\"__isSmartRef__\":true,\"id\":32},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":33},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":34},\"_Fill\":{\"__isSmartRef__\":true,\"id\":35},\"_StrokeOpacity\":0,\"_BorderRadius\":5,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"30\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"31\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"32\":{\"x\":17,\"y\":17,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"33\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"34\":{\"r\":0.7411764705882353,\"g\":0.7450980392156863,\"b\":0.7529411764705882,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"35\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":36},{\"__isSmartRef__\":true,\"id\":38},{\"__isSmartRef__\":true,\"id\":40},{\"__isSmartRef__\":true,\"id\":42}],\"vector\":{\"__isSmartRef__\":true,\"id\":44},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"36\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":37}},\"37\":{\"r\":0.9600000000000001,\"g\":0.9600000000000001,\"b\":0.9600000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"38\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":39}},\"39\":{\"r\":0.8200000000000001,\"g\":0.8200000000000001,\"b\":0.8200000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"40\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":41}},\"41\":{\"r\":0.8200000000000001,\"g\":0.8200000000000001,\"b\":0.8200000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"42\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":43}},\"43\":{\"r\":0.94,\"g\":0.94,\"b\":0.94,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"44\":{\"x\":0,\"y\":0,\"width\":0,\"height\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"45\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"46\":{\"morph\":{\"__isSmartRef__\":true,\"id\":16},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"47\":{\"x\":261.49672894514134,\"y\":3,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"48\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"49\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":50},{\"__isSmartRef__\":true,\"id\":52},{\"__isSmartRef__\":true,\"id\":54},{\"__isSmartRef__\":true,\"id\":56}],\"vector\":{\"__isSmartRef__\":true,\"id\":44},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"50\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":51}},\"51\":{\"r\":0.98,\"g\":0.98,\"b\":0.98,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"52\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":53}},\"53\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"54\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":55}},\"55\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"56\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":57}},\"57\":{\"r\":0.97,\"g\":0.97,\"b\":0.97,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"58\":{\"moveHorizontal\":true},\"59\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":16},\"sourceAttrName\":\"getHelpText\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"getCloseHelp\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"varMapping\":{\"__isSmartRef__\":true,\"id\":60},\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"60\":{\"source\":{\"__isSmartRef__\":true,\"id\":16},\"target\":{\"__isSmartRef__\":true,\"id\":0}},\"61\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":16},\"sourceAttrName\":\"fire\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"initiateShutdown\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"varMapping\":{\"__isSmartRef__\":true,\"id\":62},\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"62\":{\"source\":{\"__isSmartRef__\":true,\"id\":16},\"target\":{\"__isSmartRef__\":true,\"id\":0}},\"63\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":64}],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":75},\"id\":6669,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":80},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":81},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":82},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":83},\"value\":false,\"toggle\":false,\"isActive\":true,\"normalFill\":{\"__isSmartRef__\":true,\"id\":35},\"lighterFill\":{\"__isSmartRef__\":true,\"id\":84},\"label\":{\"__isSmartRef__\":true,\"id\":64},\"owner\":{\"__isSmartRef__\":true,\"id\":1},\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":93},{\"__isSmartRef__\":true,\"id\":95}],\"doNotSerialize\":[\"$$getHelpText\",\"$$fire\"],\"doNotCopyProperties\":[\"$$getHelpText\",\"$$fire\"],\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"showsHalos\":false,\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.WindowControl\"},\"64\":{\"submorphs\":[],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":65},\"id\":6670,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":69},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":70},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_ClipMode\":\"hidden\",\"fixedWidth\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"_FontSize\":8,\"_Position\":{\"__isSmartRef__\":true,\"id\":71},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":72},\"_MaxTextWidth\":17,\"_MinTextWidth\":17,\"_MaxTextHeight\":null,\"_MinTextHeight\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":73}],\"evalEnabled\":false,\"owner\":{\"__isSmartRef__\":true,\"id\":63},\"isLabel\":true,\"_HandStyle\":\"default\",\"_Align\":\"center\",\"eventsAreIgnored\":true,\"_PointerEvents\":\"none\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"65\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":66},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":67},\"_Extent\":{\"__isSmartRef__\":true,\"id\":68},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":22},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":8},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"66\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"67\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"68\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"69\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"70\":{\"morph\":{\"__isSmartRef__\":true,\"id\":64},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"71\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"72\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"73\":{\"style\":{\"__isSmartRef__\":true,\"id\":74},\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":64},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"storedString\":\"M\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"74\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"75\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":76},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":77},\"_Extent\":{\"__isSmartRef__\":true,\"id\":78},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":79},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":34},\"_Fill\":{\"__isSmartRef__\":true,\"id\":35},\"_StrokeOpacity\":0,\"_BorderRadius\":5,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"76\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"77\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"78\":{\"x\":17,\"y\":17,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"79\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"80\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"81\":{\"morph\":{\"__isSmartRef__\":true,\"id\":63},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"82\":{\"x\":3,\"y\":3,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"83\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"84\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":85},{\"__isSmartRef__\":true,\"id\":87},{\"__isSmartRef__\":true,\"id\":89},{\"__isSmartRef__\":true,\"id\":91}],\"vector\":{\"__isSmartRef__\":true,\"id\":44},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"85\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":86}},\"86\":{\"r\":0.98,\"g\":0.98,\"b\":0.98,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"87\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":88}},\"88\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"89\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":90}},\"90\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"91\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":92}},\"92\":{\"r\":0.97,\"g\":0.97,\"b\":0.97,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"93\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":63},\"sourceAttrName\":\"getHelpText\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"getMenuHelp\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"varMapping\":{\"__isSmartRef__\":true,\"id\":94},\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"94\":{\"source\":{\"__isSmartRef__\":true,\"id\":63},\"target\":{\"__isSmartRef__\":true,\"id\":0}},\"95\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":63},\"sourceAttrName\":\"fire\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"showTargetMorphMenu\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"varMapping\":{\"__isSmartRef__\":true,\"id\":96},\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"96\":{\"source\":{\"__isSmartRef__\":true,\"id\":63},\"target\":{\"__isSmartRef__\":true,\"id\":0}},\"97\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":98}],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":109},\"id\":6671,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":114},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":115},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":116},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":117},\"value\":false,\"toggle\":false,\"isActive\":true,\"normalFill\":{\"__isSmartRef__\":true,\"id\":35},\"lighterFill\":{\"__isSmartRef__\":true,\"id\":118},\"label\":{\"__isSmartRef__\":true,\"id\":98},\"owner\":{\"__isSmartRef__\":true,\"id\":1},\"layout\":{\"__isSmartRef__\":true,\"id\":127},\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":128},{\"__isSmartRef__\":true,\"id\":130}],\"doNotSerialize\":[\"$$getHelpText\",\"$$fire\"],\"doNotCopyProperties\":[\"$$getHelpText\",\"$$fire\"],\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"showsHalos\":false,\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.WindowControl\"},\"98\":{\"submorphs\":[],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":99},\"id\":6672,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":103},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":104},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_ClipMode\":\"hidden\",\"fixedWidth\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"_FontSize\":8,\"_Position\":{\"__isSmartRef__\":true,\"id\":105},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":106},\"_MaxTextWidth\":17,\"_MinTextWidth\":17,\"_MaxTextHeight\":null,\"_MinTextHeight\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":107}],\"evalEnabled\":false,\"owner\":{\"__isSmartRef__\":true,\"id\":97},\"isLabel\":true,\"_HandStyle\":\"default\",\"_Align\":\"center\",\"eventsAreIgnored\":true,\"_PointerEvents\":\"none\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"99\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":100},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":101},\"_Extent\":{\"__isSmartRef__\":true,\"id\":102},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":22},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":8},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"100\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"101\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"102\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"103\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"104\":{\"morph\":{\"__isSmartRef__\":true,\"id\":98},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"105\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"106\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"107\":{\"style\":{\"__isSmartRef__\":true,\"id\":108},\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":98},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"storedString\":\"–\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"108\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"109\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":110},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":111},\"_Extent\":{\"__isSmartRef__\":true,\"id\":112},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":113},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":34},\"_Fill\":{\"__isSmartRef__\":true,\"id\":35},\"_StrokeOpacity\":0,\"_BorderRadius\":5,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"110\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"111\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"112\":{\"x\":17,\"y\":17,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"113\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"114\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"115\":{\"morph\":{\"__isSmartRef__\":true,\"id\":97},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"116\":{\"x\":242.49672894514134,\"y\":3,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"117\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"118\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":119},{\"__isSmartRef__\":true,\"id\":121},{\"__isSmartRef__\":true,\"id\":123},{\"__isSmartRef__\":true,\"id\":125}],\"vector\":{\"__isSmartRef__\":true,\"id\":44},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"119\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":120}},\"120\":{\"r\":0.98,\"g\":0.98,\"b\":0.98,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"121\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":122}},\"122\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"123\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":124}},\"124\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"125\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":126}},\"126\":{\"r\":0.97,\"g\":0.97,\"b\":0.97,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"127\":{\"moveHorizontal\":true},\"128\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":97},\"sourceAttrName\":\"getHelpText\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"getCollapseHelp\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"varMapping\":{\"__isSmartRef__\":true,\"id\":129},\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"129\":{\"source\":{\"__isSmartRef__\":true,\"id\":97},\"target\":{\"__isSmartRef__\":true,\"id\":0}},\"130\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":97},\"sourceAttrName\":\"fire\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"toggleCollapse\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"varMapping\":{\"__isSmartRef__\":true,\"id\":131},\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"131\":{\"source\":{\"__isSmartRef__\":true,\"id\":97},\"target\":{\"__isSmartRef__\":true,\"id\":0}},\"132\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":133},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":134},\"_Extent\":{\"__isSmartRef__\":true,\"id\":135},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":136},\"_BorderWidth\":1,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":137},\"_Fill\":{\"__isSmartRef__\":true,\"id\":138},\"_StrokeOpacity\":1,\"_BorderRadius\":\"8px 8px 0px 0px\",\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"133\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"134\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"135\":{\"x\":281.49672894514134,\"y\":22,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"136\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"137\":{\"r\":0.4,\"g\":0.4,\"b\":0.4,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"138\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":139},{\"__isSmartRef__\":true,\"id\":141}],\"vector\":{\"__isSmartRef__\":true,\"id\":143},\"__LivelyClassName__\":\"lively.morphic.LinearGradient\",\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\"},\"139\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":140}},\"140\":{\"r\":1,\"g\":1,\"b\":1,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"141\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":142}},\"142\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"143\":{\"x\":0,\"y\":0,\"width\":0,\"height\":1,\"__LivelyClassName__\":\"Rectangle\",\"__SourceModuleName__\":\"Global\"},\"144\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"145\":{\"morph\":{\"__isSmartRef__\":true,\"id\":1},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"146\":{\"resizeWidth\":true,\"adjustForNewBounds\":true},\"147\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"148\":{\"x\":281.49672894514134,\"y\":22,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"149\":{\"submorphs\":[],\"scripts\":[],\"id\":6673,\"shape\":{\"__isSmartRef__\":true,\"id\":150},\"droppingEnabled\":true,\"halosEnabled\":true,\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":157},\"showsHalos\":false,\"name\":\"ResizeCorner3\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":158},\"__SourceModuleName__\":\"Global.lively.morphic.Core\",\"__layered_draggingEnabled__\":true,\"dragStartPoint\":null,\"originalExtent\":{\"__isSmartRef__\":true,\"id\":159},\"originalTargetExtent\":null,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":160},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":161},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"owner\":{\"__isSmartRef__\":true,\"id\":0},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":162},\"_Rotation\":0,\"_Scale\":1,\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":163},\"__LivelyClassName__\":\"lively.morphic.Box\"},\"150\":{\"position\":{\"__isSmartRef__\":true,\"id\":151},\"_Extent\":{\"__isSmartRef__\":true,\"id\":152},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":153},\"_Fill\":{\"__isSmartRef__\":true,\"id\":154},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":155},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":156},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"151\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"152\":{\"x\":13,\"y\":15,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"153\":{\"r\":0.568,\"g\":0.568,\"b\":0.568,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"154\":{\"r\":0.258,\"g\":0.258,\"b\":0.258,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"155\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"156\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"157\":{\"x\":268.54865099712833,\"y\":422.9812919022879,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"158\":{\"partsSpaceName\":\"PartsBin/NewWorld\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"migrationLevel\":2,\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"159\":{\"x\":239,\"y\":138,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"160\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"161\":{\"morph\":{\"__isSmartRef__\":true,\"id\":149},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"162\":{\"x\":13,\"y\":15,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"163\":{\"onDrag\":{\"__isSmartRef__\":true,\"id\":164},\"onDragEnd\":{\"__isSmartRef__\":true,\"id\":171},\"onDragStart\":{\"__isSmartRef__\":true,\"id\":178}},\"164\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":165},\"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\":170},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"165\":{\"this\":{\"__isSmartRef__\":true,\"id\":149},\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":166}},\"166\":{\"$super\":{\"__isSmartRef__\":true,\"id\":167}},\"167\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":168},\"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\":169},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"168\":{\"obj\":{\"__isSmartRef__\":true,\"id\":149},\"name\":\"onDrag\"},\"169\":{},\"170\":{},\"171\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":172},\"source\":\"function onDragEnd(evt) {\\n\\tthis.dragStartPoint = null;\\n\\tthis.originalTargetExtent = null;\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":177},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"172\":{\"this\":{\"__isSmartRef__\":true,\"id\":149},\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":173}},\"173\":{\"$super\":{\"__isSmartRef__\":true,\"id\":174}},\"174\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":175},\"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\":176},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"175\":{\"obj\":{\"__isSmartRef__\":true,\"id\":149},\"name\":\"onDragEnd\"},\"176\":{},\"177\":{},\"178\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":179},\"source\":\"function onDragStart(evt) {\\n\\tthis.dragStartPoint = evt.mousePoint;\\n\\tthis.originalTargetExtent = this.owner.getExtent();\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":184},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"179\":{\"this\":{\"__isSmartRef__\":true,\"id\":149},\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":180}},\"180\":{\"$super\":{\"__isSmartRef__\":true,\"id\":181}},\"181\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":182},\"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\":183},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"182\":{\"obj\":{\"__isSmartRef__\":true,\"id\":149},\"name\":\"onDragStart\"},\"183\":{},\"184\":{},\"185\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":186},{\"__isSmartRef__\":true,\"id\":346}],\"scripts\":[],\"id\":6674,\"shape\":{\"__isSmartRef__\":true,\"id\":369},\"droppingEnabled\":true,\"halosEnabled\":true,\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":376},\"showsHalos\":false,\"name\":\"ExplorerPane\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":377},\"__SourceModuleName__\":\"Global.lively.morphic.Core\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":380},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":381},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"owner\":{\"__isSmartRef__\":true,\"id\":0},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":382},\"distanceToDragEvent\":{\"__isSmartRef__\":true,\"id\":383},\"layout\":{\"__isSmartRef__\":true,\"id\":384},\"workspace\":{\"__isSmartRef__\":true,\"id\":346},\"scriptAnnotations\":{\"__isSmartRef__\":true,\"id\":386},\"treeView\":{\"__isSmartRef__\":true,\"id\":186},\"focusedNode\":null,\"isInLayoutCycle\":false,\"prevScroll\":[0,0],\"_Rotation\":0,\"_Scale\":1,\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":393},\"__LivelyClassName__\":\"lively.morphic.Box\"},\"186\":{\"submorphs\":[],\"scripts\":[],\"id\":6675,\"shape\":{\"__isSmartRef__\":true,\"id\":187},\"droppingEnabled\":true,\"halosEnabled\":true,\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":193},\"showsHalos\":false,\"name\":\"TreeView\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":194},\"__SourceModuleName__\":\"Global.lively.morphic.Core\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":195},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":196},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"priorExtent\":{\"__isSmartRef__\":true,\"id\":197},\"layout\":{\"__isSmartRef__\":true,\"id\":198},\"isInLayoutCycle\":false,\"scriptAnnotations\":{\"__isSmartRef__\":true,\"id\":200},\"isCopyMorphRef\":true,\"morphRefId\":1,\"isBeingDragged\":false,\"owner\":{\"__isSmartRef__\":true,\"id\":185},\"distanceToDragEvent\":{\"__isSmartRef__\":true,\"id\":275},\"colors\":{\"__isSmartRef__\":true,\"id\":276},\"fonts\":{\"__isSmartRef__\":true,\"id\":282},\"sizes\":{\"__isSmartRef__\":true,\"id\":283},\"rootNode\":null,\"prevScroll\":[0,0],\"_Rotation\":0,\"_Scale\":1,\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":288},\"__LivelyClassName__\":\"lively.morphic.Box\"},\"187\":{\"position\":{\"__isSmartRef__\":true,\"id\":188},\"_Extent\":{\"__isSmartRef__\":true,\"id\":189},\"_BorderWidth\":1,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":190},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":191},\"_BorderRadius\":0,\"_Opacity\":1,\"_BorderStyle\":\"solid\",\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":192},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"188\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"189\":{\"x\":259.9619429239048,\"y\":299.99799699599487,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"190\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"191\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"192\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"193\":{\"x\":10,\"y\":10,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"194\":{\"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\"},\"195\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"196\":{\"morph\":{\"__isSmartRef__\":true,\"id\":186},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"197\":{\"x\":259.9619429239048,\"y\":299.99799699599487,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"198\":{\"layouter\":{\"__isSmartRef__\":true,\"id\":199},\"resizeWidth\":true,\"resizeHeight\":true,\"moveVertical\":false,\"moveHorizontal\":false,\"adjustForNewBounds\":true},\"199\":{\"defaultBorderSize\":10,\"defaultSpacing\":15,\"borderSize\":10,\"spacing\":15,\"container\":{\"__isSmartRef__\":true,\"id\":186},\"__SourceModuleName__\":\"Global.lively.morphic.Layout\",\"__LivelyClassName__\":\"lively.morphic.Layout.VerticalLayout\"},\"200\":{\"setData\":{\"__isSmartRef__\":true,\"id\":201},\"renderTree\":{\"__isSmartRef__\":true,\"id\":203},\"createTreeNode\":{\"__isSmartRef__\":true,\"id\":205},\"superWrapperForClosure\":{\"__isSmartRef__\":true,\"id\":207},\"expandNode\":{\"__isSmartRef__\":true,\"id\":209},\"getLayoutableSubmorphs\":{\"__isSmartRef__\":true,\"id\":211},\"createTreeWrapper\":{\"__isSmartRef__\":true,\"id\":213},\"onrestore\":{\"__isSmartRef__\":true,\"id\":215},\"reset\":{\"__isSmartRef__\":true,\"id\":217},\"createTreeNodeMorph\":{\"__isSmartRef__\":true,\"id\":219},\"createExpanderMorph\":{\"__isSmartRef__\":true,\"id\":221},\"createTextMorph\":{\"__isSmartRef__\":true,\"id\":223},\"createExpanderButton\":{\"__isSmartRef__\":true,\"id\":225},\"createPropertyText\":{\"__isSmartRef__\":true,\"id\":227},\"defaults\":{\"__isSmartRef__\":true,\"id\":229},\"createScrollClip\":{\"__isSmartRef__\":true,\"id\":231},\"resetDefaults\":{\"__isSmartRef__\":true,\"id\":233},\"testMutabilityFor\":{\"__isSmartRef__\":true,\"id\":235},\"typeOf\":{\"__isSmartRef__\":true,\"id\":237},\"testMutabilityOf\":{\"__isSmartRef__\":true,\"id\":239},\"classNameOf\":{\"__isSmartRef__\":true,\"id\":241},\"displayNameOf\":{\"__isSmartRef__\":true,\"id\":243},\"getDisplayNameOf\":{\"__isSmartRef__\":true,\"id\":245},\"getClassNameOf\":{\"__isSmartRef__\":true,\"id\":247},\"getTypeOf\":{\"__isSmartRef__\":true,\"id\":249},\"updateExpanderColor\":{\"__isSmartRef__\":true,\"id\":251},\"addTreeNodeScriptsTo\":{\"__isSmartRef__\":true,\"id\":253},\"addScriptsToTreeNode\":{\"__isSmartRef__\":true,\"id\":255},\"addScriptsToExpander\":{\"__isSmartRef__\":true,\"id\":257},\"getDisplayStringOf\":{\"__isSmartRef__\":true,\"id\":259},\"containsValues\":{\"__isSmartRef__\":true,\"id\":261},\"getTypeStringOf\":{\"__isSmartRef__\":true,\"id\":263},\"getDisplayStringFor\":{\"__isSmartRef__\":true,\"id\":265},\"getTypeStringFor\":{\"__isSmartRef__\":true,\"id\":267},\"cleanPreviousTarget\":{\"__isSmartRef__\":true,\"id\":269},\"update\":{\"__isSmartRef__\":true,\"id\":271},\"addScriptsToText\":{\"__isSmartRef__\":true,\"id\":273}},\"201\":{\"time\":{\"__isSmartRef__\":true,\"id\":202},\"user\":\"lauritz\"},\"202\":{\"isSerializedDate\":true,\"string\":\"Fri Sep 16 2011 20:29:46 GMT+0200 (CEST)\"},\"203\":{\"time\":{\"__isSmartRef__\":true,\"id\":204},\"user\":\"lauritz\"},\"204\":{\"isSerializedDate\":true,\"string\":\"Sat Oct 15 2011 00:42:55 GMT+0200 (CEST)\"},\"205\":{\"time\":{\"__isSmartRef__\":true,\"id\":206},\"user\":\"lauritz\"},\"206\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 26 2011 23:43:34 GMT+0200 (CEST)\"},\"207\":{\"time\":{\"__isSmartRef__\":true,\"id\":208},\"user\":\"markoroeder\"},\"208\":{\"isSerializedDate\":true,\"string\":\"Wed Aug 17 2011 18:51:09 GMT+0200 (CEST)\"},\"209\":{\"time\":{\"__isSmartRef__\":true,\"id\":210},\"user\":\"markoroeder\"},\"210\":{\"isSerializedDate\":true,\"string\":\"Wed Aug 17 2011 19:01:10 GMT+0200 (CEST)\"},\"211\":{\"time\":{\"__isSmartRef__\":true,\"id\":212},\"user\":\"markoroeder\"},\"212\":{\"isSerializedDate\":true,\"string\":\"Thu Aug 18 2011 02:29:30 GMT+0200 (CEST)\"},\"213\":{\"time\":{\"__isSmartRef__\":true,\"id\":214},\"user\":\"lauritz\"},\"214\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 17:05:52 GMT+0200 (CEST)\"},\"215\":{\"time\":{\"__isSmartRef__\":true,\"id\":216},\"user\":\"markoroeder\"},\"216\":{\"isSerializedDate\":true,\"string\":\"Tue Aug 23 2011 22:08:18 GMT+0200 (CEST)\"},\"217\":{\"time\":{\"__isSmartRef__\":true,\"id\":218},\"user\":\"lauritz\"},\"218\":{\"isSerializedDate\":true,\"string\":\"Sat Oct 15 2011 00:41:57 GMT+0200 (CEST)\"},\"219\":{\"time\":{\"__isSmartRef__\":true,\"id\":220},\"user\":\"lauritz\"},\"220\":{\"isSerializedDate\":true,\"string\":\"Tue Oct 25 2011 19:24:35 GMT+0200 (CEST)\"},\"221\":{\"time\":{\"__isSmartRef__\":true,\"id\":222},\"user\":\"lauritz\"},\"222\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 19 2011 19:12:12 GMT+0200 (CEST)\"},\"223\":{\"time\":{\"__isSmartRef__\":true,\"id\":224},\"user\":\"lauritz\"},\"224\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 19 2011 19:29:34 GMT+0200 (CEST)\"},\"225\":{\"time\":{\"__isSmartRef__\":true,\"id\":226},\"user\":\"lauritz\"},\"226\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 26 2011 23:32:58 GMT+0200 (CEST)\"},\"227\":{\"time\":{\"__isSmartRef__\":true,\"id\":228},\"user\":\"lauritz\"},\"228\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 26 2011 23:18:07 GMT+0200 (CEST)\"},\"229\":{\"time\":{\"__isSmartRef__\":true,\"id\":230},\"user\":\"lauritz\"},\"230\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 16:45:27 GMT+0200 (CEST)\"},\"231\":{\"time\":{\"__isSmartRef__\":true,\"id\":232},\"user\":\"lauritz\"},\"232\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 19 2011 19:54:00 GMT+0200 (CEST)\"},\"233\":{\"time\":{\"__isSmartRef__\":true,\"id\":234},\"user\":\"lauritz\"},\"234\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 19:38:04 GMT+0200 (CEST)\"},\"235\":{\"time\":{\"__isSmartRef__\":true,\"id\":236},\"user\":\"lauritz\"},\"236\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 17:50:43 GMT+0200 (CEST)\"},\"237\":{\"time\":{\"__isSmartRef__\":true,\"id\":238},\"user\":\"lauritz\"},\"238\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 17:52:20 GMT+0200 (CEST)\"},\"239\":{\"time\":{\"__isSmartRef__\":true,\"id\":240},\"user\":\"lauritz\"},\"240\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 23:41:43 GMT+0200 (CEST)\"},\"241\":{\"time\":{\"__isSmartRef__\":true,\"id\":242},\"user\":\"lauritz\"},\"242\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 18:43:22 GMT+0200 (CEST)\"},\"243\":{\"time\":{\"__isSmartRef__\":true,\"id\":244},\"user\":\"lauritz\"},\"244\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 19:18:15 GMT+0200 (CEST)\"},\"245\":{\"time\":{\"__isSmartRef__\":true,\"id\":246},\"user\":\"lauritz\"},\"246\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 19:20:46 GMT+0200 (CEST)\"},\"247\":{\"time\":{\"__isSmartRef__\":true,\"id\":248},\"user\":\"lauritz\"},\"248\":{\"isSerializedDate\":true,\"string\":\"Tue Oct 25 2011 22:35:56 GMT+0200 (CEST)\"},\"249\":{\"time\":{\"__isSmartRef__\":true,\"id\":250},\"user\":\"lauritz\"},\"250\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 19:18:37 GMT+0200 (CEST)\"},\"251\":{\"time\":{\"__isSmartRef__\":true,\"id\":252},\"user\":\"lauritz\"},\"252\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 20:09:41 GMT+0200 (CEST)\"},\"253\":{\"time\":{\"__isSmartRef__\":true,\"id\":254},\"user\":\"lauritz\"},\"254\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 20:11:38 GMT+0200 (CEST)\"},\"255\":{\"time\":{\"__isSmartRef__\":true,\"id\":256},\"user\":\"lauritz\"},\"256\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 27 2011 01:27:28 GMT+0200 (CEST)\"},\"257\":{\"time\":{\"__isSmartRef__\":true,\"id\":258},\"user\":\"lauritz\"},\"258\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 27 2011 01:21:55 GMT+0200 (CEST)\"},\"259\":{\"time\":{\"__isSmartRef__\":true,\"id\":260},\"user\":\"lauritz\"},\"260\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 23:36:23 GMT+0200 (CEST)\"},\"261\":{\"time\":{\"__isSmartRef__\":true,\"id\":262},\"user\":\"lauritz\"},\"262\":{\"isSerializedDate\":true,\"string\":\"Tue Sep 20 2011 22:32:20 GMT+0200 (CEST)\"},\"263\":{\"time\":{\"__isSmartRef__\":true,\"id\":264},\"user\":\"lauritz\"},\"264\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 19:31:18 GMT+0200 (CEST)\"},\"265\":{\"time\":{\"__isSmartRef__\":true,\"id\":266},\"user\":\"lauritz\"},\"266\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 26 2011 19:07:44 GMT+0200 (CEST)\"},\"267\":{\"time\":{\"__isSmartRef__\":true,\"id\":268},\"user\":\"lauritz\"},\"268\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 19:32:50 GMT+0200 (CEST)\"},\"269\":{\"time\":{\"__isSmartRef__\":true,\"id\":270},\"user\":\"lauritz\"},\"270\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 26 2011 19:07:44 GMT+0200 (CEST)\"},\"271\":{\"time\":{\"__isSmartRef__\":true,\"id\":272},\"user\":\"lauritz\"},\"272\":{\"isSerializedDate\":true,\"string\":\"Sat Oct 15 2011 00:42:27 GMT+0200 (CEST)\"},\"273\":{\"time\":{\"__isSmartRef__\":true,\"id\":274},\"user\":\"lauritz\"},\"274\":{\"isSerializedDate\":true,\"string\":\"Mon Sep 26 2011 23:16:48 GMT+0200 (CEST)\"},\"275\":{\"x\":164.35052570087606,\"y\":-15.96995493992489,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"276\":{\"border\":{\"__isSmartRef__\":true,\"id\":277},\"contractedExpander\":{\"__isSmartRef__\":true,\"id\":278},\"expandedExpander\":{\"__isSmartRef__\":true,\"id\":279},\"focusedText\":{\"__isSmartRef__\":true,\"id\":280},\"emphasizedText\":{\"__isSmartRef__\":true,\"id\":281}},\"277\":{\"r\":0.5686274509803921,\"g\":0.5686274509803921,\"b\":0.5686274509803921,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"278\":{\"r\":0.5686274509803921,\"g\":0.5686274509803921,\"b\":0.5686274509803921,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"279\":{\"r\":1,\"g\":1,\"b\":1,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"280\":{\"r\":0.9529411764705882,\"g\":0.9529411764705882,\"b\":0.9529411764705882,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"281\":{\"r\":0.5686274509803921,\"g\":0.5686274509803921,\"b\":0.5686274509803921,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"282\":{\"size\":10},\"283\":{\"wrapperExtent\":{\"__isSmartRef__\":true,\"id\":284},\"expanderExtent\":{\"__isSmartRef__\":true,\"id\":285},\"expanderOffset\":{\"__isSmartRef__\":true,\"id\":286},\"textOffset\":{\"__isSmartRef__\":true,\"id\":287},\"levelIndent\":10,\"maxTextWidth\":500},\"284\":{\"x\":0,\"y\":0,\"width\":100,\"height\":18,\"__LivelyClassName__\":\"Rectangle\",\"__SourceModuleName__\":\"Global\"},\"285\":{\"x\":8,\"y\":8,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"286\":{\"x\":8,\"y\":5,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"287\":{\"x\":18,\"y\":0,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"288\":{\"renderTree\":{\"__isSmartRef__\":true,\"id\":289},\"createTreeNode\":{\"__isSmartRef__\":true,\"id\":292},\"createTreeWrapper\":{\"__isSmartRef__\":true,\"id\":295},\"reset\":{\"__isSmartRef__\":true,\"id\":298},\"createTreeNodeMorph\":{\"__isSmartRef__\":true,\"id\":301},\"createExpanderButton\":{\"__isSmartRef__\":true,\"id\":304},\"createPropertyText\":{\"__isSmartRef__\":true,\"id\":307},\"createScrollClip\":{\"__isSmartRef__\":true,\"id\":310},\"resetDefaults\":{\"__isSmartRef__\":true,\"id\":313},\"testMutabilityOf\":{\"__isSmartRef__\":true,\"id\":316},\"getClassNameOf\":{\"__isSmartRef__\":true,\"id\":319},\"getTypeOf\":{\"__isSmartRef__\":true,\"id\":322},\"addScriptsToTreeNode\":{\"__isSmartRef__\":true,\"id\":325},\"addScriptsToExpander\":{\"__isSmartRef__\":true,\"id\":328},\"containsValues\":{\"__isSmartRef__\":true,\"id\":331},\"getDisplayStringFor\":{\"__isSmartRef__\":true,\"id\":334},\"getTypeStringFor\":{\"__isSmartRef__\":true,\"id\":337},\"update\":{\"__isSmartRef__\":true,\"id\":340},\"addScriptsToText\":{\"__isSmartRef__\":true,\"id\":343}},\"289\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":290},\"source\":\"function renderTree(data) {\\n\\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\":291},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"290\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"291\":{},\"292\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":293},\"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\":294},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"293\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"294\":{},\"295\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":296},\"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\":297},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"296\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"297\":{},\"298\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":299},\"source\":\"function reset() {\\n this.removeAllMorphs();\\n this.resetDefaults();\\n this.rootNode = null; \\n this.stopStepping();\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":300},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"299\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"300\":{},\"301\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":302},\"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\":303},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"302\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"303\":{},\"304\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":305},\"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\":306},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"305\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"306\":{},\"307\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":308},\"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\":309},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"308\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"309\":{},\"310\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":311},\"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\":312},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"311\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"312\":{},\"313\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":314},\"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\":315},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"314\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"315\":{},\"316\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":317},\"source\":\"function testMutabilityOf(value) {\\n var type = this.getTypeOf(value);\\n return (type === \\\"array\\\" || type === \\\"object\\\");\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":318},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"317\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"318\":{},\"319\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":320},\"source\":\"function getClassNameOf(object) {\\n var constructor = Class.getConstructor(object);\\n if (constructor && constructor.displayName) {\\n var fullClassName = constructor.displayName;\\n return fullClassName.split(\\\".\\\").pop(); \\n } else {\\n return this.getTypeOf(object);\\n }\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":321},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"320\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"321\":{},\"322\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":323},\"source\":\"function getTypeOf(value) {\\n // Caution: Only works correctly for arrays if created in same context, e.g. frame, because of instanceof\\n var type = typeof value;\\n if (type === \\\"object\\\") {\\n if (value) {\\n if (value instanceof Array) {\\n return \\\"array\\\";\\n } \\n } else {\\n return null;\\n }\\n } \\n return type;\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":324},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"323\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"324\":{},\"325\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":326},\"source\":\"function addScriptsToTreeNode(treeNode) {\\n\\n treeNode.addScript(function updateExpanderColor() {\\n var colors = this.treeView.colors;\\n var fillColor;\\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\\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 onMouseUp(evt) {\\n if ($super(evt)) return true;\\n this.expander.toggle();\\n return false;\\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 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 // 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 (this.treeView.containsValues(this.data)) {\\n this.children.forEach(function (each) {\\n each.update()\\n });\\n }\\n });\\n\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":327},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"326\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"327\":{},\"328\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":329},\"source\":\"function addScriptsToExpander(expander) {\\n\\n expander.addScript(function onMouseUp(evt) {\\n if ($super(evt)) return true;\\n this.toggle();\\n return false;\\n });\\n\\n expander.addScript(function toggle() {\\n var treeNode = this.owner;\\n var treeView = treeNode.treeView;\\n\\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\\n var wrapper = treeView.createTreeWrapper();\\n\\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\\n var that = this;\\n Properties.own(treeNode.data).sort().each(function(prop) {\\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 });\\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\":330},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"329\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"330\":{},\"331\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":332},\"source\":\"function containsValues(value) {\\n return (this.testMutabilityOf(value) && Properties.own(value).length > 0);\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":333},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"332\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"333\":{},\"334\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":335},\"source\":\"function getDisplayStringFor(treeNode) {\\n return treeNode.label + \\\": \\\" + (this.testMutabilityOf(treeNode.data) ? this.getTypeStringFor(treeNode.data) : treeNode.data)\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":336},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"335\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"336\":{},\"337\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":338},\"source\":\"function getTypeStringFor(object) {\\n var name; \\n if (object.getName) name = object.getName();\\n if (!name) {\\n name = this.getClassNameOf(object);\\n var displayTypeAndEmptiness = function (type, firstBracket, secondBracket) {\\n if (name === type) {\\n name = \\\"\\\";\\n name += firstBracket; \\n if (Properties.own(object).length > 0) name += \\\"...\\\";\\n name += secondBracket;\\n }\\n }\\n displayTypeAndEmptiness(\\\"object\\\", \\\"{\\\", \\\"}\\\");\\n displayTypeAndEmptiness(\\\"array\\\", \\\"[\\\", \\\"]\\\");\\n }\\n return name;\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":339},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"338\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"339\":{},\"340\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":341},\"source\":\"function update() {\\n this.rootNode.update();\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":342},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"341\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"342\":{},\"343\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":344},\"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\":345},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"344\":{\"this\":{\"__isSmartRef__\":true,\"id\":186}},\"345\":{},\"346\":{\"submorphs\":[],\"scripts\":[],\"shape\":{\"__isSmartRef__\":true,\"id\":347},\"id\":6676,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":354},\"textChunks\":[{\"__isSmartRef__\":true,\"id\":355}],\"eventHandler\":{\"__isSmartRef__\":true,\"id\":357},\"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\":358},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":359},\"_MaxTextWidth\":249.96194292390481,\"_MinTextWidth\":249.96194292390481,\"_MaxTextHeight\":null,\"_MinTextHeight\":null,\"evalEnabled\":false,\"layout\":{\"__isSmartRef__\":true,\"id\":360},\"doitContext\":null,\"previousSelection\":[14,14],\"priorSelectionRange\":[17,14],\"charsReplaced\":\"1,2\",\"lastFindLoc\":20,\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"prevScroll\":[0,0],\"isBeingDragged\":false,\"showsHalos\":false,\"name\":\"Workspace\",\"owner\":{\"__isSmartRef__\":true,\"id\":185},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"distanceToDragEvent\":{\"__isSmartRef__\":true,\"id\":361},\"isCopyMorphRef\":true,\"morphRefId\":1,\"scriptAnnotations\":{\"__isSmartRef__\":true,\"id\":362},\"lastDragTime\":1317079672221,\"_Rotation\":0,\"_Scale\":1,\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":365},\"__LivelyClassName__\":\"lively.morphic.Text\"},\"347\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":348},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":349},\"_Extent\":{\"__isSmartRef__\":true,\"id\":350},\"_ClipMode\":\"auto\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":351},\"_BorderWidth\":1,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":352},\"_Fill\":{\"__isSmartRef__\":true,\"id\":353},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"_BorderRadius\":0,\"_Opacity\":1,\"_BorderStyle\":\"solid\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"348\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"349\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"350\":{\"x\":259.9619429239048,\"y\":81.00200300400502,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"351\":{\"x\":4,\"y\":2,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"352\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"353\":{\"r\":0.95,\"g\":0.95,\"b\":0.95,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"354\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"355\":{\"style\":{\"__isSmartRef__\":true,\"id\":356},\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":346},\"storedString\":\"\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\"},\"356\":{\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\"},\"357\":{\"morph\":{\"__isSmartRef__\":true,\"id\":346},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"358\":{\"x\":10,\"y\":324.99799699599487,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"359\":{\"x\":259.9619429239048,\"y\":81.00200300400502,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"360\":{\"resizeWidth\":true,\"resizeHeight\":false,\"moveVertical\":true,\"adjustForNewBounds\":true},\"361\":{\"x\":164.35052570087606,\"y\":-17.252879506132672,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"362\":{\"reset\":{\"__isSmartRef__\":true,\"id\":363}},\"363\":{\"time\":{\"__isSmartRef__\":true,\"id\":364},\"user\":\"lauritz\"},\"364\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 01:26:58 GMT+0200 (CEST)\"},\"365\":{\"reset\":{\"__isSmartRef__\":true,\"id\":366}},\"366\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":367},\"source\":\"function reset() {\\n this.doitContext = null;\\n this.setTextString(\\\"\\\");\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":368},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"367\":{\"this\":{\"__isSmartRef__\":true,\"id\":346}},\"368\":{},\"369\":{\"position\":{\"__isSmartRef__\":true,\"id\":370},\"_Extent\":{\"__isSmartRef__\":true,\"id\":371},\"_BorderWidth\":2.6340000000000003,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":372},\"_Fill\":{\"__isSmartRef__\":true,\"id\":373},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":374},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":375},\"_BorderRadius\":0,\"_Opacity\":1,\"_BorderStyle\":\"solid\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"370\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"371\":{\"x\":279.9619429239048,\"y\":415.9999999999999,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"372\":{\"r\":0.372,\"g\":0.369,\"b\":0.372,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"373\":{\"r\":1,\"g\":1,\"b\":1,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"374\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"375\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"376\":{\"x\":1.0000000000001137,\"y\":22.00000000000128,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"377\":{\"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\":378}],\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"378\":{\"date\":{\"__isSmartRef__\":true,\"id\":379},\"author\":\"lauritz\",\"message\":\"Disabled grabbing and dragging on other submorphs as well...\"},\"379\":{\"isSerializedDate\":true,\"string\":\"Tue Oct 25 2011 20:21:08 GMT+0200 (CEST)\"},\"380\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"381\":{\"morph\":{\"__isSmartRef__\":true,\"id\":185},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"382\":{\"x\":280.9619429239048,\"y\":415.9999999999999,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"383\":{\"x\":176.3545317088861,\"y\":19.080120160200238,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"384\":{\"resizeWidth\":true,\"resizeHeight\":true,\"adjustForNewBounds\":true,\"layouter\":{\"__isSmartRef__\":true,\"id\":385}},\"385\":{\"defaultBorderSize\":10,\"defaultSpacing\":15,\"borderSize\":10,\"spacing\":15,\"container\":{\"__isSmartRef__\":true,\"id\":185},\"__SourceModuleName__\":\"Global.lively.morphic.Layout\",\"__LivelyClassName__\":\"lively.morphic.Layout.VerticalLayout\"},\"386\":{\"reset\":{\"__isSmartRef__\":true,\"id\":387},\"moveFocusTo\":{\"__isSmartRef__\":true,\"id\":389},\"explore\":{\"__isSmartRef__\":true,\"id\":391}},\"387\":{\"time\":{\"__isSmartRef__\":true,\"id\":388},\"user\":\"lauritz\"},\"388\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 01:48:08 GMT+0200 (CEST)\"},\"389\":{\"time\":{\"__isSmartRef__\":true,\"id\":390},\"user\":\"lauritz\"},\"390\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 19:41:09 GMT+0200 (CEST)\"},\"391\":{\"time\":{\"__isSmartRef__\":true,\"id\":392},\"user\":\"lauritz\"},\"392\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 19:48:20 GMT+0200 (CEST)\"},\"393\":{\"reset\":{\"__isSmartRef__\":true,\"id\":394},\"moveFocusTo\":{\"__isSmartRef__\":true,\"id\":397},\"explore\":{\"__isSmartRef__\":true,\"id\":400}},\"394\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":395},\"source\":\"function reset() {\\n this.workspace.reset();\\n this.treeView.reset();\\n this.focusedNode = null;\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":396},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"395\":{\"this\":{\"__isSmartRef__\":true,\"id\":185}},\"396\":{},\"397\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":398},\"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 \\n this.focusedNode.text.setFill(this.focusedNode.treeView.colors.focusedText);\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":399},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"398\":{\"this\":{\"__isSmartRef__\":true,\"id\":185}},\"399\":{},\"400\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":401},\"source\":\"function explore(object) {\\n this.reset();\\n this.treeView.renderTree(object);\\n this.moveFocusTo(this.treeView.rootNode);\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":402},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"401\":{\"this\":{\"__isSmartRef__\":true,\"id\":185}},\"402\":{},\"403\":{\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":404},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":405},\"_BorderWidth\":0,\"_Fill\":null,\"_StrokeOpacity\":0,\"_BorderRadius\":0,\"_Extent\":{\"__isSmartRef__\":true,\"id\":406},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"_Opacity\":1,\"_BorderStyle\":\"solid\",\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"404\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"405\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"406\":{\"x\":281.49672894514134,\"y\":437.92138184230294,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"407\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"408\":{\"morph\":{\"__isSmartRef__\":true,\"id\":0},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"409\":{\"adjustForNewBounds\":true},\"410\":{\"x\":0,\"y\":0,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"411\":{\"x\":281.49672894514134,\"y\":437.92138184230294,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"412\":{\"x\":0,\"y\":21,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"413\":{\"partsSpaceName\":\"PartsBin/Tools\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"comment\":\"A Smalltalk-like Explorer. Displays object properties in a tree and provides a small workspace. The workspace's context is set to the last clicked tree node.\",\"migrationLevel\":4,\"partName\":\"Explorer\",\"changes\":[{\"__isSmartRef__\":true,\"id\":414},{\"__isSmartRef__\":true,\"id\":416},{\"__isSmartRef__\":true,\"id\":418},{\"__isSmartRef__\":true,\"id\":420}],\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"414\":{\"date\":{\"__isSmartRef__\":true,\"id\":415},\"author\":\"lauritz\",\"message\":\"Disabled grabbing and dragging on other morphs as well.\"},\"415\":{\"isSerializedDate\":true,\"string\":\"Tue Oct 25 2011 20:23:10 GMT+0200 (CEST)\"},\"416\":{\"date\":{\"__isSmartRef__\":true,\"id\":417},\"author\":\"lauritz\",\"message\":\"Disabled dragging and grabbing on tree nodes. Those should only be clickable.\"},\"417\":{\"isSerializedDate\":true,\"string\":\"Tue Oct 25 2011 19:25:14 GMT+0200 (CEST)\"},\"418\":{\"date\":{\"__isSmartRef__\":true,\"id\":419},\"author\":\"lauritz\",\"message\":\"Fixed a bug by adding a condition to getClassNameOf. In case an object has no constructor.\"},\"419\":{\"isSerializedDate\":true,\"string\":\"Tue Oct 25 2011 22:37:11 GMT+0200 (CEST)\"},\"420\":{\"date\":{\"__isSmartRef__\":true,\"id\":421},\"author\":\"jenslincke\",\"message\":\"reset scales\",\"id\":\"5E64592A-C360-44DD-BDAE-AD956FBA7675\"},\"421\":{\"isSerializedDate\":true,\"string\":\"Fri Oct 28 2011 16:11:21 GMT+0200 (CEST)\"},\"422\":{\"x\":493,\"y\":489,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"423\":{\"explore\":{\"__isSmartRef__\":true,\"id\":424},\"reset\":{\"__isSmartRef__\":true,\"id\":426}},\"424\":{\"time\":{\"__isSmartRef__\":true,\"id\":425},\"user\":\"lauritz\"},\"425\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 19:25:04 GMT+0200 (CEST)\"},\"426\":{\"time\":{\"__isSmartRef__\":true,\"id\":427},\"user\":\"lauritz\"},\"427\":{\"isSerializedDate\":true,\"string\":\"Wed Sep 21 2011 19:25:04 GMT+0200 (CEST)\"},\"428\":{\"explore\":{\"__isSmartRef__\":true,\"id\":429},\"reset\":{\"__isSmartRef__\":true,\"id\":432}},\"429\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":430},\"source\":\"function explore(object) {\\n // please see this window's pane, \\\"ExplorerPane\\\"\\n this.explorer.explore(object);\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":431},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"430\":{\"this\":{\"__isSmartRef__\":true,\"id\":0}},\"431\":{},\"432\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":433},\"source\":\"function reset() {\\n // please see this window's pane, \\\"ExplorerPane\\\"\\n this.explorer.reset();\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":434},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"433\":{\"this\":{\"__isSmartRef__\":true,\"id\":0}},\"434\":{},\"isSimplifiedRegistry\":true}}","loadedMetaInfo":{"__isSmartRef__":true,"id":13499},"__LivelyClassName__":"lively.PartsBin.PartItem","__SourceModuleName__":"Global.lively.PartsBin"},"1946":{"submorphs":[{"__isSmartRef__":true,"id":1947},{"__isSmartRef__":true,"id":2094},{"__isSmartRef__":true,"id":2130}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13489},"id":27,"renderContextTable":{"__isSmartRef__":true,"id":13493},"eventHandler":{"__isSmartRef__":true,"id":13494},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":13495},"LK2":true,"_Position":{"__isSmartRef__":true,"id":13496},"priorExtent":{"__isSmartRef__":true,"id":13497},"targetMorph":{"__isSmartRef__":true,"id":2130},"titleBar":{"__isSmartRef__":true,"id":1947},"contentOffset":{"__isSmartRef__":true,"id":13498},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":13499},"name":"Explorer1","prevDragPos":{"__isSmartRef__":true,"id":13508},"isBeingDragged":false,"highlighted":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","explorer":{"__isSmartRef__":true,"id":2130},"scriptAnnotations":{"__isSmartRef__":true,"id":13509},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"owner":null,"state":"shutdown","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13514},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"1947":{"submorphs":[{"__isSmartRef__":true,"id":1948},{"__isSmartRef__":true,"id":1962},{"__isSmartRef__":true,"id":2009},{"__isSmartRef__":true,"id":2043}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2078},"id":28,"renderContextTable":{"__isSmartRef__":true,"id":2089},"eventHandler":{"__isSmartRef__":true,"id":2090},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2091},"_Position":{"__isSmartRef__":true,"id":2092},"windowMorph":{"__isSmartRef__":true,"id":1946},"label":{"__isSmartRef__":true,"id":1948},"closeButton":{"__isSmartRef__":true,"id":1962},"menuButton":{"__isSmartRef__":true,"id":2009},"collapseButton":{"__isSmartRef__":true,"id":2043},"priorExtent":{"__isSmartRef__":true,"id":2093},"owner":{"__isSmartRef__":true,"id":1946},"__SourceModuleName__":"Global.lively.morphic.Widgets","isCopyMorphRef":true,"morphRefId":1,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.TitleBar"},"1948":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1949},"id":29,"renderContextTable":{"__isSmartRef__":true,"id":1955},"eventHandler":{"__isSmartRef__":true,"id":1956},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"textChunks":[{"__isSmartRef__":true,"id":1957}],"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":1959},"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":1947},"priorExtent":{"__isSmartRef__":true,"id":1960},"_MaxTextWidth":222.49672894514134,"_MinTextWidth":222.49672894514134,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":1961},"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1949":{"_Position":{"__isSmartRef__":true,"id":1950},"renderContextTable":{"__isSmartRef__":true,"id":1951},"_Extent":{"__isSmartRef__":true,"id":1952},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1953},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1954},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1950":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1951":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1952":{"x":222.49672894514134,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1953":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1954":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1955":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1956":{"morph":{"__isSmartRef__":true,"id":1948},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1957":{"style":{"__isSmartRef__":true,"id":1958},"chunkOwner":{"__isSmartRef__":true,"id":1948},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Explorer","__LivelyClassName__":"lively.morphic.TextChunk"},"1958":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1959":{"resizeWidth":true},"1960":{"x":222.49672894514134,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1961":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1962":{"submorphs":[{"__isSmartRef__":true,"id":1963}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1975},"id":30,"renderContextTable":{"__isSmartRef__":true,"id":1991},"eventHandler":{"__isSmartRef__":true,"id":1992},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1993},"priorExtent":{"__isSmartRef__":true,"id":1994},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1981},"lighterFill":{"__isSmartRef__":true,"id":1995},"label":{"__isSmartRef__":true,"id":1963},"owner":{"__isSmartRef__":true,"id":1947},"layout":{"__isSmartRef__":true,"id":2004},"attributeConnections":[{"__isSmartRef__":true,"id":2005},{"__isSmartRef__":true,"id":2007}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"1963":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1964},"id":31,"renderContextTable":{"__isSmartRef__":true,"id":1969},"eventHandler":{"__isSmartRef__":true,"id":1970},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":1971},"priorExtent":{"__isSmartRef__":true,"id":1972},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":1973}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1962},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1964":{"_Position":{"__isSmartRef__":true,"id":1965},"renderContextTable":{"__isSmartRef__":true,"id":1966},"_Extent":{"__isSmartRef__":true,"id":1967},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1968},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1954},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1965":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1966":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1967":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1968":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1969":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1970":{"morph":{"__isSmartRef__":true,"id":1963},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1971":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1972":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1973":{"style":{"__isSmartRef__":true,"id":1974},"chunkOwner":{"__isSmartRef__":true,"id":1963},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"1974":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1975":{"_Position":{"__isSmartRef__":true,"id":1976},"renderContextTable":{"__isSmartRef__":true,"id":1977},"_Extent":{"__isSmartRef__":true,"id":1978},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1979},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1980},"_Fill":{"__isSmartRef__":true,"id":1981},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1976":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1977":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1978":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1979":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1980":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1981":{"stops":[{"__isSmartRef__":true,"id":1982},{"__isSmartRef__":true,"id":1984},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1988}],"vector":{"__isSmartRef__":true,"id":1990},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1982":{"offset":0,"color":{"__isSmartRef__":true,"id":1983}},"1983":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1984":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1985}},"1985":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1986":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1987}},"1987":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1988":{"offset":1,"color":{"__isSmartRef__":true,"id":1989}},"1989":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1990":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1991":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1992":{"morph":{"__isSmartRef__":true,"id":1962},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1993":{"x":261.49672894514134,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1994":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1995":{"stops":[{"__isSmartRef__":true,"id":1996},{"__isSmartRef__":true,"id":1998},{"__isSmartRef__":true,"id":2000},{"__isSmartRef__":true,"id":2002}],"vector":{"__isSmartRef__":true,"id":1990},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1996":{"offset":0,"color":{"__isSmartRef__":true,"id":1997}},"1997":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1998":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1999}},"1999":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2000":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2001}},"2001":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2002":{"offset":1,"color":{"__isSmartRef__":true,"id":2003}},"2003":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2004":{"moveHorizontal":true},"2005":{"sourceObj":{"__isSmartRef__":true,"id":1962},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1946},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2006},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2006":{"source":{"__isSmartRef__":true,"id":1962},"target":{"__isSmartRef__":true,"id":1946}},"2007":{"sourceObj":{"__isSmartRef__":true,"id":1962},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1946},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2008},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2008":{"source":{"__isSmartRef__":true,"id":1962},"target":{"__isSmartRef__":true,"id":1946}},"2009":{"submorphs":[{"__isSmartRef__":true,"id":2010}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2021},"id":32,"renderContextTable":{"__isSmartRef__":true,"id":2026},"eventHandler":{"__isSmartRef__":true,"id":2027},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2028},"priorExtent":{"__isSmartRef__":true,"id":2029},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1981},"lighterFill":{"__isSmartRef__":true,"id":2030},"label":{"__isSmartRef__":true,"id":2010},"owner":{"__isSmartRef__":true,"id":1947},"attributeConnections":[{"__isSmartRef__":true,"id":2039},{"__isSmartRef__":true,"id":2041}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"2010":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2011},"id":33,"renderContextTable":{"__isSmartRef__":true,"id":2015},"eventHandler":{"__isSmartRef__":true,"id":2016},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":2017},"priorExtent":{"__isSmartRef__":true,"id":2018},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":2019}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":2009},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2011":{"_Position":{"__isSmartRef__":true,"id":2012},"renderContextTable":{"__isSmartRef__":true,"id":2013},"_Extent":{"__isSmartRef__":true,"id":2014},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1968},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1954},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2012":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2013":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2014":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2015":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2016":{"morph":{"__isSmartRef__":true,"id":2010},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2017":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2018":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2019":{"style":{"__isSmartRef__":true,"id":2020},"chunkOwner":{"__isSmartRef__":true,"id":2010},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"2020":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2021":{"_Position":{"__isSmartRef__":true,"id":2022},"renderContextTable":{"__isSmartRef__":true,"id":2023},"_Extent":{"__isSmartRef__":true,"id":2024},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2025},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1980},"_Fill":{"__isSmartRef__":true,"id":1981},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2022":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2023":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2024":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2025":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2026":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2027":{"morph":{"__isSmartRef__":true,"id":2009},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2028":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2029":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2030":{"stops":[{"__isSmartRef__":true,"id":2031},{"__isSmartRef__":true,"id":2033},{"__isSmartRef__":true,"id":2035},{"__isSmartRef__":true,"id":2037}],"vector":{"__isSmartRef__":true,"id":1990},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2031":{"offset":0,"color":{"__isSmartRef__":true,"id":2032}},"2032":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2033":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2034}},"2034":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2035":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2036}},"2036":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2037":{"offset":1,"color":{"__isSmartRef__":true,"id":2038}},"2038":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2039":{"sourceObj":{"__isSmartRef__":true,"id":2009},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1946},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2040},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2040":{"source":{"__isSmartRef__":true,"id":2009},"target":{"__isSmartRef__":true,"id":1946}},"2041":{"sourceObj":{"__isSmartRef__":true,"id":2009},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1946},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2042},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2042":{"source":{"__isSmartRef__":true,"id":2009},"target":{"__isSmartRef__":true,"id":1946}},"2043":{"submorphs":[{"__isSmartRef__":true,"id":2044}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2055},"id":34,"renderContextTable":{"__isSmartRef__":true,"id":2060},"eventHandler":{"__isSmartRef__":true,"id":2061},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2062},"priorExtent":{"__isSmartRef__":true,"id":2063},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1981},"lighterFill":{"__isSmartRef__":true,"id":2064},"label":{"__isSmartRef__":true,"id":2044},"owner":{"__isSmartRef__":true,"id":1947},"layout":{"__isSmartRef__":true,"id":2073},"attributeConnections":[{"__isSmartRef__":true,"id":2074},{"__isSmartRef__":true,"id":2076}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"2044":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2045},"id":35,"renderContextTable":{"__isSmartRef__":true,"id":2049},"eventHandler":{"__isSmartRef__":true,"id":2050},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":2051},"priorExtent":{"__isSmartRef__":true,"id":2052},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":2053}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":2043},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2045":{"_Position":{"__isSmartRef__":true,"id":2046},"renderContextTable":{"__isSmartRef__":true,"id":2047},"_Extent":{"__isSmartRef__":true,"id":2048},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1968},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1954},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2046":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2047":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2048":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2049":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2050":{"morph":{"__isSmartRef__":true,"id":2044},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2051":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2052":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2053":{"style":{"__isSmartRef__":true,"id":2054},"chunkOwner":{"__isSmartRef__":true,"id":2044},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"2054":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2055":{"_Position":{"__isSmartRef__":true,"id":2056},"renderContextTable":{"__isSmartRef__":true,"id":2057},"_Extent":{"__isSmartRef__":true,"id":2058},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2059},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1980},"_Fill":{"__isSmartRef__":true,"id":1981},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2056":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2058":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2059":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2061":{"morph":{"__isSmartRef__":true,"id":2043},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2062":{"x":242.49672894514134,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2063":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2064":{"stops":[{"__isSmartRef__":true,"id":2065},{"__isSmartRef__":true,"id":2067},{"__isSmartRef__":true,"id":2069},{"__isSmartRef__":true,"id":2071}],"vector":{"__isSmartRef__":true,"id":1990},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2065":{"offset":0,"color":{"__isSmartRef__":true,"id":2066}},"2066":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2067":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2068}},"2068":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2069":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2070}},"2070":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2071":{"offset":1,"color":{"__isSmartRef__":true,"id":2072}},"2072":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2073":{"moveHorizontal":true},"2074":{"sourceObj":{"__isSmartRef__":true,"id":2043},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1946},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2075},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2075":{"source":{"__isSmartRef__":true,"id":2043},"target":{"__isSmartRef__":true,"id":1946}},"2076":{"sourceObj":{"__isSmartRef__":true,"id":2043},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1946},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2077},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2077":{"source":{"__isSmartRef__":true,"id":2043},"target":{"__isSmartRef__":true,"id":1946}},"2078":{"_Position":{"__isSmartRef__":true,"id":2079},"renderContextTable":{"__isSmartRef__":true,"id":2080},"_Extent":{"__isSmartRef__":true,"id":2081},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2082},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2083},"_Fill":{"__isSmartRef__":true,"id":2084},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2079":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2080":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2081":{"x":281.49672894514134,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2082":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2083":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2084":{"stops":[{"__isSmartRef__":true,"id":2085},{"__isSmartRef__":true,"id":2087}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2085":{"offset":0,"color":{"__isSmartRef__":true,"id":2086}},"2086":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2087":{"offset":1,"color":{"__isSmartRef__":true,"id":2088}},"2088":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2089":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2090":{"morph":{"__isSmartRef__":true,"id":1947},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2091":{"resizeWidth":true,"adjustForNewBounds":true},"2092":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2093":{"x":281.49672894514134,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2094":{"submorphs":[],"scripts":[],"id":36,"shape":{"__isSmartRef__":true,"id":2095},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2102},"showsHalos":false,"name":"ResizeCorner3","partsBinMetaInfo":{"__isSmartRef__":true,"id":2103},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":2104},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":2105},"eventHandler":{"__isSmartRef__":true,"id":2106},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":1946},"priorExtent":{"__isSmartRef__":true,"id":2107},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2108},"__LivelyClassName__":"lively.morphic.Box"},"2095":{"position":{"__isSmartRef__":true,"id":2096},"_Extent":{"__isSmartRef__":true,"id":2097},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2098},"_Fill":{"__isSmartRef__":true,"id":2099},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2100},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2101},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2096":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2097":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2098":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2099":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2100":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2101":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2102":{"x":268.54865099712833,"y":422.9812919022879,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2103":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2104":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2105":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2106":{"morph":{"__isSmartRef__":true,"id":2094},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2107":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2108":{"onDrag":{"__isSmartRef__":true,"id":2109},"onDragEnd":{"__isSmartRef__":true,"id":2116},"onDragStart":{"__isSmartRef__":true,"id":2123}},"2109":{"varMapping":{"__isSmartRef__":true,"id":2110},"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":2115},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2110":{"this":{"__isSmartRef__":true,"id":2094},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2111}},"2111":{"$super":{"__isSmartRef__":true,"id":2112}},"2112":{"varMapping":{"__isSmartRef__":true,"id":2113},"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":2114},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2113":{"obj":{"__isSmartRef__":true,"id":2094},"name":"onDrag"},"2114":{},"2115":{},"2116":{"varMapping":{"__isSmartRef__":true,"id":2117},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":2122},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2117":{"this":{"__isSmartRef__":true,"id":2094},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2118}},"2118":{"$super":{"__isSmartRef__":true,"id":2119}},"2119":{"varMapping":{"__isSmartRef__":true,"id":2120},"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":2121},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2120":{"obj":{"__isSmartRef__":true,"id":2094},"name":"onDragEnd"},"2121":{},"2122":{},"2123":{"varMapping":{"__isSmartRef__":true,"id":2124},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":2129},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2124":{"this":{"__isSmartRef__":true,"id":2094},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2125}},"2125":{"$super":{"__isSmartRef__":true,"id":2126}},"2126":{"varMapping":{"__isSmartRef__":true,"id":2127},"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":2128},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2127":{"obj":{"__isSmartRef__":true,"id":2094},"name":"onDragStart"},"2128":{},"2129":{},"2130":{"submorphs":[{"__isSmartRef__":true,"id":2131},{"__isSmartRef__":true,"id":13432}],"scripts":[],"id":37,"shape":{"__isSmartRef__":true,"id":13455},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":13462},"showsHalos":false,"name":"ExplorerPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":13463},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":13466},"eventHandler":{"__isSmartRef__":true,"id":13467},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":1946},"priorExtent":{"__isSmartRef__":true,"id":13468},"distanceToDragEvent":{"__isSmartRef__":true,"id":13469},"layout":{"__isSmartRef__":true,"id":13470},"workspace":{"__isSmartRef__":true,"id":13432},"scriptAnnotations":{"__isSmartRef__":true,"id":13472},"treeView":{"__isSmartRef__":true,"id":2131},"focusedNode":{"__isSmartRef__":true,"id":2134},"isInLayoutCycle":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13479},"__LivelyClassName__":"lively.morphic.Box"},"2131":{"submorphs":[{"__isSmartRef__":true,"id":2132}],"scripts":[{"__isSmartRef__":true,"id":13276}],"id":38,"shape":{"__isSmartRef__":true,"id":13277},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":13283},"showsHalos":false,"name":"TreeView","partsBinMetaInfo":{"__isSmartRef__":true,"id":13284},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":13285},"eventHandler":{"__isSmartRef__":true,"id":13286},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":13287},"layout":{"__isSmartRef__":true,"id":13288},"isInLayoutCycle":false,"scriptAnnotations":{"__isSmartRef__":true,"id":13290},"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":2130},"distanceToDragEvent":{"__isSmartRef__":true,"id":13365},"colors":{"__isSmartRef__":true,"id":13366},"fonts":{"__isSmartRef__":true,"id":13368},"sizes":{"__isSmartRef__":true,"id":13369},"rootNode":{"__isSmartRef__":true,"id":2134},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13374},"__LivelyClassName__":"lively.morphic.Box"},"2132":{"submorphs":[{"__isSmartRef__":true,"id":2133}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13258},"id":44,"renderContextTable":{"__isSmartRef__":true,"id":13263},"eventHandler":{"__isSmartRef__":true,"id":13264},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13265},"_ClipMode":"scroll","layout":{"__isSmartRef__":true,"id":13266},"grabbingEnabled":false,"draggingEnabled":false,"name":"TreeViewScrollPane","owner":{"__isSmartRef__":true,"id":2131},"priorExtent":{"__isSmartRef__":true,"id":13267},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13268},"__LivelyClassName__":"lively.morphic.Clip","__SourceModuleName__":"Global.lively.morphic.Core"},"2133":{"submorphs":[{"__isSmartRef__":true,"id":2134},{"__isSmartRef__":true,"id":2250}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13240},"id":43,"renderContextTable":{"__isSmartRef__":true,"id":13245},"eventHandler":{"__isSmartRef__":true,"id":13246},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13247},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":13249},"owner":{"__isSmartRef__":true,"id":2132},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13250},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2134":{"submorphs":[{"__isSmartRef__":true,"id":2135},{"__isSmartRef__":true,"id":2160}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2179},"id":40,"renderContextTable":{"__isSmartRef__":true,"id":2184},"eventHandler":{"__isSmartRef__":true,"id":2185},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2186},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":2187},"propertyList":["shiftDragForDup","proxyURL","createNewWorld","skipMostExamples","skipAllExamples","showCurveExample","showGridDemo","showThumbnail","suppressBalloonHelp","usePieMenus","showNetworkExamples","ignoreAdvice","fontMetricsFromHTML","fontMetricsFromSVG","fakeFontMetrics","useTransformAPI","useGetTransformToElement","useDropShadow","suspendScriptsOnWorldExit","nullMoveAfterTicks","showLivelyConsole","suppressWebStoreCaching","showMostTyping","showAllTyping","useMetaAsCommand","askBeforeQuit","debugExtras","showGrabHalo","useShadowMorphs","loadSerializedSubworlds","personalServerPort","mainDelay","useStyling","verboseImport","selfConnect","suppressClipboardHack","suppressDefaultMouseBehavior","resizeScreenToWorldBounds","changeLocationOnSaveWorldAs","showClock","showStar","spinningStar","showHilbertFun","showPenScript","showTester","showBitmap","showMap","showKaleidoscope","showSampleMorphs","showTextSamples","showSystemBrowser","random","showInnerWorld","showSlideWorld","showDeveloperWorld","alignToGridSpace","ballonHelpDelay","silentFailOnWrapperClassNotFound","showFabrikComponentBox","showFahrenheitCelsiusExample","showTextListExample","openFabrikBrowserExample","showWikiNavigator","loadTests","showTesterRunner","modulesBeforeChanges","modulesBeforeWorldLoad","modulesOnWorldLoad","codeBase","disableScriptCaching","defaultDisplayTheme","hideSystemCursor","onWindowResizeUpdateWorldBounds","disableNoConsoleWarning","confirmNavigation","useAltAsCommand","pageNavigationName","pageNavigationWithKeys","showPageNumber","ignoreLoadingErrors","touchBeMouse","useFlattenedHTMLRenderingLayer","useDelayedHTMLRendering","couchDBURL","defaultCodeDB","wikiRepoUrl","nodeJSURL","nodeJSPath","serverInvokedTest","ignoreClassNotFound","forceHTML","loadUserConfig","keepSerializerIds","useOfflineStorage","showModuleDefStack","debugConnect","userNameURL","clickOnLineHack","useSoftTabs","disableSyntaxHighlighting","handleOnCapture","copDynamicInlining","globalGrabbing","isNewMorphic","modulePaths","rootPath","showFabrikWeatherWidgetExample","testInRealWorld","ChromeSVGRenderingHotfix","ignoredepricatedProceed"],"level":0,"treeView":{"__isSmartRef__":true,"id":2131},"label":"Properties","children":[{"__isSmartRef__":true,"id":2188},{"__isSmartRef__":true,"id":2252},{"__isSmartRef__":true,"id":2352},{"__isSmartRef__":true,"id":2452},{"__isSmartRef__":true,"id":2552},{"__isSmartRef__":true,"id":2652},{"__isSmartRef__":true,"id":2752},{"__isSmartRef__":true,"id":2852},{"__isSmartRef__":true,"id":2952},{"__isSmartRef__":true,"id":3052},{"__isSmartRef__":true,"id":3152},{"__isSmartRef__":true,"id":3252},{"__isSmartRef__":true,"id":3352},{"__isSmartRef__":true,"id":3452},{"__isSmartRef__":true,"id":3552},{"__isSmartRef__":true,"id":3652},{"__isSmartRef__":true,"id":3752},{"__isSmartRef__":true,"id":3852},{"__isSmartRef__":true,"id":3952},{"__isSmartRef__":true,"id":4052},{"__isSmartRef__":true,"id":4152},{"__isSmartRef__":true,"id":4252},{"__isSmartRef__":true,"id":4352},{"__isSmartRef__":true,"id":4452},{"__isSmartRef__":true,"id":4552},{"__isSmartRef__":true,"id":4652},{"__isSmartRef__":true,"id":4752},{"__isSmartRef__":true,"id":4852},{"__isSmartRef__":true,"id":4952},{"__isSmartRef__":true,"id":5052},{"__isSmartRef__":true,"id":5152},{"__isSmartRef__":true,"id":5252},{"__isSmartRef__":true,"id":5352},{"__isSmartRef__":true,"id":5452},{"__isSmartRef__":true,"id":5552},{"__isSmartRef__":true,"id":5652},{"__isSmartRef__":true,"id":5752},{"__isSmartRef__":true,"id":5852},{"__isSmartRef__":true,"id":5952},{"__isSmartRef__":true,"id":6052},{"__isSmartRef__":true,"id":6152},{"__isSmartRef__":true,"id":6252},{"__isSmartRef__":true,"id":6352},{"__isSmartRef__":true,"id":6452},{"__isSmartRef__":true,"id":6552},{"__isSmartRef__":true,"id":6652},{"__isSmartRef__":true,"id":6752},{"__isSmartRef__":true,"id":6852},{"__isSmartRef__":true,"id":6952},{"__isSmartRef__":true,"id":7052},{"__isSmartRef__":true,"id":7152},{"__isSmartRef__":true,"id":7252},{"__isSmartRef__":true,"id":7352},{"__isSmartRef__":true,"id":7452},{"__isSmartRef__":true,"id":7552},{"__isSmartRef__":true,"id":7652},{"__isSmartRef__":true,"id":7752},{"__isSmartRef__":true,"id":7852},{"__isSmartRef__":true,"id":7952},{"__isSmartRef__":true,"id":8052},{"__isSmartRef__":true,"id":8152},{"__isSmartRef__":true,"id":8252},{"__isSmartRef__":true,"id":8352},{"__isSmartRef__":true,"id":8452},{"__isSmartRef__":true,"id":8552},{"__isSmartRef__":true,"id":8652},{"__isSmartRef__":true,"id":8752},{"__isSmartRef__":true,"id":8852},{"__isSmartRef__":true,"id":8952},{"__isSmartRef__":true,"id":9052},{"__isSmartRef__":true,"id":9152},{"__isSmartRef__":true,"id":9252},{"__isSmartRef__":true,"id":9352},{"__isSmartRef__":true,"id":9452},{"__isSmartRef__":true,"id":9552},{"__isSmartRef__":true,"id":9652},{"__isSmartRef__":true,"id":9752},{"__isSmartRef__":true,"id":9852},{"__isSmartRef__":true,"id":9952},{"__isSmartRef__":true,"id":10052},{"__isSmartRef__":true,"id":10152},{"__isSmartRef__":true,"id":10252},{"__isSmartRef__":true,"id":10352},{"__isSmartRef__":true,"id":10452},{"__isSmartRef__":true,"id":10552},{"__isSmartRef__":true,"id":10652},{"__isSmartRef__":true,"id":10752},{"__isSmartRef__":true,"id":10852},{"__isSmartRef__":true,"id":10952},{"__isSmartRef__":true,"id":11052},{"__isSmartRef__":true,"id":11152},{"__isSmartRef__":true,"id":11252},{"__isSmartRef__":true,"id":11352},{"__isSmartRef__":true,"id":11452},{"__isSmartRef__":true,"id":11552},{"__isSmartRef__":true,"id":11652},{"__isSmartRef__":true,"id":11752},{"__isSmartRef__":true,"id":11852},{"__isSmartRef__":true,"id":11952},{"__isSmartRef__":true,"id":12052},{"__isSmartRef__":true,"id":12152},{"__isSmartRef__":true,"id":12252},{"__isSmartRef__":true,"id":12352},{"__isSmartRef__":true,"id":12452},{"__isSmartRef__":true,"id":12552},{"__isSmartRef__":true,"id":12652},{"__isSmartRef__":true,"id":12752},{"__isSmartRef__":true,"id":12852},{"__isSmartRef__":true,"id":12952},{"__isSmartRef__":true,"id":13052}],"parent":null,"expander":{"__isSmartRef__":true,"id":2135},"text":{"__isSmartRef__":true,"id":2160},"owner":{"__isSmartRef__":true,"id":2133},"_Position":{"__isSmartRef__":true,"id":13211},"priorExtent":{"__isSmartRef__":true,"id":13212},"_Rotation":0,"_Scale":1,"childrenWrapper":{"__isSmartRef__":true,"id":2250},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13213},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2135":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2136},"id":41,"renderContextTable":{"__isSmartRef__":true,"id":2142},"eventHandler":{"__isSmartRef__":true,"id":2143},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2144},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":true,"owner":{"__isSmartRef__":true,"id":2134},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2145},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2136":{"_Position":{"__isSmartRef__":true,"id":2137},"renderContextTable":{"__isSmartRef__":true,"id":2138},"_Extent":{"__isSmartRef__":true,"id":2139},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2140},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":780},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2137":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2138":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2139":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2140":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2141":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2142":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2143":{"morph":{"__isSmartRef__":true,"id":2135},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2144":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2145":{"onMouseUp":{"__isSmartRef__":true,"id":2146},"toggle":{"__isSmartRef__":true,"id":2153}},"2146":{"varMapping":{"__isSmartRef__":true,"id":2147},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2147":{"this":{"__isSmartRef__":true,"id":2135},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2148}},"2148":{"$super":{"__isSmartRef__":true,"id":2149}},"2149":{"varMapping":{"__isSmartRef__":true,"id":2150},"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":2151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2150":{"obj":{"__isSmartRef__":true,"id":2135},"name":"onMouseUp"},"2151":{},"2152":{},"2153":{"varMapping":{"__isSmartRef__":true,"id":2154},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2154":{"this":{"__isSmartRef__":true,"id":2135},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2155}},"2155":{"$super":{"__isSmartRef__":true,"id":2156}},"2156":{"varMapping":{"__isSmartRef__":true,"id":2157},"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":2158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2157":{"obj":{"__isSmartRef__":true,"id":2135},"name":"toggle"},"2158":{},"2159":{},"2160":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2161},"id":42,"renderContextTable":{"__isSmartRef__":true,"id":2166},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2167},{"__isSmartRef__":true,"id":2169}],"eventHandler":{"__isSmartRef__":true,"id":2172},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2173},"priorExtent":{"__isSmartRef__":true,"id":2174},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2134},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2175},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2161":{"_Position":{"__isSmartRef__":true,"id":2162},"renderContextTable":{"__isSmartRef__":true,"id":2163},"_Extent":{"__isSmartRef__":true,"id":2164},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":{"__isSmartRef__":true,"id":2165},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2162":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2163":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2164":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2165":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2166":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2167":{"style":{"__isSmartRef__":true,"id":2168},"chunkOwner":{"__isSmartRef__":true,"id":2160},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2168":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2169":{"style":{"__isSmartRef__":true,"id":2170},"chunkOwner":{"__isSmartRef__":true,"id":2160},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2170":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2171":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2172":{"morph":{"__isSmartRef__":true,"id":2160},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2173":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2174":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2175":{"layoutText":{"__isSmartRef__":true,"id":2176}},"2176":{"varMapping":{"__isSmartRef__":true,"id":2177},"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":2178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2177":{"this":{"__isSmartRef__":true,"id":2160}},"2178":{},"2179":{"_Position":{"__isSmartRef__":true,"id":2180},"renderContextTable":{"__isSmartRef__":true,"id":2181},"_Extent":{"__isSmartRef__":true,"id":2182},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2183},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2182":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2183":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2184":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2185":{"morph":{"__isSmartRef__":true,"id":2134},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2186":{"resizeWidth":true},"2187":{"shiftDragForDup":true,"proxyURL":"http://lively-kernel.org/proxy","createNewWorld":false,"skipMostExamples":false,"skipAllExamples":false,"showCurveExample":false,"showGridDemo":false,"showThumbnail":false,"suppressBalloonHelp":true,"usePieMenus":false,"showNetworkExamples":true,"ignoreAdvice":false,"fontMetricsFromHTML":true,"fontMetricsFromSVG":false,"fakeFontMetrics":false,"useTransformAPI":false,"useGetTransformToElement":true,"useDropShadow":true,"suspendScriptsOnWorldExit":true,"nullMoveAfterTicks":false,"showLivelyConsole":false,"suppressWebStoreCaching":false,"showMostTyping":true,"showAllTyping":true,"useMetaAsCommand":false,"askBeforeQuit":true,"debugExtras":false,"showGrabHalo":false,"useShadowMorphs":true,"loadSerializedSubworlds":false,"personalServerPort":8081,"mainDelay":0.05,"useStyling":false,"verboseImport":false,"selfConnect":false,"suppressClipboardHack":false,"suppressDefaultMouseBehavior":true,"resizeScreenToWorldBounds":true,"changeLocationOnSaveWorldAs":false,"showClock":true,"showStar":true,"spinningStar":true,"showHilbertFun":true,"showPenScript":true,"showTester":true,"showBitmap":false,"showMap":true,"showKaleidoscope":true,"showSampleMorphs":true,"showTextSamples":true,"showSystemBrowser":false,"random":975831328,"showInnerWorld":true,"showSlideWorld":true,"showDeveloperWorld":true,"alignToGridSpace":10,"ballonHelpDelay":1000,"silentFailOnWrapperClassNotFound":true,"showFabrikComponentBox":false,"showFahrenheitCelsiusExample":false,"showTextListExample":false,"openFabrikBrowserExample":false,"showWikiNavigator":false,"loadTests":[],"showTesterRunner":false,"modulesBeforeChanges":["lively.ChangeSet"],"modulesBeforeWorldLoad":["lively.morphic.CompatLayer"],"modulesOnWorldLoad":[],"codeBase":"http://lively-kernel.org/repository/webwerkstatt/core/","disableScriptCaching":true,"defaultDisplayTheme":"hpi","hideSystemCursor":false,"onWindowResizeUpdateWorldBounds":true,"disableNoConsoleWarning":true,"confirmNavigation":false,"useAltAsCommand":false,"pageNavigationName":"nothing","pageNavigationWithKeys":true,"showPageNumber":true,"ignoreLoadingErrors":true,"touchBeMouse":false,"useFlattenedHTMLRenderingLayer":true,"useDelayedHTMLRendering":false,"couchDBURL":"http://lively-kernel.org/couchdb","defaultCodeDB":"code_db","wikiRepoUrl":"http://lively-kernel.org/repository/webwerkstatt","nodeJSURL":"http://lively-kernel.org/nodejs","nodeJSPath":"/home/nodejs/","serverInvokedTest":false,"ignoreClassNotFound":true,"forceHTML":false,"loadUserConfig":true,"keepSerializerIds":false,"useOfflineStorage":false,"showModuleDefStack":true,"debugConnect":false,"userNameURL":"http://lively-kernel.org/cgi/user.sh","clickOnLineHack":true,"useSoftTabs":true,"disableSyntaxHighlighting":false,"handleOnCapture":true,"copDynamicInlining":false,"globalGrabbing":true,"isNewMorphic":true,"modulePaths":["users/","projects/"],"rootPath":"http://lively-kernel.org/repository/webwerkstatt/","showFabrikWeatherWidgetExample":false,"testInRealWorld":true,"ChromeSVGRenderingHotfix":true,"ignoredepricatedProceed":true,"lastSaveLinearizationTime":1773,"lastSaveSerializationTime":93,"lastSaveTransferTime":56,"lastSaveTime":2047},"2188":{"submorphs":[{"__isSmartRef__":true,"id":2189},{"__isSmartRef__":true,"id":2214}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2231},"id":46,"renderContextTable":{"__isSmartRef__":true,"id":2236},"eventHandler":{"__isSmartRef__":true,"id":2237},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2238},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"ChromeSVGRenderingHotfix","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2189},"text":{"__isSmartRef__":true,"id":2214},"owner":{"__isSmartRef__":true,"id":2239},"_Position":{"__isSmartRef__":true,"id":13182},"priorExtent":{"__isSmartRef__":true,"id":13183},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13184},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2189":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2190},"id":47,"renderContextTable":{"__isSmartRef__":true,"id":2196},"eventHandler":{"__isSmartRef__":true,"id":2197},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2198},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2188},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2199},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2190":{"_Position":{"__isSmartRef__":true,"id":2191},"renderContextTable":{"__isSmartRef__":true,"id":2192},"_Extent":{"__isSmartRef__":true,"id":2193},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2194},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2195},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2191":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2192":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2193":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2194":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2195":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2196":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2197":{"morph":{"__isSmartRef__":true,"id":2189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2198":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2199":{"onMouseUp":{"__isSmartRef__":true,"id":2200},"toggle":{"__isSmartRef__":true,"id":2207}},"2200":{"varMapping":{"__isSmartRef__":true,"id":2201},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2201":{"this":{"__isSmartRef__":true,"id":2189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2202}},"2202":{"$super":{"__isSmartRef__":true,"id":2203}},"2203":{"varMapping":{"__isSmartRef__":true,"id":2204},"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":2205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2204":{"obj":{"__isSmartRef__":true,"id":2189},"name":"onMouseUp"},"2205":{},"2206":{},"2207":{"varMapping":{"__isSmartRef__":true,"id":2208},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2208":{"this":{"__isSmartRef__":true,"id":2189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2209}},"2209":{"$super":{"__isSmartRef__":true,"id":2210}},"2210":{"varMapping":{"__isSmartRef__":true,"id":2211},"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":2212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2211":{"obj":{"__isSmartRef__":true,"id":2189},"name":"toggle"},"2212":{},"2213":{},"2214":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2215},"id":48,"renderContextTable":{"__isSmartRef__":true,"id":2219},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2220},{"__isSmartRef__":true,"id":2222}],"eventHandler":{"__isSmartRef__":true,"id":2224},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2225},"priorExtent":{"__isSmartRef__":true,"id":2226},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2188},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2227},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2215":{"_Position":{"__isSmartRef__":true,"id":2216},"renderContextTable":{"__isSmartRef__":true,"id":2217},"_Extent":{"__isSmartRef__":true,"id":2218},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2216":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2217":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2218":{"x":233,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2219":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2220":{"style":{"__isSmartRef__":true,"id":2221},"chunkOwner":{"__isSmartRef__":true,"id":2214},"storedString":"ChromeSVGRenderingHotfix","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2221":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2222":{"style":{"__isSmartRef__":true,"id":2223},"chunkOwner":{"__isSmartRef__":true,"id":2214},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2223":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2224":{"morph":{"__isSmartRef__":true,"id":2214},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2225":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2226":{"x":225,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2227":{"layoutText":{"__isSmartRef__":true,"id":2228}},"2228":{"varMapping":{"__isSmartRef__":true,"id":2229},"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":2230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2229":{"this":{"__isSmartRef__":true,"id":2214}},"2230":{},"2231":{"_Position":{"__isSmartRef__":true,"id":2232},"renderContextTable":{"__isSmartRef__":true,"id":2233},"_Extent":{"__isSmartRef__":true,"id":2234},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2235},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2232":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2233":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2234":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2235":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2236":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2237":{"morph":{"__isSmartRef__":true,"id":2188},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2238":{"resizeWidth":true},"2239":{"submorphs":[{"__isSmartRef__":true,"id":2188}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2240},"id":49,"renderContextTable":{"__isSmartRef__":true,"id":2245},"eventHandler":{"__isSmartRef__":true,"id":2246},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2247},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2249},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":13173},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13174},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2240":{"_Position":{"__isSmartRef__":true,"id":2241},"renderContextTable":{"__isSmartRef__":true,"id":2242},"_Extent":{"__isSmartRef__":true,"id":2243},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2244},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2241":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2242":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2243":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2244":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2245":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2246":{"morph":{"__isSmartRef__":true,"id":2239},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2247":{"layouter":{"__isSmartRef__":true,"id":2248},"resizeWidth":true},"2248":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2239},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2249":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2250":{"submorphs":[{"__isSmartRef__":true,"id":2239},{"__isSmartRef__":true,"id":2251},{"__isSmartRef__":true,"id":2351},{"__isSmartRef__":true,"id":2451},{"__isSmartRef__":true,"id":2551},{"__isSmartRef__":true,"id":2651},{"__isSmartRef__":true,"id":2751},{"__isSmartRef__":true,"id":2851},{"__isSmartRef__":true,"id":2951},{"__isSmartRef__":true,"id":3051},{"__isSmartRef__":true,"id":3151},{"__isSmartRef__":true,"id":3251},{"__isSmartRef__":true,"id":3351},{"__isSmartRef__":true,"id":3451},{"__isSmartRef__":true,"id":3551},{"__isSmartRef__":true,"id":3651},{"__isSmartRef__":true,"id":3751},{"__isSmartRef__":true,"id":3851},{"__isSmartRef__":true,"id":3951},{"__isSmartRef__":true,"id":4051},{"__isSmartRef__":true,"id":4151},{"__isSmartRef__":true,"id":4251},{"__isSmartRef__":true,"id":4351},{"__isSmartRef__":true,"id":4451},{"__isSmartRef__":true,"id":4551},{"__isSmartRef__":true,"id":4651},{"__isSmartRef__":true,"id":4751},{"__isSmartRef__":true,"id":4851},{"__isSmartRef__":true,"id":4951},{"__isSmartRef__":true,"id":5051},{"__isSmartRef__":true,"id":5151},{"__isSmartRef__":true,"id":5251},{"__isSmartRef__":true,"id":5351},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":5551},{"__isSmartRef__":true,"id":5651},{"__isSmartRef__":true,"id":5751},{"__isSmartRef__":true,"id":5851},{"__isSmartRef__":true,"id":5951},{"__isSmartRef__":true,"id":6051},{"__isSmartRef__":true,"id":6151},{"__isSmartRef__":true,"id":6251},{"__isSmartRef__":true,"id":6351},{"__isSmartRef__":true,"id":6451},{"__isSmartRef__":true,"id":6551},{"__isSmartRef__":true,"id":6651},{"__isSmartRef__":true,"id":6751},{"__isSmartRef__":true,"id":6851},{"__isSmartRef__":true,"id":6951},{"__isSmartRef__":true,"id":7051},{"__isSmartRef__":true,"id":7151},{"__isSmartRef__":true,"id":7251},{"__isSmartRef__":true,"id":7351},{"__isSmartRef__":true,"id":7451},{"__isSmartRef__":true,"id":7551},{"__isSmartRef__":true,"id":7651},{"__isSmartRef__":true,"id":7751},{"__isSmartRef__":true,"id":7851},{"__isSmartRef__":true,"id":7951},{"__isSmartRef__":true,"id":8051},{"__isSmartRef__":true,"id":8151},{"__isSmartRef__":true,"id":8251},{"__isSmartRef__":true,"id":8351},{"__isSmartRef__":true,"id":8451},{"__isSmartRef__":true,"id":8551},{"__isSmartRef__":true,"id":8651},{"__isSmartRef__":true,"id":8751},{"__isSmartRef__":true,"id":8851},{"__isSmartRef__":true,"id":8951},{"__isSmartRef__":true,"id":9051},{"__isSmartRef__":true,"id":9151},{"__isSmartRef__":true,"id":9251},{"__isSmartRef__":true,"id":9351},{"__isSmartRef__":true,"id":9451},{"__isSmartRef__":true,"id":9551},{"__isSmartRef__":true,"id":9651},{"__isSmartRef__":true,"id":9751},{"__isSmartRef__":true,"id":9851},{"__isSmartRef__":true,"id":9951},{"__isSmartRef__":true,"id":10051},{"__isSmartRef__":true,"id":10151},{"__isSmartRef__":true,"id":10251},{"__isSmartRef__":true,"id":10351},{"__isSmartRef__":true,"id":10451},{"__isSmartRef__":true,"id":10551},{"__isSmartRef__":true,"id":10651},{"__isSmartRef__":true,"id":10751},{"__isSmartRef__":true,"id":10851},{"__isSmartRef__":true,"id":10951},{"__isSmartRef__":true,"id":11051},{"__isSmartRef__":true,"id":11151},{"__isSmartRef__":true,"id":11251},{"__isSmartRef__":true,"id":11351},{"__isSmartRef__":true,"id":11451},{"__isSmartRef__":true,"id":11551},{"__isSmartRef__":true,"id":11651},{"__isSmartRef__":true,"id":11751},{"__isSmartRef__":true,"id":11851},{"__isSmartRef__":true,"id":11951},{"__isSmartRef__":true,"id":12051},{"__isSmartRef__":true,"id":12151},{"__isSmartRef__":true,"id":12251},{"__isSmartRef__":true,"id":12351},{"__isSmartRef__":true,"id":12451},{"__isSmartRef__":true,"id":12551},{"__isSmartRef__":true,"id":12651},{"__isSmartRef__":true,"id":12751},{"__isSmartRef__":true,"id":12851},{"__isSmartRef__":true,"id":12951},{"__isSmartRef__":true,"id":13051}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13151},"id":45,"renderContextTable":{"__isSmartRef__":true,"id":13156},"eventHandler":{"__isSmartRef__":true,"id":13157},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13158},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":13160},"owner":{"__isSmartRef__":true,"id":2133},"_Position":{"__isSmartRef__":true,"id":13161},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13162},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2251":{"submorphs":[{"__isSmartRef__":true,"id":2252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2332},"id":53,"renderContextTable":{"__isSmartRef__":true,"id":2337},"eventHandler":{"__isSmartRef__":true,"id":2338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":2342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2252":{"submorphs":[{"__isSmartRef__":true,"id":2253},{"__isSmartRef__":true,"id":2278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2295},"id":50,"renderContextTable":{"__isSmartRef__":true,"id":2300},"eventHandler":{"__isSmartRef__":true,"id":2301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2302},"grabbingEnabled":false,"draggingEnabled":false,"data":10,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"alignToGridSpace","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2253},"text":{"__isSmartRef__":true,"id":2278},"owner":{"__isSmartRef__":true,"id":2251},"_Position":{"__isSmartRef__":true,"id":2303},"priorExtent":{"__isSmartRef__":true,"id":2304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2254},"id":51,"renderContextTable":{"__isSmartRef__":true,"id":2260},"eventHandler":{"__isSmartRef__":true,"id":2261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2254":{"_Position":{"__isSmartRef__":true,"id":2255},"renderContextTable":{"__isSmartRef__":true,"id":2256},"_Extent":{"__isSmartRef__":true,"id":2257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2261":{"morph":{"__isSmartRef__":true,"id":2253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2263":{"onMouseUp":{"__isSmartRef__":true,"id":2264},"toggle":{"__isSmartRef__":true,"id":2271}},"2264":{"varMapping":{"__isSmartRef__":true,"id":2265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2265":{"this":{"__isSmartRef__":true,"id":2253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2266}},"2266":{"$super":{"__isSmartRef__":true,"id":2267}},"2267":{"varMapping":{"__isSmartRef__":true,"id":2268},"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":2269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2268":{"obj":{"__isSmartRef__":true,"id":2253},"name":"onMouseUp"},"2269":{},"2270":{},"2271":{"varMapping":{"__isSmartRef__":true,"id":2272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2272":{"this":{"__isSmartRef__":true,"id":2253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2273}},"2273":{"$super":{"__isSmartRef__":true,"id":2274}},"2274":{"varMapping":{"__isSmartRef__":true,"id":2275},"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":2276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2275":{"obj":{"__isSmartRef__":true,"id":2253},"name":"toggle"},"2276":{},"2277":{},"2278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2279},"id":52,"renderContextTable":{"__isSmartRef__":true,"id":2283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2284},{"__isSmartRef__":true,"id":2286}],"eventHandler":{"__isSmartRef__":true,"id":2288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2289},"priorExtent":{"__isSmartRef__":true,"id":2290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2279":{"_Position":{"__isSmartRef__":true,"id":2280},"renderContextTable":{"__isSmartRef__":true,"id":2281},"_Extent":{"__isSmartRef__":true,"id":2282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2282":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2284":{"style":{"__isSmartRef__":true,"id":2285},"chunkOwner":{"__isSmartRef__":true,"id":2278},"storedString":"alignToGridSpace","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2286":{"style":{"__isSmartRef__":true,"id":2287},"chunkOwner":{"__isSmartRef__":true,"id":2278},"storedString":": 10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2288":{"morph":{"__isSmartRef__":true,"id":2278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2290":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2291":{"layoutText":{"__isSmartRef__":true,"id":2292}},"2292":{"varMapping":{"__isSmartRef__":true,"id":2293},"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":2294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2293":{"this":{"__isSmartRef__":true,"id":2278}},"2294":{},"2295":{"_Position":{"__isSmartRef__":true,"id":2296},"renderContextTable":{"__isSmartRef__":true,"id":2297},"_Extent":{"__isSmartRef__":true,"id":2298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2301":{"morph":{"__isSmartRef__":true,"id":2252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2302":{"resizeWidth":true},"2303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2305":{"updateExpanderColor":{"__isSmartRef__":true,"id":2306},"onMouseDown":{"__isSmartRef__":true,"id":2309},"onMouseUp":{"__isSmartRef__":true,"id":2316},"isRoot":{"__isSmartRef__":true,"id":2323},"displayValue":{"__isSmartRef__":true,"id":2326},"update":{"__isSmartRef__":true,"id":2329}},"2306":{"varMapping":{"__isSmartRef__":true,"id":2307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":2308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2307":{"this":{"__isSmartRef__":true,"id":2252}},"2308":{},"2309":{"varMapping":{"__isSmartRef__":true,"id":2310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2310":{"this":{"__isSmartRef__":true,"id":2252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2311}},"2311":{"$super":{"__isSmartRef__":true,"id":2312}},"2312":{"varMapping":{"__isSmartRef__":true,"id":2313},"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":2314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2313":{"obj":{"__isSmartRef__":true,"id":2252},"name":"onMouseDown"},"2314":{},"2315":{},"2316":{"varMapping":{"__isSmartRef__":true,"id":2317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2317":{"this":{"__isSmartRef__":true,"id":2252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2318}},"2318":{"$super":{"__isSmartRef__":true,"id":2319}},"2319":{"varMapping":{"__isSmartRef__":true,"id":2320},"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":2321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2320":{"obj":{"__isSmartRef__":true,"id":2252},"name":"onMouseUp"},"2321":{},"2322":{},"2323":{"varMapping":{"__isSmartRef__":true,"id":2324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2324":{"this":{"__isSmartRef__":true,"id":2252}},"2325":{},"2326":{"varMapping":{"__isSmartRef__":true,"id":2327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":2328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2327":{"this":{"__isSmartRef__":true,"id":2252}},"2328":{},"2329":{"varMapping":{"__isSmartRef__":true,"id":2330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2330":{"this":{"__isSmartRef__":true,"id":2252}},"2331":{},"2332":{"_Position":{"__isSmartRef__":true,"id":2333},"renderContextTable":{"__isSmartRef__":true,"id":2334},"_Extent":{"__isSmartRef__":true,"id":2335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2338":{"morph":{"__isSmartRef__":true,"id":2251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2339":{"layouter":{"__isSmartRef__":true,"id":2340},"resizeWidth":true},"2340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2342":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2344}},"2344":{"varMapping":{"__isSmartRef__":true,"id":2345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2345":{"this":{"__isSmartRef__":true,"id":2251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2346}},"2346":{"$super":{"__isSmartRef__":true,"id":2347}},"2347":{"varMapping":{"__isSmartRef__":true,"id":2348},"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":2349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2348":{"obj":{"__isSmartRef__":true,"id":2251},"name":"getLayoutableSubmorphs"},"2349":{},"2350":{},"2351":{"submorphs":[{"__isSmartRef__":true,"id":2352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2432},"id":57,"renderContextTable":{"__isSmartRef__":true,"id":2437},"eventHandler":{"__isSmartRef__":true,"id":2438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":2442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2352":{"submorphs":[{"__isSmartRef__":true,"id":2353},{"__isSmartRef__":true,"id":2378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2395},"id":54,"renderContextTable":{"__isSmartRef__":true,"id":2400},"eventHandler":{"__isSmartRef__":true,"id":2401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2402},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"askBeforeQuit","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2353},"text":{"__isSmartRef__":true,"id":2378},"owner":{"__isSmartRef__":true,"id":2351},"_Position":{"__isSmartRef__":true,"id":2403},"priorExtent":{"__isSmartRef__":true,"id":2404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2354},"id":55,"renderContextTable":{"__isSmartRef__":true,"id":2360},"eventHandler":{"__isSmartRef__":true,"id":2361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2354":{"_Position":{"__isSmartRef__":true,"id":2355},"renderContextTable":{"__isSmartRef__":true,"id":2356},"_Extent":{"__isSmartRef__":true,"id":2357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2361":{"morph":{"__isSmartRef__":true,"id":2353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2363":{"onMouseUp":{"__isSmartRef__":true,"id":2364},"toggle":{"__isSmartRef__":true,"id":2371}},"2364":{"varMapping":{"__isSmartRef__":true,"id":2365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2365":{"this":{"__isSmartRef__":true,"id":2353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2366}},"2366":{"$super":{"__isSmartRef__":true,"id":2367}},"2367":{"varMapping":{"__isSmartRef__":true,"id":2368},"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":2369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2368":{"obj":{"__isSmartRef__":true,"id":2353},"name":"onMouseUp"},"2369":{},"2370":{},"2371":{"varMapping":{"__isSmartRef__":true,"id":2372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2372":{"this":{"__isSmartRef__":true,"id":2353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2373}},"2373":{"$super":{"__isSmartRef__":true,"id":2374}},"2374":{"varMapping":{"__isSmartRef__":true,"id":2375},"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":2376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2375":{"obj":{"__isSmartRef__":true,"id":2353},"name":"toggle"},"2376":{},"2377":{},"2378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2379},"id":56,"renderContextTable":{"__isSmartRef__":true,"id":2383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2384},{"__isSmartRef__":true,"id":2386}],"eventHandler":{"__isSmartRef__":true,"id":2388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2389},"priorExtent":{"__isSmartRef__":true,"id":2390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2379":{"_Position":{"__isSmartRef__":true,"id":2380},"renderContextTable":{"__isSmartRef__":true,"id":2381},"_Extent":{"__isSmartRef__":true,"id":2382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2382":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2384":{"style":{"__isSmartRef__":true,"id":2385},"chunkOwner":{"__isSmartRef__":true,"id":2378},"storedString":"askBeforeQuit","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2386":{"style":{"__isSmartRef__":true,"id":2387},"chunkOwner":{"__isSmartRef__":true,"id":2378},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2388":{"morph":{"__isSmartRef__":true,"id":2378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2390":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2391":{"layoutText":{"__isSmartRef__":true,"id":2392}},"2392":{"varMapping":{"__isSmartRef__":true,"id":2393},"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":2394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2393":{"this":{"__isSmartRef__":true,"id":2378}},"2394":{},"2395":{"_Position":{"__isSmartRef__":true,"id":2396},"renderContextTable":{"__isSmartRef__":true,"id":2397},"_Extent":{"__isSmartRef__":true,"id":2398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2401":{"morph":{"__isSmartRef__":true,"id":2352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2402":{"resizeWidth":true},"2403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2405":{"updateExpanderColor":{"__isSmartRef__":true,"id":2406},"onMouseDown":{"__isSmartRef__":true,"id":2409},"onMouseUp":{"__isSmartRef__":true,"id":2416},"isRoot":{"__isSmartRef__":true,"id":2423},"displayValue":{"__isSmartRef__":true,"id":2426},"update":{"__isSmartRef__":true,"id":2429}},"2406":{"varMapping":{"__isSmartRef__":true,"id":2407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":2408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2407":{"this":{"__isSmartRef__":true,"id":2352}},"2408":{},"2409":{"varMapping":{"__isSmartRef__":true,"id":2410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2410":{"this":{"__isSmartRef__":true,"id":2352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2411}},"2411":{"$super":{"__isSmartRef__":true,"id":2412}},"2412":{"varMapping":{"__isSmartRef__":true,"id":2413},"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":2414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2413":{"obj":{"__isSmartRef__":true,"id":2352},"name":"onMouseDown"},"2414":{},"2415":{},"2416":{"varMapping":{"__isSmartRef__":true,"id":2417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2417":{"this":{"__isSmartRef__":true,"id":2352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2418}},"2418":{"$super":{"__isSmartRef__":true,"id":2419}},"2419":{"varMapping":{"__isSmartRef__":true,"id":2420},"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":2421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2420":{"obj":{"__isSmartRef__":true,"id":2352},"name":"onMouseUp"},"2421":{},"2422":{},"2423":{"varMapping":{"__isSmartRef__":true,"id":2424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2424":{"this":{"__isSmartRef__":true,"id":2352}},"2425":{},"2426":{"varMapping":{"__isSmartRef__":true,"id":2427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":2428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2427":{"this":{"__isSmartRef__":true,"id":2352}},"2428":{},"2429":{"varMapping":{"__isSmartRef__":true,"id":2430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2430":{"this":{"__isSmartRef__":true,"id":2352}},"2431":{},"2432":{"_Position":{"__isSmartRef__":true,"id":2433},"renderContextTable":{"__isSmartRef__":true,"id":2434},"_Extent":{"__isSmartRef__":true,"id":2435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2438":{"morph":{"__isSmartRef__":true,"id":2351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2439":{"layouter":{"__isSmartRef__":true,"id":2440},"resizeWidth":true},"2440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2442":{"x":0,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2444}},"2444":{"varMapping":{"__isSmartRef__":true,"id":2445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2445":{"this":{"__isSmartRef__":true,"id":2351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2446}},"2446":{"$super":{"__isSmartRef__":true,"id":2447}},"2447":{"varMapping":{"__isSmartRef__":true,"id":2448},"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":2449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2448":{"obj":{"__isSmartRef__":true,"id":2351},"name":"getLayoutableSubmorphs"},"2449":{},"2450":{},"2451":{"submorphs":[{"__isSmartRef__":true,"id":2452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2532},"id":61,"renderContextTable":{"__isSmartRef__":true,"id":2537},"eventHandler":{"__isSmartRef__":true,"id":2538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":2542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2452":{"submorphs":[{"__isSmartRef__":true,"id":2453},{"__isSmartRef__":true,"id":2478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2495},"id":58,"renderContextTable":{"__isSmartRef__":true,"id":2500},"eventHandler":{"__isSmartRef__":true,"id":2501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2502},"grabbingEnabled":false,"draggingEnabled":false,"data":1000,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"ballonHelpDelay","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2453},"text":{"__isSmartRef__":true,"id":2478},"owner":{"__isSmartRef__":true,"id":2451},"_Position":{"__isSmartRef__":true,"id":2503},"priorExtent":{"__isSmartRef__":true,"id":2504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2454},"id":59,"renderContextTable":{"__isSmartRef__":true,"id":2460},"eventHandler":{"__isSmartRef__":true,"id":2461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2454":{"_Position":{"__isSmartRef__":true,"id":2455},"renderContextTable":{"__isSmartRef__":true,"id":2456},"_Extent":{"__isSmartRef__":true,"id":2457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2461":{"morph":{"__isSmartRef__":true,"id":2453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2463":{"onMouseUp":{"__isSmartRef__":true,"id":2464},"toggle":{"__isSmartRef__":true,"id":2471}},"2464":{"varMapping":{"__isSmartRef__":true,"id":2465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2465":{"this":{"__isSmartRef__":true,"id":2453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2466}},"2466":{"$super":{"__isSmartRef__":true,"id":2467}},"2467":{"varMapping":{"__isSmartRef__":true,"id":2468},"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":2469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2468":{"obj":{"__isSmartRef__":true,"id":2453},"name":"onMouseUp"},"2469":{},"2470":{},"2471":{"varMapping":{"__isSmartRef__":true,"id":2472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2472":{"this":{"__isSmartRef__":true,"id":2453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2473}},"2473":{"$super":{"__isSmartRef__":true,"id":2474}},"2474":{"varMapping":{"__isSmartRef__":true,"id":2475},"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":2476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2475":{"obj":{"__isSmartRef__":true,"id":2453},"name":"toggle"},"2476":{},"2477":{},"2478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2479},"id":60,"renderContextTable":{"__isSmartRef__":true,"id":2483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2484},{"__isSmartRef__":true,"id":2486}],"eventHandler":{"__isSmartRef__":true,"id":2488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2489},"priorExtent":{"__isSmartRef__":true,"id":2490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2479":{"_Position":{"__isSmartRef__":true,"id":2480},"renderContextTable":{"__isSmartRef__":true,"id":2481},"_Extent":{"__isSmartRef__":true,"id":2482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2482":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2484":{"style":{"__isSmartRef__":true,"id":2485},"chunkOwner":{"__isSmartRef__":true,"id":2478},"storedString":"ballonHelpDelay","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2486":{"style":{"__isSmartRef__":true,"id":2487},"chunkOwner":{"__isSmartRef__":true,"id":2478},"storedString":": 1000","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2488":{"morph":{"__isSmartRef__":true,"id":2478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2490":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2491":{"layoutText":{"__isSmartRef__":true,"id":2492}},"2492":{"varMapping":{"__isSmartRef__":true,"id":2493},"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":2494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2493":{"this":{"__isSmartRef__":true,"id":2478}},"2494":{},"2495":{"_Position":{"__isSmartRef__":true,"id":2496},"renderContextTable":{"__isSmartRef__":true,"id":2497},"_Extent":{"__isSmartRef__":true,"id":2498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2501":{"morph":{"__isSmartRef__":true,"id":2452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2502":{"resizeWidth":true},"2503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2505":{"updateExpanderColor":{"__isSmartRef__":true,"id":2506},"onMouseDown":{"__isSmartRef__":true,"id":2509},"onMouseUp":{"__isSmartRef__":true,"id":2516},"isRoot":{"__isSmartRef__":true,"id":2523},"displayValue":{"__isSmartRef__":true,"id":2526},"update":{"__isSmartRef__":true,"id":2529}},"2506":{"varMapping":{"__isSmartRef__":true,"id":2507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":2508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2507":{"this":{"__isSmartRef__":true,"id":2452}},"2508":{},"2509":{"varMapping":{"__isSmartRef__":true,"id":2510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2510":{"this":{"__isSmartRef__":true,"id":2452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2511}},"2511":{"$super":{"__isSmartRef__":true,"id":2512}},"2512":{"varMapping":{"__isSmartRef__":true,"id":2513},"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":2514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2513":{"obj":{"__isSmartRef__":true,"id":2452},"name":"onMouseDown"},"2514":{},"2515":{},"2516":{"varMapping":{"__isSmartRef__":true,"id":2517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2517":{"this":{"__isSmartRef__":true,"id":2452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2518}},"2518":{"$super":{"__isSmartRef__":true,"id":2519}},"2519":{"varMapping":{"__isSmartRef__":true,"id":2520},"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":2521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2520":{"obj":{"__isSmartRef__":true,"id":2452},"name":"onMouseUp"},"2521":{},"2522":{},"2523":{"varMapping":{"__isSmartRef__":true,"id":2524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2524":{"this":{"__isSmartRef__":true,"id":2452}},"2525":{},"2526":{"varMapping":{"__isSmartRef__":true,"id":2527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":2528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2527":{"this":{"__isSmartRef__":true,"id":2452}},"2528":{},"2529":{"varMapping":{"__isSmartRef__":true,"id":2530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2530":{"this":{"__isSmartRef__":true,"id":2452}},"2531":{},"2532":{"_Position":{"__isSmartRef__":true,"id":2533},"renderContextTable":{"__isSmartRef__":true,"id":2534},"_Extent":{"__isSmartRef__":true,"id":2535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2538":{"morph":{"__isSmartRef__":true,"id":2451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2539":{"layouter":{"__isSmartRef__":true,"id":2540},"resizeWidth":true},"2540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2542":{"x":0,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2544}},"2544":{"varMapping":{"__isSmartRef__":true,"id":2545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2545":{"this":{"__isSmartRef__":true,"id":2451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2546}},"2546":{"$super":{"__isSmartRef__":true,"id":2547}},"2547":{"varMapping":{"__isSmartRef__":true,"id":2548},"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":2549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2548":{"obj":{"__isSmartRef__":true,"id":2451},"name":"getLayoutableSubmorphs"},"2549":{},"2550":{},"2551":{"submorphs":[{"__isSmartRef__":true,"id":2552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2632},"id":65,"renderContextTable":{"__isSmartRef__":true,"id":2637},"eventHandler":{"__isSmartRef__":true,"id":2638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":2642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2552":{"submorphs":[{"__isSmartRef__":true,"id":2553},{"__isSmartRef__":true,"id":2578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2595},"id":62,"renderContextTable":{"__isSmartRef__":true,"id":2600},"eventHandler":{"__isSmartRef__":true,"id":2601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2602},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"changeLocationOnSaveWorldAs","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2553},"text":{"__isSmartRef__":true,"id":2578},"owner":{"__isSmartRef__":true,"id":2551},"_Position":{"__isSmartRef__":true,"id":2603},"priorExtent":{"__isSmartRef__":true,"id":2604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2554},"id":63,"renderContextTable":{"__isSmartRef__":true,"id":2560},"eventHandler":{"__isSmartRef__":true,"id":2561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2554":{"_Position":{"__isSmartRef__":true,"id":2555},"renderContextTable":{"__isSmartRef__":true,"id":2556},"_Extent":{"__isSmartRef__":true,"id":2557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2561":{"morph":{"__isSmartRef__":true,"id":2553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2563":{"onMouseUp":{"__isSmartRef__":true,"id":2564},"toggle":{"__isSmartRef__":true,"id":2571}},"2564":{"varMapping":{"__isSmartRef__":true,"id":2565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2565":{"this":{"__isSmartRef__":true,"id":2553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2566}},"2566":{"$super":{"__isSmartRef__":true,"id":2567}},"2567":{"varMapping":{"__isSmartRef__":true,"id":2568},"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":2569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2568":{"obj":{"__isSmartRef__":true,"id":2553},"name":"onMouseUp"},"2569":{},"2570":{},"2571":{"varMapping":{"__isSmartRef__":true,"id":2572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2572":{"this":{"__isSmartRef__":true,"id":2553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2573}},"2573":{"$super":{"__isSmartRef__":true,"id":2574}},"2574":{"varMapping":{"__isSmartRef__":true,"id":2575},"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":2576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2575":{"obj":{"__isSmartRef__":true,"id":2553},"name":"toggle"},"2576":{},"2577":{},"2578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2579},"id":64,"renderContextTable":{"__isSmartRef__":true,"id":2583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2584},{"__isSmartRef__":true,"id":2586}],"eventHandler":{"__isSmartRef__":true,"id":2588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2589},"priorExtent":{"__isSmartRef__":true,"id":2590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2579":{"_Position":{"__isSmartRef__":true,"id":2580},"renderContextTable":{"__isSmartRef__":true,"id":2581},"_Extent":{"__isSmartRef__":true,"id":2582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2582":{"x":263,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2584":{"style":{"__isSmartRef__":true,"id":2585},"chunkOwner":{"__isSmartRef__":true,"id":2578},"storedString":"changeLocationOnSaveWorldAs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2586":{"style":{"__isSmartRef__":true,"id":2587},"chunkOwner":{"__isSmartRef__":true,"id":2578},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2588":{"morph":{"__isSmartRef__":true,"id":2578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2590":{"x":255,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2591":{"layoutText":{"__isSmartRef__":true,"id":2592}},"2592":{"varMapping":{"__isSmartRef__":true,"id":2593},"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":2594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2593":{"this":{"__isSmartRef__":true,"id":2578}},"2594":{},"2595":{"_Position":{"__isSmartRef__":true,"id":2596},"renderContextTable":{"__isSmartRef__":true,"id":2597},"_Extent":{"__isSmartRef__":true,"id":2598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2601":{"morph":{"__isSmartRef__":true,"id":2552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2602":{"resizeWidth":true},"2603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2605":{"updateExpanderColor":{"__isSmartRef__":true,"id":2606},"onMouseDown":{"__isSmartRef__":true,"id":2609},"onMouseUp":{"__isSmartRef__":true,"id":2616},"isRoot":{"__isSmartRef__":true,"id":2623},"displayValue":{"__isSmartRef__":true,"id":2626},"update":{"__isSmartRef__":true,"id":2629}},"2606":{"varMapping":{"__isSmartRef__":true,"id":2607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":2608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2607":{"this":{"__isSmartRef__":true,"id":2552}},"2608":{},"2609":{"varMapping":{"__isSmartRef__":true,"id":2610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2610":{"this":{"__isSmartRef__":true,"id":2552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2611}},"2611":{"$super":{"__isSmartRef__":true,"id":2612}},"2612":{"varMapping":{"__isSmartRef__":true,"id":2613},"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":2614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2613":{"obj":{"__isSmartRef__":true,"id":2552},"name":"onMouseDown"},"2614":{},"2615":{},"2616":{"varMapping":{"__isSmartRef__":true,"id":2617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2617":{"this":{"__isSmartRef__":true,"id":2552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2618}},"2618":{"$super":{"__isSmartRef__":true,"id":2619}},"2619":{"varMapping":{"__isSmartRef__":true,"id":2620},"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":2621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2620":{"obj":{"__isSmartRef__":true,"id":2552},"name":"onMouseUp"},"2621":{},"2622":{},"2623":{"varMapping":{"__isSmartRef__":true,"id":2624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2624":{"this":{"__isSmartRef__":true,"id":2552}},"2625":{},"2626":{"varMapping":{"__isSmartRef__":true,"id":2627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":2628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2627":{"this":{"__isSmartRef__":true,"id":2552}},"2628":{},"2629":{"varMapping":{"__isSmartRef__":true,"id":2630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2630":{"this":{"__isSmartRef__":true,"id":2552}},"2631":{},"2632":{"_Position":{"__isSmartRef__":true,"id":2633},"renderContextTable":{"__isSmartRef__":true,"id":2634},"_Extent":{"__isSmartRef__":true,"id":2635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2638":{"morph":{"__isSmartRef__":true,"id":2551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2639":{"layouter":{"__isSmartRef__":true,"id":2640},"resizeWidth":true},"2640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2642":{"x":0,"y":80,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2644}},"2644":{"varMapping":{"__isSmartRef__":true,"id":2645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2645":{"this":{"__isSmartRef__":true,"id":2551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2646}},"2646":{"$super":{"__isSmartRef__":true,"id":2647}},"2647":{"varMapping":{"__isSmartRef__":true,"id":2648},"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":2649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2648":{"obj":{"__isSmartRef__":true,"id":2551},"name":"getLayoutableSubmorphs"},"2649":{},"2650":{},"2651":{"submorphs":[{"__isSmartRef__":true,"id":2652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2732},"id":69,"renderContextTable":{"__isSmartRef__":true,"id":2737},"eventHandler":{"__isSmartRef__":true,"id":2738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":2742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2652":{"submorphs":[{"__isSmartRef__":true,"id":2653},{"__isSmartRef__":true,"id":2678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2695},"id":66,"renderContextTable":{"__isSmartRef__":true,"id":2700},"eventHandler":{"__isSmartRef__":true,"id":2701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2702},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"clickOnLineHack","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2653},"text":{"__isSmartRef__":true,"id":2678},"owner":{"__isSmartRef__":true,"id":2651},"_Position":{"__isSmartRef__":true,"id":2703},"priorExtent":{"__isSmartRef__":true,"id":2704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2654},"id":67,"renderContextTable":{"__isSmartRef__":true,"id":2660},"eventHandler":{"__isSmartRef__":true,"id":2661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2654":{"_Position":{"__isSmartRef__":true,"id":2655},"renderContextTable":{"__isSmartRef__":true,"id":2656},"_Extent":{"__isSmartRef__":true,"id":2657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2661":{"morph":{"__isSmartRef__":true,"id":2653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2663":{"onMouseUp":{"__isSmartRef__":true,"id":2664},"toggle":{"__isSmartRef__":true,"id":2671}},"2664":{"varMapping":{"__isSmartRef__":true,"id":2665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2665":{"this":{"__isSmartRef__":true,"id":2653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2666}},"2666":{"$super":{"__isSmartRef__":true,"id":2667}},"2667":{"varMapping":{"__isSmartRef__":true,"id":2668},"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":2669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2668":{"obj":{"__isSmartRef__":true,"id":2653},"name":"onMouseUp"},"2669":{},"2670":{},"2671":{"varMapping":{"__isSmartRef__":true,"id":2672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2672":{"this":{"__isSmartRef__":true,"id":2653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2673}},"2673":{"$super":{"__isSmartRef__":true,"id":2674}},"2674":{"varMapping":{"__isSmartRef__":true,"id":2675},"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":2676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2675":{"obj":{"__isSmartRef__":true,"id":2653},"name":"toggle"},"2676":{},"2677":{},"2678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2679},"id":68,"renderContextTable":{"__isSmartRef__":true,"id":2683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2684},{"__isSmartRef__":true,"id":2686}],"eventHandler":{"__isSmartRef__":true,"id":2688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2689},"priorExtent":{"__isSmartRef__":true,"id":2690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2679":{"_Position":{"__isSmartRef__":true,"id":2680},"renderContextTable":{"__isSmartRef__":true,"id":2681},"_Extent":{"__isSmartRef__":true,"id":2682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2682":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2684":{"style":{"__isSmartRef__":true,"id":2685},"chunkOwner":{"__isSmartRef__":true,"id":2678},"storedString":"clickOnLineHack","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2686":{"style":{"__isSmartRef__":true,"id":2687},"chunkOwner":{"__isSmartRef__":true,"id":2678},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2688":{"morph":{"__isSmartRef__":true,"id":2678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2690":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2691":{"layoutText":{"__isSmartRef__":true,"id":2692}},"2692":{"varMapping":{"__isSmartRef__":true,"id":2693},"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":2694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2693":{"this":{"__isSmartRef__":true,"id":2678}},"2694":{},"2695":{"_Position":{"__isSmartRef__":true,"id":2696},"renderContextTable":{"__isSmartRef__":true,"id":2697},"_Extent":{"__isSmartRef__":true,"id":2698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2701":{"morph":{"__isSmartRef__":true,"id":2652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2702":{"resizeWidth":true},"2703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2705":{"updateExpanderColor":{"__isSmartRef__":true,"id":2706},"onMouseDown":{"__isSmartRef__":true,"id":2709},"onMouseUp":{"__isSmartRef__":true,"id":2716},"isRoot":{"__isSmartRef__":true,"id":2723},"displayValue":{"__isSmartRef__":true,"id":2726},"update":{"__isSmartRef__":true,"id":2729}},"2706":{"varMapping":{"__isSmartRef__":true,"id":2707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":2708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2707":{"this":{"__isSmartRef__":true,"id":2652}},"2708":{},"2709":{"varMapping":{"__isSmartRef__":true,"id":2710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2710":{"this":{"__isSmartRef__":true,"id":2652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2711}},"2711":{"$super":{"__isSmartRef__":true,"id":2712}},"2712":{"varMapping":{"__isSmartRef__":true,"id":2713},"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":2714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2713":{"obj":{"__isSmartRef__":true,"id":2652},"name":"onMouseDown"},"2714":{},"2715":{},"2716":{"varMapping":{"__isSmartRef__":true,"id":2717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2717":{"this":{"__isSmartRef__":true,"id":2652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2718}},"2718":{"$super":{"__isSmartRef__":true,"id":2719}},"2719":{"varMapping":{"__isSmartRef__":true,"id":2720},"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":2721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2720":{"obj":{"__isSmartRef__":true,"id":2652},"name":"onMouseUp"},"2721":{},"2722":{},"2723":{"varMapping":{"__isSmartRef__":true,"id":2724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2724":{"this":{"__isSmartRef__":true,"id":2652}},"2725":{},"2726":{"varMapping":{"__isSmartRef__":true,"id":2727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":2728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2727":{"this":{"__isSmartRef__":true,"id":2652}},"2728":{},"2729":{"varMapping":{"__isSmartRef__":true,"id":2730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2730":{"this":{"__isSmartRef__":true,"id":2652}},"2731":{},"2732":{"_Position":{"__isSmartRef__":true,"id":2733},"renderContextTable":{"__isSmartRef__":true,"id":2734},"_Extent":{"__isSmartRef__":true,"id":2735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2738":{"morph":{"__isSmartRef__":true,"id":2651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2739":{"layouter":{"__isSmartRef__":true,"id":2740},"resizeWidth":true},"2740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2742":{"x":0,"y":100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2744}},"2744":{"varMapping":{"__isSmartRef__":true,"id":2745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2745":{"this":{"__isSmartRef__":true,"id":2651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2746}},"2746":{"$super":{"__isSmartRef__":true,"id":2747}},"2747":{"varMapping":{"__isSmartRef__":true,"id":2748},"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":2749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2748":{"obj":{"__isSmartRef__":true,"id":2651},"name":"getLayoutableSubmorphs"},"2749":{},"2750":{},"2751":{"submorphs":[{"__isSmartRef__":true,"id":2752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2832},"id":73,"renderContextTable":{"__isSmartRef__":true,"id":2837},"eventHandler":{"__isSmartRef__":true,"id":2838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":2842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2752":{"submorphs":[{"__isSmartRef__":true,"id":2753},{"__isSmartRef__":true,"id":2778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2795},"id":70,"renderContextTable":{"__isSmartRef__":true,"id":2800},"eventHandler":{"__isSmartRef__":true,"id":2801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2802},"grabbingEnabled":false,"draggingEnabled":false,"data":"http://lively-kernel.org/repository/webwerkstatt/core/","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"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"codeBase","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2753},"text":{"__isSmartRef__":true,"id":2778},"owner":{"__isSmartRef__":true,"id":2751},"_Position":{"__isSmartRef__":true,"id":2803},"priorExtent":{"__isSmartRef__":true,"id":2804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2754},"id":71,"renderContextTable":{"__isSmartRef__":true,"id":2760},"eventHandler":{"__isSmartRef__":true,"id":2761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2754":{"_Position":{"__isSmartRef__":true,"id":2755},"renderContextTable":{"__isSmartRef__":true,"id":2756},"_Extent":{"__isSmartRef__":true,"id":2757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2761":{"morph":{"__isSmartRef__":true,"id":2753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2763":{"onMouseUp":{"__isSmartRef__":true,"id":2764},"toggle":{"__isSmartRef__":true,"id":2771}},"2764":{"varMapping":{"__isSmartRef__":true,"id":2765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2765":{"this":{"__isSmartRef__":true,"id":2753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2766}},"2766":{"$super":{"__isSmartRef__":true,"id":2767}},"2767":{"varMapping":{"__isSmartRef__":true,"id":2768},"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":2769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2768":{"obj":{"__isSmartRef__":true,"id":2753},"name":"onMouseUp"},"2769":{},"2770":{},"2771":{"varMapping":{"__isSmartRef__":true,"id":2772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2772":{"this":{"__isSmartRef__":true,"id":2753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2773}},"2773":{"$super":{"__isSmartRef__":true,"id":2774}},"2774":{"varMapping":{"__isSmartRef__":true,"id":2775},"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":2776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2775":{"obj":{"__isSmartRef__":true,"id":2753},"name":"toggle"},"2776":{},"2777":{},"2778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2779},"id":72,"renderContextTable":{"__isSmartRef__":true,"id":2783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2784},{"__isSmartRef__":true,"id":2786}],"eventHandler":{"__isSmartRef__":true,"id":2788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2789},"priorExtent":{"__isSmartRef__":true,"id":2790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2779":{"_Position":{"__isSmartRef__":true,"id":2780},"renderContextTable":{"__isSmartRef__":true,"id":2781},"_Extent":{"__isSmartRef__":true,"id":2782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2782":{"x":488,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2784":{"style":{"__isSmartRef__":true,"id":2785},"chunkOwner":{"__isSmartRef__":true,"id":2778},"storedString":"codeBase","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2786":{"style":{"__isSmartRef__":true,"id":2787},"chunkOwner":{"__isSmartRef__":true,"id":2778},"storedString":": http://lively-kernel.org/repository/webwerkstatt/core/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2788":{"morph":{"__isSmartRef__":true,"id":2778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2790":{"x":480,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2791":{"layoutText":{"__isSmartRef__":true,"id":2792}},"2792":{"varMapping":{"__isSmartRef__":true,"id":2793},"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":2794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2793":{"this":{"__isSmartRef__":true,"id":2778}},"2794":{},"2795":{"_Position":{"__isSmartRef__":true,"id":2796},"renderContextTable":{"__isSmartRef__":true,"id":2797},"_Extent":{"__isSmartRef__":true,"id":2798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2801":{"morph":{"__isSmartRef__":true,"id":2752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2802":{"resizeWidth":true},"2803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2805":{"updateExpanderColor":{"__isSmartRef__":true,"id":2806},"onMouseDown":{"__isSmartRef__":true,"id":2809},"onMouseUp":{"__isSmartRef__":true,"id":2816},"isRoot":{"__isSmartRef__":true,"id":2823},"displayValue":{"__isSmartRef__":true,"id":2826},"update":{"__isSmartRef__":true,"id":2829}},"2806":{"varMapping":{"__isSmartRef__":true,"id":2807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":2808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2807":{"this":{"__isSmartRef__":true,"id":2752}},"2808":{},"2809":{"varMapping":{"__isSmartRef__":true,"id":2810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2810":{"this":{"__isSmartRef__":true,"id":2752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2811}},"2811":{"$super":{"__isSmartRef__":true,"id":2812}},"2812":{"varMapping":{"__isSmartRef__":true,"id":2813},"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":2814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2813":{"obj":{"__isSmartRef__":true,"id":2752},"name":"onMouseDown"},"2814":{},"2815":{},"2816":{"varMapping":{"__isSmartRef__":true,"id":2817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2817":{"this":{"__isSmartRef__":true,"id":2752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2818}},"2818":{"$super":{"__isSmartRef__":true,"id":2819}},"2819":{"varMapping":{"__isSmartRef__":true,"id":2820},"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":2821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2820":{"obj":{"__isSmartRef__":true,"id":2752},"name":"onMouseUp"},"2821":{},"2822":{},"2823":{"varMapping":{"__isSmartRef__":true,"id":2824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2824":{"this":{"__isSmartRef__":true,"id":2752}},"2825":{},"2826":{"varMapping":{"__isSmartRef__":true,"id":2827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":2828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2827":{"this":{"__isSmartRef__":true,"id":2752}},"2828":{},"2829":{"varMapping":{"__isSmartRef__":true,"id":2830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2830":{"this":{"__isSmartRef__":true,"id":2752}},"2831":{},"2832":{"_Position":{"__isSmartRef__":true,"id":2833},"renderContextTable":{"__isSmartRef__":true,"id":2834},"_Extent":{"__isSmartRef__":true,"id":2835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2838":{"morph":{"__isSmartRef__":true,"id":2751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2839":{"layouter":{"__isSmartRef__":true,"id":2840},"resizeWidth":true},"2840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2842":{"x":0,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2844}},"2844":{"varMapping":{"__isSmartRef__":true,"id":2845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2845":{"this":{"__isSmartRef__":true,"id":2751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2846}},"2846":{"$super":{"__isSmartRef__":true,"id":2847}},"2847":{"varMapping":{"__isSmartRef__":true,"id":2848},"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":2849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2848":{"obj":{"__isSmartRef__":true,"id":2751},"name":"getLayoutableSubmorphs"},"2849":{},"2850":{},"2851":{"submorphs":[{"__isSmartRef__":true,"id":2852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2932},"id":77,"renderContextTable":{"__isSmartRef__":true,"id":2937},"eventHandler":{"__isSmartRef__":true,"id":2938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":2942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2852":{"submorphs":[{"__isSmartRef__":true,"id":2853},{"__isSmartRef__":true,"id":2878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2895},"id":74,"renderContextTable":{"__isSmartRef__":true,"id":2900},"eventHandler":{"__isSmartRef__":true,"id":2901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2902},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"confirmNavigation","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2853},"text":{"__isSmartRef__":true,"id":2878},"owner":{"__isSmartRef__":true,"id":2851},"_Position":{"__isSmartRef__":true,"id":2903},"priorExtent":{"__isSmartRef__":true,"id":2904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2854},"id":75,"renderContextTable":{"__isSmartRef__":true,"id":2860},"eventHandler":{"__isSmartRef__":true,"id":2861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2854":{"_Position":{"__isSmartRef__":true,"id":2855},"renderContextTable":{"__isSmartRef__":true,"id":2856},"_Extent":{"__isSmartRef__":true,"id":2857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2861":{"morph":{"__isSmartRef__":true,"id":2853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2863":{"onMouseUp":{"__isSmartRef__":true,"id":2864},"toggle":{"__isSmartRef__":true,"id":2871}},"2864":{"varMapping":{"__isSmartRef__":true,"id":2865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2865":{"this":{"__isSmartRef__":true,"id":2853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2866}},"2866":{"$super":{"__isSmartRef__":true,"id":2867}},"2867":{"varMapping":{"__isSmartRef__":true,"id":2868},"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":2869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2868":{"obj":{"__isSmartRef__":true,"id":2853},"name":"onMouseUp"},"2869":{},"2870":{},"2871":{"varMapping":{"__isSmartRef__":true,"id":2872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2872":{"this":{"__isSmartRef__":true,"id":2853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2873}},"2873":{"$super":{"__isSmartRef__":true,"id":2874}},"2874":{"varMapping":{"__isSmartRef__":true,"id":2875},"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":2876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2875":{"obj":{"__isSmartRef__":true,"id":2853},"name":"toggle"},"2876":{},"2877":{},"2878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2879},"id":76,"renderContextTable":{"__isSmartRef__":true,"id":2883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2884},{"__isSmartRef__":true,"id":2886}],"eventHandler":{"__isSmartRef__":true,"id":2888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2889},"priorExtent":{"__isSmartRef__":true,"id":2890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2879":{"_Position":{"__isSmartRef__":true,"id":2880},"renderContextTable":{"__isSmartRef__":true,"id":2881},"_Extent":{"__isSmartRef__":true,"id":2882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2882":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2884":{"style":{"__isSmartRef__":true,"id":2885},"chunkOwner":{"__isSmartRef__":true,"id":2878},"storedString":"confirmNavigation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2886":{"style":{"__isSmartRef__":true,"id":2887},"chunkOwner":{"__isSmartRef__":true,"id":2878},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2888":{"morph":{"__isSmartRef__":true,"id":2878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2890":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2891":{"layoutText":{"__isSmartRef__":true,"id":2892}},"2892":{"varMapping":{"__isSmartRef__":true,"id":2893},"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":2894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2893":{"this":{"__isSmartRef__":true,"id":2878}},"2894":{},"2895":{"_Position":{"__isSmartRef__":true,"id":2896},"renderContextTable":{"__isSmartRef__":true,"id":2897},"_Extent":{"__isSmartRef__":true,"id":2898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2901":{"morph":{"__isSmartRef__":true,"id":2852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2902":{"resizeWidth":true},"2903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2905":{"updateExpanderColor":{"__isSmartRef__":true,"id":2906},"onMouseDown":{"__isSmartRef__":true,"id":2909},"onMouseUp":{"__isSmartRef__":true,"id":2916},"isRoot":{"__isSmartRef__":true,"id":2923},"displayValue":{"__isSmartRef__":true,"id":2926},"update":{"__isSmartRef__":true,"id":2929}},"2906":{"varMapping":{"__isSmartRef__":true,"id":2907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":2908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2907":{"this":{"__isSmartRef__":true,"id":2852}},"2908":{},"2909":{"varMapping":{"__isSmartRef__":true,"id":2910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2910":{"this":{"__isSmartRef__":true,"id":2852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2911}},"2911":{"$super":{"__isSmartRef__":true,"id":2912}},"2912":{"varMapping":{"__isSmartRef__":true,"id":2913},"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":2914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2913":{"obj":{"__isSmartRef__":true,"id":2852},"name":"onMouseDown"},"2914":{},"2915":{},"2916":{"varMapping":{"__isSmartRef__":true,"id":2917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2917":{"this":{"__isSmartRef__":true,"id":2852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2918}},"2918":{"$super":{"__isSmartRef__":true,"id":2919}},"2919":{"varMapping":{"__isSmartRef__":true,"id":2920},"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":2921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2920":{"obj":{"__isSmartRef__":true,"id":2852},"name":"onMouseUp"},"2921":{},"2922":{},"2923":{"varMapping":{"__isSmartRef__":true,"id":2924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2924":{"this":{"__isSmartRef__":true,"id":2852}},"2925":{},"2926":{"varMapping":{"__isSmartRef__":true,"id":2927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":2928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2927":{"this":{"__isSmartRef__":true,"id":2852}},"2928":{},"2929":{"varMapping":{"__isSmartRef__":true,"id":2930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2930":{"this":{"__isSmartRef__":true,"id":2852}},"2931":{},"2932":{"_Position":{"__isSmartRef__":true,"id":2933},"renderContextTable":{"__isSmartRef__":true,"id":2934},"_Extent":{"__isSmartRef__":true,"id":2935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2938":{"morph":{"__isSmartRef__":true,"id":2851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2939":{"layouter":{"__isSmartRef__":true,"id":2940},"resizeWidth":true},"2940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2942":{"x":0,"y":140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2944}},"2944":{"varMapping":{"__isSmartRef__":true,"id":2945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2945":{"this":{"__isSmartRef__":true,"id":2851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2946}},"2946":{"$super":{"__isSmartRef__":true,"id":2947}},"2947":{"varMapping":{"__isSmartRef__":true,"id":2948},"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":2949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2948":{"obj":{"__isSmartRef__":true,"id":2851},"name":"getLayoutableSubmorphs"},"2949":{},"2950":{},"2951":{"submorphs":[{"__isSmartRef__":true,"id":2952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3032},"id":81,"renderContextTable":{"__isSmartRef__":true,"id":3037},"eventHandler":{"__isSmartRef__":true,"id":3038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2952":{"submorphs":[{"__isSmartRef__":true,"id":2953},{"__isSmartRef__":true,"id":2978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2995},"id":78,"renderContextTable":{"__isSmartRef__":true,"id":3000},"eventHandler":{"__isSmartRef__":true,"id":3001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3002},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"copDynamicInlining","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":2953},"text":{"__isSmartRef__":true,"id":2978},"owner":{"__isSmartRef__":true,"id":2951},"_Position":{"__isSmartRef__":true,"id":3003},"priorExtent":{"__isSmartRef__":true,"id":3004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2954},"id":79,"renderContextTable":{"__isSmartRef__":true,"id":2960},"eventHandler":{"__isSmartRef__":true,"id":2961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2954":{"_Position":{"__isSmartRef__":true,"id":2955},"renderContextTable":{"__isSmartRef__":true,"id":2956},"_Extent":{"__isSmartRef__":true,"id":2957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":2959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2961":{"morph":{"__isSmartRef__":true,"id":2953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2963":{"onMouseUp":{"__isSmartRef__":true,"id":2964},"toggle":{"__isSmartRef__":true,"id":2971}},"2964":{"varMapping":{"__isSmartRef__":true,"id":2965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":2970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2965":{"this":{"__isSmartRef__":true,"id":2953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2966}},"2966":{"$super":{"__isSmartRef__":true,"id":2967}},"2967":{"varMapping":{"__isSmartRef__":true,"id":2968},"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":2969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2968":{"obj":{"__isSmartRef__":true,"id":2953},"name":"onMouseUp"},"2969":{},"2970":{},"2971":{"varMapping":{"__isSmartRef__":true,"id":2972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":2977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2972":{"this":{"__isSmartRef__":true,"id":2953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2973}},"2973":{"$super":{"__isSmartRef__":true,"id":2974}},"2974":{"varMapping":{"__isSmartRef__":true,"id":2975},"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":2976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2975":{"obj":{"__isSmartRef__":true,"id":2953},"name":"toggle"},"2976":{},"2977":{},"2978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2979},"id":80,"renderContextTable":{"__isSmartRef__":true,"id":2983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2984},{"__isSmartRef__":true,"id":2986}],"eventHandler":{"__isSmartRef__":true,"id":2988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2989},"priorExtent":{"__isSmartRef__":true,"id":2990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2979":{"_Position":{"__isSmartRef__":true,"id":2980},"renderContextTable":{"__isSmartRef__":true,"id":2981},"_Extent":{"__isSmartRef__":true,"id":2982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2984":{"style":{"__isSmartRef__":true,"id":2985},"chunkOwner":{"__isSmartRef__":true,"id":2978},"storedString":"copDynamicInlining","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2986":{"style":{"__isSmartRef__":true,"id":2987},"chunkOwner":{"__isSmartRef__":true,"id":2978},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2988":{"morph":{"__isSmartRef__":true,"id":2978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2990":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2991":{"layoutText":{"__isSmartRef__":true,"id":2992}},"2992":{"varMapping":{"__isSmartRef__":true,"id":2993},"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":2994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2993":{"this":{"__isSmartRef__":true,"id":2978}},"2994":{},"2995":{"_Position":{"__isSmartRef__":true,"id":2996},"renderContextTable":{"__isSmartRef__":true,"id":2997},"_Extent":{"__isSmartRef__":true,"id":2998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3001":{"morph":{"__isSmartRef__":true,"id":2952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3002":{"resizeWidth":true},"3003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3005":{"updateExpanderColor":{"__isSmartRef__":true,"id":3006},"onMouseDown":{"__isSmartRef__":true,"id":3009},"onMouseUp":{"__isSmartRef__":true,"id":3016},"isRoot":{"__isSmartRef__":true,"id":3023},"displayValue":{"__isSmartRef__":true,"id":3026},"update":{"__isSmartRef__":true,"id":3029}},"3006":{"varMapping":{"__isSmartRef__":true,"id":3007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3007":{"this":{"__isSmartRef__":true,"id":2952}},"3008":{},"3009":{"varMapping":{"__isSmartRef__":true,"id":3010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3010":{"this":{"__isSmartRef__":true,"id":2952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3011}},"3011":{"$super":{"__isSmartRef__":true,"id":3012}},"3012":{"varMapping":{"__isSmartRef__":true,"id":3013},"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":3014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3013":{"obj":{"__isSmartRef__":true,"id":2952},"name":"onMouseDown"},"3014":{},"3015":{},"3016":{"varMapping":{"__isSmartRef__":true,"id":3017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3017":{"this":{"__isSmartRef__":true,"id":2952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3018}},"3018":{"$super":{"__isSmartRef__":true,"id":3019}},"3019":{"varMapping":{"__isSmartRef__":true,"id":3020},"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":3021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3020":{"obj":{"__isSmartRef__":true,"id":2952},"name":"onMouseUp"},"3021":{},"3022":{},"3023":{"varMapping":{"__isSmartRef__":true,"id":3024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3024":{"this":{"__isSmartRef__":true,"id":2952}},"3025":{},"3026":{"varMapping":{"__isSmartRef__":true,"id":3027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3027":{"this":{"__isSmartRef__":true,"id":2952}},"3028":{},"3029":{"varMapping":{"__isSmartRef__":true,"id":3030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3030":{"this":{"__isSmartRef__":true,"id":2952}},"3031":{},"3032":{"_Position":{"__isSmartRef__":true,"id":3033},"renderContextTable":{"__isSmartRef__":true,"id":3034},"_Extent":{"__isSmartRef__":true,"id":3035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3038":{"morph":{"__isSmartRef__":true,"id":2951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3039":{"layouter":{"__isSmartRef__":true,"id":3040},"resizeWidth":true},"3040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3042":{"x":0,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3044}},"3044":{"varMapping":{"__isSmartRef__":true,"id":3045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3045":{"this":{"__isSmartRef__":true,"id":2951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3046}},"3046":{"$super":{"__isSmartRef__":true,"id":3047}},"3047":{"varMapping":{"__isSmartRef__":true,"id":3048},"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":3049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3048":{"obj":{"__isSmartRef__":true,"id":2951},"name":"getLayoutableSubmorphs"},"3049":{},"3050":{},"3051":{"submorphs":[{"__isSmartRef__":true,"id":3052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3132},"id":85,"renderContextTable":{"__isSmartRef__":true,"id":3137},"eventHandler":{"__isSmartRef__":true,"id":3138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3052":{"submorphs":[{"__isSmartRef__":true,"id":3053},{"__isSmartRef__":true,"id":3078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3095},"id":82,"renderContextTable":{"__isSmartRef__":true,"id":3100},"eventHandler":{"__isSmartRef__":true,"id":3101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3102},"grabbingEnabled":false,"draggingEnabled":false,"data":"http://lively-kernel.org/couchdb","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"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"couchDBURL","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3053},"text":{"__isSmartRef__":true,"id":3078},"owner":{"__isSmartRef__":true,"id":3051},"_Position":{"__isSmartRef__":true,"id":3103},"priorExtent":{"__isSmartRef__":true,"id":3104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3054},"id":83,"renderContextTable":{"__isSmartRef__":true,"id":3060},"eventHandler":{"__isSmartRef__":true,"id":3061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3054":{"_Position":{"__isSmartRef__":true,"id":3055},"renderContextTable":{"__isSmartRef__":true,"id":3056},"_Extent":{"__isSmartRef__":true,"id":3057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3061":{"morph":{"__isSmartRef__":true,"id":3053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3063":{"onMouseUp":{"__isSmartRef__":true,"id":3064},"toggle":{"__isSmartRef__":true,"id":3071}},"3064":{"varMapping":{"__isSmartRef__":true,"id":3065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3065":{"this":{"__isSmartRef__":true,"id":3053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3066}},"3066":{"$super":{"__isSmartRef__":true,"id":3067}},"3067":{"varMapping":{"__isSmartRef__":true,"id":3068},"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":3069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3068":{"obj":{"__isSmartRef__":true,"id":3053},"name":"onMouseUp"},"3069":{},"3070":{},"3071":{"varMapping":{"__isSmartRef__":true,"id":3072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3072":{"this":{"__isSmartRef__":true,"id":3053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3073}},"3073":{"$super":{"__isSmartRef__":true,"id":3074}},"3074":{"varMapping":{"__isSmartRef__":true,"id":3075},"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":3076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3075":{"obj":{"__isSmartRef__":true,"id":3053},"name":"toggle"},"3076":{},"3077":{},"3078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3079},"id":84,"renderContextTable":{"__isSmartRef__":true,"id":3083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3084},{"__isSmartRef__":true,"id":3086}],"eventHandler":{"__isSmartRef__":true,"id":3088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3089},"priorExtent":{"__isSmartRef__":true,"id":3090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3079":{"_Position":{"__isSmartRef__":true,"id":3080},"renderContextTable":{"__isSmartRef__":true,"id":3081},"_Extent":{"__isSmartRef__":true,"id":3082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3082":{"x":338,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3084":{"style":{"__isSmartRef__":true,"id":3085},"chunkOwner":{"__isSmartRef__":true,"id":3078},"storedString":"couchDBURL","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3086":{"style":{"__isSmartRef__":true,"id":3087},"chunkOwner":{"__isSmartRef__":true,"id":3078},"storedString":": http://lively-kernel.org/couchdb","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3088":{"morph":{"__isSmartRef__":true,"id":3078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3090":{"x":330,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3091":{"layoutText":{"__isSmartRef__":true,"id":3092}},"3092":{"varMapping":{"__isSmartRef__":true,"id":3093},"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":3094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3093":{"this":{"__isSmartRef__":true,"id":3078}},"3094":{},"3095":{"_Position":{"__isSmartRef__":true,"id":3096},"renderContextTable":{"__isSmartRef__":true,"id":3097},"_Extent":{"__isSmartRef__":true,"id":3098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3101":{"morph":{"__isSmartRef__":true,"id":3052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3102":{"resizeWidth":true},"3103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3105":{"updateExpanderColor":{"__isSmartRef__":true,"id":3106},"onMouseDown":{"__isSmartRef__":true,"id":3109},"onMouseUp":{"__isSmartRef__":true,"id":3116},"isRoot":{"__isSmartRef__":true,"id":3123},"displayValue":{"__isSmartRef__":true,"id":3126},"update":{"__isSmartRef__":true,"id":3129}},"3106":{"varMapping":{"__isSmartRef__":true,"id":3107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3107":{"this":{"__isSmartRef__":true,"id":3052}},"3108":{},"3109":{"varMapping":{"__isSmartRef__":true,"id":3110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3110":{"this":{"__isSmartRef__":true,"id":3052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3111}},"3111":{"$super":{"__isSmartRef__":true,"id":3112}},"3112":{"varMapping":{"__isSmartRef__":true,"id":3113},"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":3114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3113":{"obj":{"__isSmartRef__":true,"id":3052},"name":"onMouseDown"},"3114":{},"3115":{},"3116":{"varMapping":{"__isSmartRef__":true,"id":3117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3117":{"this":{"__isSmartRef__":true,"id":3052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3118}},"3118":{"$super":{"__isSmartRef__":true,"id":3119}},"3119":{"varMapping":{"__isSmartRef__":true,"id":3120},"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":3121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3120":{"obj":{"__isSmartRef__":true,"id":3052},"name":"onMouseUp"},"3121":{},"3122":{},"3123":{"varMapping":{"__isSmartRef__":true,"id":3124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3124":{"this":{"__isSmartRef__":true,"id":3052}},"3125":{},"3126":{"varMapping":{"__isSmartRef__":true,"id":3127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3127":{"this":{"__isSmartRef__":true,"id":3052}},"3128":{},"3129":{"varMapping":{"__isSmartRef__":true,"id":3130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3130":{"this":{"__isSmartRef__":true,"id":3052}},"3131":{},"3132":{"_Position":{"__isSmartRef__":true,"id":3133},"renderContextTable":{"__isSmartRef__":true,"id":3134},"_Extent":{"__isSmartRef__":true,"id":3135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3138":{"morph":{"__isSmartRef__":true,"id":3051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3139":{"layouter":{"__isSmartRef__":true,"id":3140},"resizeWidth":true},"3140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3142":{"x":0,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3144}},"3144":{"varMapping":{"__isSmartRef__":true,"id":3145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3145":{"this":{"__isSmartRef__":true,"id":3051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3146}},"3146":{"$super":{"__isSmartRef__":true,"id":3147}},"3147":{"varMapping":{"__isSmartRef__":true,"id":3148},"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":3149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3148":{"obj":{"__isSmartRef__":true,"id":3051},"name":"getLayoutableSubmorphs"},"3149":{},"3150":{},"3151":{"submorphs":[{"__isSmartRef__":true,"id":3152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3232},"id":89,"renderContextTable":{"__isSmartRef__":true,"id":3237},"eventHandler":{"__isSmartRef__":true,"id":3238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3152":{"submorphs":[{"__isSmartRef__":true,"id":3153},{"__isSmartRef__":true,"id":3178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3195},"id":86,"renderContextTable":{"__isSmartRef__":true,"id":3200},"eventHandler":{"__isSmartRef__":true,"id":3201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3202},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"createNewWorld","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3153},"text":{"__isSmartRef__":true,"id":3178},"owner":{"__isSmartRef__":true,"id":3151},"_Position":{"__isSmartRef__":true,"id":3203},"priorExtent":{"__isSmartRef__":true,"id":3204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3154},"id":87,"renderContextTable":{"__isSmartRef__":true,"id":3160},"eventHandler":{"__isSmartRef__":true,"id":3161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3154":{"_Position":{"__isSmartRef__":true,"id":3155},"renderContextTable":{"__isSmartRef__":true,"id":3156},"_Extent":{"__isSmartRef__":true,"id":3157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3161":{"morph":{"__isSmartRef__":true,"id":3153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3163":{"onMouseUp":{"__isSmartRef__":true,"id":3164},"toggle":{"__isSmartRef__":true,"id":3171}},"3164":{"varMapping":{"__isSmartRef__":true,"id":3165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3165":{"this":{"__isSmartRef__":true,"id":3153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3166}},"3166":{"$super":{"__isSmartRef__":true,"id":3167}},"3167":{"varMapping":{"__isSmartRef__":true,"id":3168},"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":3169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3168":{"obj":{"__isSmartRef__":true,"id":3153},"name":"onMouseUp"},"3169":{},"3170":{},"3171":{"varMapping":{"__isSmartRef__":true,"id":3172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3172":{"this":{"__isSmartRef__":true,"id":3153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3173}},"3173":{"$super":{"__isSmartRef__":true,"id":3174}},"3174":{"varMapping":{"__isSmartRef__":true,"id":3175},"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":3176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3175":{"obj":{"__isSmartRef__":true,"id":3153},"name":"toggle"},"3176":{},"3177":{},"3178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3179},"id":88,"renderContextTable":{"__isSmartRef__":true,"id":3183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3184},{"__isSmartRef__":true,"id":3186}],"eventHandler":{"__isSmartRef__":true,"id":3188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3189},"priorExtent":{"__isSmartRef__":true,"id":3190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3179":{"_Position":{"__isSmartRef__":true,"id":3180},"renderContextTable":{"__isSmartRef__":true,"id":3181},"_Extent":{"__isSmartRef__":true,"id":3182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3182":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3184":{"style":{"__isSmartRef__":true,"id":3185},"chunkOwner":{"__isSmartRef__":true,"id":3178},"storedString":"createNewWorld","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3186":{"style":{"__isSmartRef__":true,"id":3187},"chunkOwner":{"__isSmartRef__":true,"id":3178},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3188":{"morph":{"__isSmartRef__":true,"id":3178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3190":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3191":{"layoutText":{"__isSmartRef__":true,"id":3192}},"3192":{"varMapping":{"__isSmartRef__":true,"id":3193},"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":3194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3193":{"this":{"__isSmartRef__":true,"id":3178}},"3194":{},"3195":{"_Position":{"__isSmartRef__":true,"id":3196},"renderContextTable":{"__isSmartRef__":true,"id":3197},"_Extent":{"__isSmartRef__":true,"id":3198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3201":{"morph":{"__isSmartRef__":true,"id":3152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3202":{"resizeWidth":true},"3203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3205":{"updateExpanderColor":{"__isSmartRef__":true,"id":3206},"onMouseDown":{"__isSmartRef__":true,"id":3209},"onMouseUp":{"__isSmartRef__":true,"id":3216},"isRoot":{"__isSmartRef__":true,"id":3223},"displayValue":{"__isSmartRef__":true,"id":3226},"update":{"__isSmartRef__":true,"id":3229}},"3206":{"varMapping":{"__isSmartRef__":true,"id":3207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3207":{"this":{"__isSmartRef__":true,"id":3152}},"3208":{},"3209":{"varMapping":{"__isSmartRef__":true,"id":3210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3210":{"this":{"__isSmartRef__":true,"id":3152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3211}},"3211":{"$super":{"__isSmartRef__":true,"id":3212}},"3212":{"varMapping":{"__isSmartRef__":true,"id":3213},"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":3214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3213":{"obj":{"__isSmartRef__":true,"id":3152},"name":"onMouseDown"},"3214":{},"3215":{},"3216":{"varMapping":{"__isSmartRef__":true,"id":3217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3217":{"this":{"__isSmartRef__":true,"id":3152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3218}},"3218":{"$super":{"__isSmartRef__":true,"id":3219}},"3219":{"varMapping":{"__isSmartRef__":true,"id":3220},"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":3221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3220":{"obj":{"__isSmartRef__":true,"id":3152},"name":"onMouseUp"},"3221":{},"3222":{},"3223":{"varMapping":{"__isSmartRef__":true,"id":3224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3224":{"this":{"__isSmartRef__":true,"id":3152}},"3225":{},"3226":{"varMapping":{"__isSmartRef__":true,"id":3227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3227":{"this":{"__isSmartRef__":true,"id":3152}},"3228":{},"3229":{"varMapping":{"__isSmartRef__":true,"id":3230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3230":{"this":{"__isSmartRef__":true,"id":3152}},"3231":{},"3232":{"_Position":{"__isSmartRef__":true,"id":3233},"renderContextTable":{"__isSmartRef__":true,"id":3234},"_Extent":{"__isSmartRef__":true,"id":3235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3238":{"morph":{"__isSmartRef__":true,"id":3151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3239":{"layouter":{"__isSmartRef__":true,"id":3240},"resizeWidth":true},"3240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3242":{"x":0,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3244}},"3244":{"varMapping":{"__isSmartRef__":true,"id":3245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3245":{"this":{"__isSmartRef__":true,"id":3151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3246}},"3246":{"$super":{"__isSmartRef__":true,"id":3247}},"3247":{"varMapping":{"__isSmartRef__":true,"id":3248},"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":3249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3248":{"obj":{"__isSmartRef__":true,"id":3151},"name":"getLayoutableSubmorphs"},"3249":{},"3250":{},"3251":{"submorphs":[{"__isSmartRef__":true,"id":3252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3332},"id":93,"renderContextTable":{"__isSmartRef__":true,"id":3337},"eventHandler":{"__isSmartRef__":true,"id":3338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3252":{"submorphs":[{"__isSmartRef__":true,"id":3253},{"__isSmartRef__":true,"id":3278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3295},"id":90,"renderContextTable":{"__isSmartRef__":true,"id":3300},"eventHandler":{"__isSmartRef__":true,"id":3301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3302},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"debugConnect","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3253},"text":{"__isSmartRef__":true,"id":3278},"owner":{"__isSmartRef__":true,"id":3251},"_Position":{"__isSmartRef__":true,"id":3303},"priorExtent":{"__isSmartRef__":true,"id":3304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3254},"id":91,"renderContextTable":{"__isSmartRef__":true,"id":3260},"eventHandler":{"__isSmartRef__":true,"id":3261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3254":{"_Position":{"__isSmartRef__":true,"id":3255},"renderContextTable":{"__isSmartRef__":true,"id":3256},"_Extent":{"__isSmartRef__":true,"id":3257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3261":{"morph":{"__isSmartRef__":true,"id":3253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3263":{"onMouseUp":{"__isSmartRef__":true,"id":3264},"toggle":{"__isSmartRef__":true,"id":3271}},"3264":{"varMapping":{"__isSmartRef__":true,"id":3265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3265":{"this":{"__isSmartRef__":true,"id":3253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3266}},"3266":{"$super":{"__isSmartRef__":true,"id":3267}},"3267":{"varMapping":{"__isSmartRef__":true,"id":3268},"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":3269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3268":{"obj":{"__isSmartRef__":true,"id":3253},"name":"onMouseUp"},"3269":{},"3270":{},"3271":{"varMapping":{"__isSmartRef__":true,"id":3272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3272":{"this":{"__isSmartRef__":true,"id":3253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3273}},"3273":{"$super":{"__isSmartRef__":true,"id":3274}},"3274":{"varMapping":{"__isSmartRef__":true,"id":3275},"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":3276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3275":{"obj":{"__isSmartRef__":true,"id":3253},"name":"toggle"},"3276":{},"3277":{},"3278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3279},"id":92,"renderContextTable":{"__isSmartRef__":true,"id":3283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3284},{"__isSmartRef__":true,"id":3286}],"eventHandler":{"__isSmartRef__":true,"id":3288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3289},"priorExtent":{"__isSmartRef__":true,"id":3290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3279":{"_Position":{"__isSmartRef__":true,"id":3280},"renderContextTable":{"__isSmartRef__":true,"id":3281},"_Extent":{"__isSmartRef__":true,"id":3282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3282":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3284":{"style":{"__isSmartRef__":true,"id":3285},"chunkOwner":{"__isSmartRef__":true,"id":3278},"storedString":"debugConnect","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3286":{"style":{"__isSmartRef__":true,"id":3287},"chunkOwner":{"__isSmartRef__":true,"id":3278},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3288":{"morph":{"__isSmartRef__":true,"id":3278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3290":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3291":{"layoutText":{"__isSmartRef__":true,"id":3292}},"3292":{"varMapping":{"__isSmartRef__":true,"id":3293},"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":3294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3293":{"this":{"__isSmartRef__":true,"id":3278}},"3294":{},"3295":{"_Position":{"__isSmartRef__":true,"id":3296},"renderContextTable":{"__isSmartRef__":true,"id":3297},"_Extent":{"__isSmartRef__":true,"id":3298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3301":{"morph":{"__isSmartRef__":true,"id":3252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3302":{"resizeWidth":true},"3303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3305":{"updateExpanderColor":{"__isSmartRef__":true,"id":3306},"onMouseDown":{"__isSmartRef__":true,"id":3309},"onMouseUp":{"__isSmartRef__":true,"id":3316},"isRoot":{"__isSmartRef__":true,"id":3323},"displayValue":{"__isSmartRef__":true,"id":3326},"update":{"__isSmartRef__":true,"id":3329}},"3306":{"varMapping":{"__isSmartRef__":true,"id":3307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3307":{"this":{"__isSmartRef__":true,"id":3252}},"3308":{},"3309":{"varMapping":{"__isSmartRef__":true,"id":3310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3310":{"this":{"__isSmartRef__":true,"id":3252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3311}},"3311":{"$super":{"__isSmartRef__":true,"id":3312}},"3312":{"varMapping":{"__isSmartRef__":true,"id":3313},"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":3314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3313":{"obj":{"__isSmartRef__":true,"id":3252},"name":"onMouseDown"},"3314":{},"3315":{},"3316":{"varMapping":{"__isSmartRef__":true,"id":3317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3317":{"this":{"__isSmartRef__":true,"id":3252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3318}},"3318":{"$super":{"__isSmartRef__":true,"id":3319}},"3319":{"varMapping":{"__isSmartRef__":true,"id":3320},"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":3321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3320":{"obj":{"__isSmartRef__":true,"id":3252},"name":"onMouseUp"},"3321":{},"3322":{},"3323":{"varMapping":{"__isSmartRef__":true,"id":3324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3324":{"this":{"__isSmartRef__":true,"id":3252}},"3325":{},"3326":{"varMapping":{"__isSmartRef__":true,"id":3327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3327":{"this":{"__isSmartRef__":true,"id":3252}},"3328":{},"3329":{"varMapping":{"__isSmartRef__":true,"id":3330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3330":{"this":{"__isSmartRef__":true,"id":3252}},"3331":{},"3332":{"_Position":{"__isSmartRef__":true,"id":3333},"renderContextTable":{"__isSmartRef__":true,"id":3334},"_Extent":{"__isSmartRef__":true,"id":3335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3338":{"morph":{"__isSmartRef__":true,"id":3251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3339":{"layouter":{"__isSmartRef__":true,"id":3340},"resizeWidth":true},"3340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3342":{"x":0,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3344}},"3344":{"varMapping":{"__isSmartRef__":true,"id":3345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3345":{"this":{"__isSmartRef__":true,"id":3251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3346}},"3346":{"$super":{"__isSmartRef__":true,"id":3347}},"3347":{"varMapping":{"__isSmartRef__":true,"id":3348},"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":3349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3348":{"obj":{"__isSmartRef__":true,"id":3251},"name":"getLayoutableSubmorphs"},"3349":{},"3350":{},"3351":{"submorphs":[{"__isSmartRef__":true,"id":3352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3432},"id":97,"renderContextTable":{"__isSmartRef__":true,"id":3437},"eventHandler":{"__isSmartRef__":true,"id":3438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3352":{"submorphs":[{"__isSmartRef__":true,"id":3353},{"__isSmartRef__":true,"id":3378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3395},"id":94,"renderContextTable":{"__isSmartRef__":true,"id":3400},"eventHandler":{"__isSmartRef__":true,"id":3401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3402},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"debugExtras","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3353},"text":{"__isSmartRef__":true,"id":3378},"owner":{"__isSmartRef__":true,"id":3351},"_Position":{"__isSmartRef__":true,"id":3403},"priorExtent":{"__isSmartRef__":true,"id":3404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3354},"id":95,"renderContextTable":{"__isSmartRef__":true,"id":3360},"eventHandler":{"__isSmartRef__":true,"id":3361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3354":{"_Position":{"__isSmartRef__":true,"id":3355},"renderContextTable":{"__isSmartRef__":true,"id":3356},"_Extent":{"__isSmartRef__":true,"id":3357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3361":{"morph":{"__isSmartRef__":true,"id":3353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3363":{"onMouseUp":{"__isSmartRef__":true,"id":3364},"toggle":{"__isSmartRef__":true,"id":3371}},"3364":{"varMapping":{"__isSmartRef__":true,"id":3365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3365":{"this":{"__isSmartRef__":true,"id":3353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3366}},"3366":{"$super":{"__isSmartRef__":true,"id":3367}},"3367":{"varMapping":{"__isSmartRef__":true,"id":3368},"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":3369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3368":{"obj":{"__isSmartRef__":true,"id":3353},"name":"onMouseUp"},"3369":{},"3370":{},"3371":{"varMapping":{"__isSmartRef__":true,"id":3372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3372":{"this":{"__isSmartRef__":true,"id":3353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3373}},"3373":{"$super":{"__isSmartRef__":true,"id":3374}},"3374":{"varMapping":{"__isSmartRef__":true,"id":3375},"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":3376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3375":{"obj":{"__isSmartRef__":true,"id":3353},"name":"toggle"},"3376":{},"3377":{},"3378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3379},"id":96,"renderContextTable":{"__isSmartRef__":true,"id":3383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3384},{"__isSmartRef__":true,"id":3386}],"eventHandler":{"__isSmartRef__":true,"id":3388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3389},"priorExtent":{"__isSmartRef__":true,"id":3390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3379":{"_Position":{"__isSmartRef__":true,"id":3380},"renderContextTable":{"__isSmartRef__":true,"id":3381},"_Extent":{"__isSmartRef__":true,"id":3382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3382":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3384":{"style":{"__isSmartRef__":true,"id":3385},"chunkOwner":{"__isSmartRef__":true,"id":3378},"storedString":"debugExtras","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3386":{"style":{"__isSmartRef__":true,"id":3387},"chunkOwner":{"__isSmartRef__":true,"id":3378},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3388":{"morph":{"__isSmartRef__":true,"id":3378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3390":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3391":{"layoutText":{"__isSmartRef__":true,"id":3392}},"3392":{"varMapping":{"__isSmartRef__":true,"id":3393},"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":3394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3393":{"this":{"__isSmartRef__":true,"id":3378}},"3394":{},"3395":{"_Position":{"__isSmartRef__":true,"id":3396},"renderContextTable":{"__isSmartRef__":true,"id":3397},"_Extent":{"__isSmartRef__":true,"id":3398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3401":{"morph":{"__isSmartRef__":true,"id":3352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3402":{"resizeWidth":true},"3403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3405":{"updateExpanderColor":{"__isSmartRef__":true,"id":3406},"onMouseDown":{"__isSmartRef__":true,"id":3409},"onMouseUp":{"__isSmartRef__":true,"id":3416},"isRoot":{"__isSmartRef__":true,"id":3423},"displayValue":{"__isSmartRef__":true,"id":3426},"update":{"__isSmartRef__":true,"id":3429}},"3406":{"varMapping":{"__isSmartRef__":true,"id":3407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3407":{"this":{"__isSmartRef__":true,"id":3352}},"3408":{},"3409":{"varMapping":{"__isSmartRef__":true,"id":3410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3410":{"this":{"__isSmartRef__":true,"id":3352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3411}},"3411":{"$super":{"__isSmartRef__":true,"id":3412}},"3412":{"varMapping":{"__isSmartRef__":true,"id":3413},"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":3414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3413":{"obj":{"__isSmartRef__":true,"id":3352},"name":"onMouseDown"},"3414":{},"3415":{},"3416":{"varMapping":{"__isSmartRef__":true,"id":3417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3417":{"this":{"__isSmartRef__":true,"id":3352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3418}},"3418":{"$super":{"__isSmartRef__":true,"id":3419}},"3419":{"varMapping":{"__isSmartRef__":true,"id":3420},"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":3421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3420":{"obj":{"__isSmartRef__":true,"id":3352},"name":"onMouseUp"},"3421":{},"3422":{},"3423":{"varMapping":{"__isSmartRef__":true,"id":3424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3424":{"this":{"__isSmartRef__":true,"id":3352}},"3425":{},"3426":{"varMapping":{"__isSmartRef__":true,"id":3427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3427":{"this":{"__isSmartRef__":true,"id":3352}},"3428":{},"3429":{"varMapping":{"__isSmartRef__":true,"id":3430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3430":{"this":{"__isSmartRef__":true,"id":3352}},"3431":{},"3432":{"_Position":{"__isSmartRef__":true,"id":3433},"renderContextTable":{"__isSmartRef__":true,"id":3434},"_Extent":{"__isSmartRef__":true,"id":3435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3438":{"morph":{"__isSmartRef__":true,"id":3351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3439":{"layouter":{"__isSmartRef__":true,"id":3440},"resizeWidth":true},"3440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3442":{"x":0,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3444}},"3444":{"varMapping":{"__isSmartRef__":true,"id":3445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3445":{"this":{"__isSmartRef__":true,"id":3351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3446}},"3446":{"$super":{"__isSmartRef__":true,"id":3447}},"3447":{"varMapping":{"__isSmartRef__":true,"id":3448},"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":3449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3448":{"obj":{"__isSmartRef__":true,"id":3351},"name":"getLayoutableSubmorphs"},"3449":{},"3450":{},"3451":{"submorphs":[{"__isSmartRef__":true,"id":3452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3532},"id":101,"renderContextTable":{"__isSmartRef__":true,"id":3537},"eventHandler":{"__isSmartRef__":true,"id":3538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3452":{"submorphs":[{"__isSmartRef__":true,"id":3453},{"__isSmartRef__":true,"id":3478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3495},"id":98,"renderContextTable":{"__isSmartRef__":true,"id":3500},"eventHandler":{"__isSmartRef__":true,"id":3501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3502},"grabbingEnabled":false,"draggingEnabled":false,"data":"code_db","propertyList":["0","1","2","3","4","5","6"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"defaultCodeDB","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3453},"text":{"__isSmartRef__":true,"id":3478},"owner":{"__isSmartRef__":true,"id":3451},"_Position":{"__isSmartRef__":true,"id":3503},"priorExtent":{"__isSmartRef__":true,"id":3504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3454},"id":99,"renderContextTable":{"__isSmartRef__":true,"id":3460},"eventHandler":{"__isSmartRef__":true,"id":3461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3454":{"_Position":{"__isSmartRef__":true,"id":3455},"renderContextTable":{"__isSmartRef__":true,"id":3456},"_Extent":{"__isSmartRef__":true,"id":3457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3461":{"morph":{"__isSmartRef__":true,"id":3453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3463":{"onMouseUp":{"__isSmartRef__":true,"id":3464},"toggle":{"__isSmartRef__":true,"id":3471}},"3464":{"varMapping":{"__isSmartRef__":true,"id":3465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3465":{"this":{"__isSmartRef__":true,"id":3453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3466}},"3466":{"$super":{"__isSmartRef__":true,"id":3467}},"3467":{"varMapping":{"__isSmartRef__":true,"id":3468},"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":3469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3468":{"obj":{"__isSmartRef__":true,"id":3453},"name":"onMouseUp"},"3469":{},"3470":{},"3471":{"varMapping":{"__isSmartRef__":true,"id":3472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3472":{"this":{"__isSmartRef__":true,"id":3453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3473}},"3473":{"$super":{"__isSmartRef__":true,"id":3474}},"3474":{"varMapping":{"__isSmartRef__":true,"id":3475},"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":3476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3475":{"obj":{"__isSmartRef__":true,"id":3453},"name":"toggle"},"3476":{},"3477":{},"3478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3479},"id":100,"renderContextTable":{"__isSmartRef__":true,"id":3483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3484},{"__isSmartRef__":true,"id":3486}],"eventHandler":{"__isSmartRef__":true,"id":3488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3489},"priorExtent":{"__isSmartRef__":true,"id":3490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3479":{"_Position":{"__isSmartRef__":true,"id":3480},"renderContextTable":{"__isSmartRef__":true,"id":3481},"_Extent":{"__isSmartRef__":true,"id":3482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3482":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3484":{"style":{"__isSmartRef__":true,"id":3485},"chunkOwner":{"__isSmartRef__":true,"id":3478},"storedString":"defaultCodeDB","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3486":{"style":{"__isSmartRef__":true,"id":3487},"chunkOwner":{"__isSmartRef__":true,"id":3478},"storedString":": code_db","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3488":{"morph":{"__isSmartRef__":true,"id":3478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3490":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3491":{"layoutText":{"__isSmartRef__":true,"id":3492}},"3492":{"varMapping":{"__isSmartRef__":true,"id":3493},"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":3494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3493":{"this":{"__isSmartRef__":true,"id":3478}},"3494":{},"3495":{"_Position":{"__isSmartRef__":true,"id":3496},"renderContextTable":{"__isSmartRef__":true,"id":3497},"_Extent":{"__isSmartRef__":true,"id":3498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3501":{"morph":{"__isSmartRef__":true,"id":3452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3502":{"resizeWidth":true},"3503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3505":{"updateExpanderColor":{"__isSmartRef__":true,"id":3506},"onMouseDown":{"__isSmartRef__":true,"id":3509},"onMouseUp":{"__isSmartRef__":true,"id":3516},"isRoot":{"__isSmartRef__":true,"id":3523},"displayValue":{"__isSmartRef__":true,"id":3526},"update":{"__isSmartRef__":true,"id":3529}},"3506":{"varMapping":{"__isSmartRef__":true,"id":3507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3507":{"this":{"__isSmartRef__":true,"id":3452}},"3508":{},"3509":{"varMapping":{"__isSmartRef__":true,"id":3510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3510":{"this":{"__isSmartRef__":true,"id":3452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3511}},"3511":{"$super":{"__isSmartRef__":true,"id":3512}},"3512":{"varMapping":{"__isSmartRef__":true,"id":3513},"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":3514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3513":{"obj":{"__isSmartRef__":true,"id":3452},"name":"onMouseDown"},"3514":{},"3515":{},"3516":{"varMapping":{"__isSmartRef__":true,"id":3517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3517":{"this":{"__isSmartRef__":true,"id":3452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3518}},"3518":{"$super":{"__isSmartRef__":true,"id":3519}},"3519":{"varMapping":{"__isSmartRef__":true,"id":3520},"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":3521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3520":{"obj":{"__isSmartRef__":true,"id":3452},"name":"onMouseUp"},"3521":{},"3522":{},"3523":{"varMapping":{"__isSmartRef__":true,"id":3524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3524":{"this":{"__isSmartRef__":true,"id":3452}},"3525":{},"3526":{"varMapping":{"__isSmartRef__":true,"id":3527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3527":{"this":{"__isSmartRef__":true,"id":3452}},"3528":{},"3529":{"varMapping":{"__isSmartRef__":true,"id":3530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3530":{"this":{"__isSmartRef__":true,"id":3452}},"3531":{},"3532":{"_Position":{"__isSmartRef__":true,"id":3533},"renderContextTable":{"__isSmartRef__":true,"id":3534},"_Extent":{"__isSmartRef__":true,"id":3535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3538":{"morph":{"__isSmartRef__":true,"id":3451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3539":{"layouter":{"__isSmartRef__":true,"id":3540},"resizeWidth":true},"3540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3542":{"x":0,"y":260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3544}},"3544":{"varMapping":{"__isSmartRef__":true,"id":3545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3545":{"this":{"__isSmartRef__":true,"id":3451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3546}},"3546":{"$super":{"__isSmartRef__":true,"id":3547}},"3547":{"varMapping":{"__isSmartRef__":true,"id":3548},"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":3549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3548":{"obj":{"__isSmartRef__":true,"id":3451},"name":"getLayoutableSubmorphs"},"3549":{},"3550":{},"3551":{"submorphs":[{"__isSmartRef__":true,"id":3552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3632},"id":105,"renderContextTable":{"__isSmartRef__":true,"id":3637},"eventHandler":{"__isSmartRef__":true,"id":3638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3552":{"submorphs":[{"__isSmartRef__":true,"id":3553},{"__isSmartRef__":true,"id":3578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3595},"id":102,"renderContextTable":{"__isSmartRef__":true,"id":3600},"eventHandler":{"__isSmartRef__":true,"id":3601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3602},"grabbingEnabled":false,"draggingEnabled":false,"data":"hpi","propertyList":["0","1","2"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"defaultDisplayTheme","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3553},"text":{"__isSmartRef__":true,"id":3578},"owner":{"__isSmartRef__":true,"id":3551},"_Position":{"__isSmartRef__":true,"id":3603},"priorExtent":{"__isSmartRef__":true,"id":3604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3554},"id":103,"renderContextTable":{"__isSmartRef__":true,"id":3560},"eventHandler":{"__isSmartRef__":true,"id":3561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3554":{"_Position":{"__isSmartRef__":true,"id":3555},"renderContextTable":{"__isSmartRef__":true,"id":3556},"_Extent":{"__isSmartRef__":true,"id":3557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3561":{"morph":{"__isSmartRef__":true,"id":3553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3563":{"onMouseUp":{"__isSmartRef__":true,"id":3564},"toggle":{"__isSmartRef__":true,"id":3571}},"3564":{"varMapping":{"__isSmartRef__":true,"id":3565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3565":{"this":{"__isSmartRef__":true,"id":3553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3566}},"3566":{"$super":{"__isSmartRef__":true,"id":3567}},"3567":{"varMapping":{"__isSmartRef__":true,"id":3568},"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":3569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3568":{"obj":{"__isSmartRef__":true,"id":3553},"name":"onMouseUp"},"3569":{},"3570":{},"3571":{"varMapping":{"__isSmartRef__":true,"id":3572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3572":{"this":{"__isSmartRef__":true,"id":3553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3573}},"3573":{"$super":{"__isSmartRef__":true,"id":3574}},"3574":{"varMapping":{"__isSmartRef__":true,"id":3575},"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":3576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3575":{"obj":{"__isSmartRef__":true,"id":3553},"name":"toggle"},"3576":{},"3577":{},"3578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3579},"id":104,"renderContextTable":{"__isSmartRef__":true,"id":3583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3584},{"__isSmartRef__":true,"id":3586}],"eventHandler":{"__isSmartRef__":true,"id":3588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3589},"priorExtent":{"__isSmartRef__":true,"id":3590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3579":{"_Position":{"__isSmartRef__":true,"id":3580},"renderContextTable":{"__isSmartRef__":true,"id":3581},"_Extent":{"__isSmartRef__":true,"id":3582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3582":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3584":{"style":{"__isSmartRef__":true,"id":3585},"chunkOwner":{"__isSmartRef__":true,"id":3578},"storedString":"defaultDisplayTheme","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3586":{"style":{"__isSmartRef__":true,"id":3587},"chunkOwner":{"__isSmartRef__":true,"id":3578},"storedString":": hpi","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3588":{"morph":{"__isSmartRef__":true,"id":3578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3590":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3591":{"layoutText":{"__isSmartRef__":true,"id":3592}},"3592":{"varMapping":{"__isSmartRef__":true,"id":3593},"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":3594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3593":{"this":{"__isSmartRef__":true,"id":3578}},"3594":{},"3595":{"_Position":{"__isSmartRef__":true,"id":3596},"renderContextTable":{"__isSmartRef__":true,"id":3597},"_Extent":{"__isSmartRef__":true,"id":3598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3601":{"morph":{"__isSmartRef__":true,"id":3552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3602":{"resizeWidth":true},"3603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3605":{"updateExpanderColor":{"__isSmartRef__":true,"id":3606},"onMouseDown":{"__isSmartRef__":true,"id":3609},"onMouseUp":{"__isSmartRef__":true,"id":3616},"isRoot":{"__isSmartRef__":true,"id":3623},"displayValue":{"__isSmartRef__":true,"id":3626},"update":{"__isSmartRef__":true,"id":3629}},"3606":{"varMapping":{"__isSmartRef__":true,"id":3607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3607":{"this":{"__isSmartRef__":true,"id":3552}},"3608":{},"3609":{"varMapping":{"__isSmartRef__":true,"id":3610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3610":{"this":{"__isSmartRef__":true,"id":3552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3611}},"3611":{"$super":{"__isSmartRef__":true,"id":3612}},"3612":{"varMapping":{"__isSmartRef__":true,"id":3613},"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":3614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3613":{"obj":{"__isSmartRef__":true,"id":3552},"name":"onMouseDown"},"3614":{},"3615":{},"3616":{"varMapping":{"__isSmartRef__":true,"id":3617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3617":{"this":{"__isSmartRef__":true,"id":3552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3618}},"3618":{"$super":{"__isSmartRef__":true,"id":3619}},"3619":{"varMapping":{"__isSmartRef__":true,"id":3620},"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":3621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3620":{"obj":{"__isSmartRef__":true,"id":3552},"name":"onMouseUp"},"3621":{},"3622":{},"3623":{"varMapping":{"__isSmartRef__":true,"id":3624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3624":{"this":{"__isSmartRef__":true,"id":3552}},"3625":{},"3626":{"varMapping":{"__isSmartRef__":true,"id":3627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3627":{"this":{"__isSmartRef__":true,"id":3552}},"3628":{},"3629":{"varMapping":{"__isSmartRef__":true,"id":3630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3630":{"this":{"__isSmartRef__":true,"id":3552}},"3631":{},"3632":{"_Position":{"__isSmartRef__":true,"id":3633},"renderContextTable":{"__isSmartRef__":true,"id":3634},"_Extent":{"__isSmartRef__":true,"id":3635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3638":{"morph":{"__isSmartRef__":true,"id":3551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3639":{"layouter":{"__isSmartRef__":true,"id":3640},"resizeWidth":true},"3640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3642":{"x":0,"y":280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3644}},"3644":{"varMapping":{"__isSmartRef__":true,"id":3645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3645":{"this":{"__isSmartRef__":true,"id":3551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3646}},"3646":{"$super":{"__isSmartRef__":true,"id":3647}},"3647":{"varMapping":{"__isSmartRef__":true,"id":3648},"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":3649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3648":{"obj":{"__isSmartRef__":true,"id":3551},"name":"getLayoutableSubmorphs"},"3649":{},"3650":{},"3651":{"submorphs":[{"__isSmartRef__":true,"id":3652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3732},"id":109,"renderContextTable":{"__isSmartRef__":true,"id":3737},"eventHandler":{"__isSmartRef__":true,"id":3738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3652":{"submorphs":[{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3695},"id":106,"renderContextTable":{"__isSmartRef__":true,"id":3700},"eventHandler":{"__isSmartRef__":true,"id":3701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3702},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"disableNoConsoleWarning","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3653},"text":{"__isSmartRef__":true,"id":3678},"owner":{"__isSmartRef__":true,"id":3651},"_Position":{"__isSmartRef__":true,"id":3703},"priorExtent":{"__isSmartRef__":true,"id":3704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3654},"id":107,"renderContextTable":{"__isSmartRef__":true,"id":3660},"eventHandler":{"__isSmartRef__":true,"id":3661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3654":{"_Position":{"__isSmartRef__":true,"id":3655},"renderContextTable":{"__isSmartRef__":true,"id":3656},"_Extent":{"__isSmartRef__":true,"id":3657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3661":{"morph":{"__isSmartRef__":true,"id":3653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3663":{"onMouseUp":{"__isSmartRef__":true,"id":3664},"toggle":{"__isSmartRef__":true,"id":3671}},"3664":{"varMapping":{"__isSmartRef__":true,"id":3665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3665":{"this":{"__isSmartRef__":true,"id":3653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3666}},"3666":{"$super":{"__isSmartRef__":true,"id":3667}},"3667":{"varMapping":{"__isSmartRef__":true,"id":3668},"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":3669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3668":{"obj":{"__isSmartRef__":true,"id":3653},"name":"onMouseUp"},"3669":{},"3670":{},"3671":{"varMapping":{"__isSmartRef__":true,"id":3672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3672":{"this":{"__isSmartRef__":true,"id":3653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3673}},"3673":{"$super":{"__isSmartRef__":true,"id":3674}},"3674":{"varMapping":{"__isSmartRef__":true,"id":3675},"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":3676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3675":{"obj":{"__isSmartRef__":true,"id":3653},"name":"toggle"},"3676":{},"3677":{},"3678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3679},"id":108,"renderContextTable":{"__isSmartRef__":true,"id":3683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3684},{"__isSmartRef__":true,"id":3686}],"eventHandler":{"__isSmartRef__":true,"id":3688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3689},"priorExtent":{"__isSmartRef__":true,"id":3690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3679":{"_Position":{"__isSmartRef__":true,"id":3680},"renderContextTable":{"__isSmartRef__":true,"id":3681},"_Extent":{"__isSmartRef__":true,"id":3682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3682":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3684":{"style":{"__isSmartRef__":true,"id":3685},"chunkOwner":{"__isSmartRef__":true,"id":3678},"storedString":"disableNoConsoleWarning","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3686":{"style":{"__isSmartRef__":true,"id":3687},"chunkOwner":{"__isSmartRef__":true,"id":3678},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3688":{"morph":{"__isSmartRef__":true,"id":3678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3690":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3691":{"layoutText":{"__isSmartRef__":true,"id":3692}},"3692":{"varMapping":{"__isSmartRef__":true,"id":3693},"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":3694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3693":{"this":{"__isSmartRef__":true,"id":3678}},"3694":{},"3695":{"_Position":{"__isSmartRef__":true,"id":3696},"renderContextTable":{"__isSmartRef__":true,"id":3697},"_Extent":{"__isSmartRef__":true,"id":3698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3701":{"morph":{"__isSmartRef__":true,"id":3652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3702":{"resizeWidth":true},"3703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3705":{"updateExpanderColor":{"__isSmartRef__":true,"id":3706},"onMouseDown":{"__isSmartRef__":true,"id":3709},"onMouseUp":{"__isSmartRef__":true,"id":3716},"isRoot":{"__isSmartRef__":true,"id":3723},"displayValue":{"__isSmartRef__":true,"id":3726},"update":{"__isSmartRef__":true,"id":3729}},"3706":{"varMapping":{"__isSmartRef__":true,"id":3707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3707":{"this":{"__isSmartRef__":true,"id":3652}},"3708":{},"3709":{"varMapping":{"__isSmartRef__":true,"id":3710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3710":{"this":{"__isSmartRef__":true,"id":3652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3711}},"3711":{"$super":{"__isSmartRef__":true,"id":3712}},"3712":{"varMapping":{"__isSmartRef__":true,"id":3713},"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":3714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3713":{"obj":{"__isSmartRef__":true,"id":3652},"name":"onMouseDown"},"3714":{},"3715":{},"3716":{"varMapping":{"__isSmartRef__":true,"id":3717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3717":{"this":{"__isSmartRef__":true,"id":3652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3718}},"3718":{"$super":{"__isSmartRef__":true,"id":3719}},"3719":{"varMapping":{"__isSmartRef__":true,"id":3720},"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":3721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3720":{"obj":{"__isSmartRef__":true,"id":3652},"name":"onMouseUp"},"3721":{},"3722":{},"3723":{"varMapping":{"__isSmartRef__":true,"id":3724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3724":{"this":{"__isSmartRef__":true,"id":3652}},"3725":{},"3726":{"varMapping":{"__isSmartRef__":true,"id":3727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3727":{"this":{"__isSmartRef__":true,"id":3652}},"3728":{},"3729":{"varMapping":{"__isSmartRef__":true,"id":3730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3730":{"this":{"__isSmartRef__":true,"id":3652}},"3731":{},"3732":{"_Position":{"__isSmartRef__":true,"id":3733},"renderContextTable":{"__isSmartRef__":true,"id":3734},"_Extent":{"__isSmartRef__":true,"id":3735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3738":{"morph":{"__isSmartRef__":true,"id":3651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3739":{"layouter":{"__isSmartRef__":true,"id":3740},"resizeWidth":true},"3740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3742":{"x":0,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3744}},"3744":{"varMapping":{"__isSmartRef__":true,"id":3745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3745":{"this":{"__isSmartRef__":true,"id":3651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3746}},"3746":{"$super":{"__isSmartRef__":true,"id":3747}},"3747":{"varMapping":{"__isSmartRef__":true,"id":3748},"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":3749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3748":{"obj":{"__isSmartRef__":true,"id":3651},"name":"getLayoutableSubmorphs"},"3749":{},"3750":{},"3751":{"submorphs":[{"__isSmartRef__":true,"id":3752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3832},"id":113,"renderContextTable":{"__isSmartRef__":true,"id":3837},"eventHandler":{"__isSmartRef__":true,"id":3838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3752":{"submorphs":[{"__isSmartRef__":true,"id":3753},{"__isSmartRef__":true,"id":3778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3795},"id":110,"renderContextTable":{"__isSmartRef__":true,"id":3800},"eventHandler":{"__isSmartRef__":true,"id":3801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3802},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"disableScriptCaching","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3753},"text":{"__isSmartRef__":true,"id":3778},"owner":{"__isSmartRef__":true,"id":3751},"_Position":{"__isSmartRef__":true,"id":3803},"priorExtent":{"__isSmartRef__":true,"id":3804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3754},"id":111,"renderContextTable":{"__isSmartRef__":true,"id":3760},"eventHandler":{"__isSmartRef__":true,"id":3761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3754":{"_Position":{"__isSmartRef__":true,"id":3755},"renderContextTable":{"__isSmartRef__":true,"id":3756},"_Extent":{"__isSmartRef__":true,"id":3757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3761":{"morph":{"__isSmartRef__":true,"id":3753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3763":{"onMouseUp":{"__isSmartRef__":true,"id":3764},"toggle":{"__isSmartRef__":true,"id":3771}},"3764":{"varMapping":{"__isSmartRef__":true,"id":3765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3765":{"this":{"__isSmartRef__":true,"id":3753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3766}},"3766":{"$super":{"__isSmartRef__":true,"id":3767}},"3767":{"varMapping":{"__isSmartRef__":true,"id":3768},"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":3769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3768":{"obj":{"__isSmartRef__":true,"id":3753},"name":"onMouseUp"},"3769":{},"3770":{},"3771":{"varMapping":{"__isSmartRef__":true,"id":3772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3772":{"this":{"__isSmartRef__":true,"id":3753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3773}},"3773":{"$super":{"__isSmartRef__":true,"id":3774}},"3774":{"varMapping":{"__isSmartRef__":true,"id":3775},"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":3776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3775":{"obj":{"__isSmartRef__":true,"id":3753},"name":"toggle"},"3776":{},"3777":{},"3778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3779},"id":112,"renderContextTable":{"__isSmartRef__":true,"id":3783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3784},{"__isSmartRef__":true,"id":3786}],"eventHandler":{"__isSmartRef__":true,"id":3788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3789},"priorExtent":{"__isSmartRef__":true,"id":3790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3779":{"_Position":{"__isSmartRef__":true,"id":3780},"renderContextTable":{"__isSmartRef__":true,"id":3781},"_Extent":{"__isSmartRef__":true,"id":3782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3782":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3784":{"style":{"__isSmartRef__":true,"id":3785},"chunkOwner":{"__isSmartRef__":true,"id":3778},"storedString":"disableScriptCaching","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3786":{"style":{"__isSmartRef__":true,"id":3787},"chunkOwner":{"__isSmartRef__":true,"id":3778},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3788":{"morph":{"__isSmartRef__":true,"id":3778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3790":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3791":{"layoutText":{"__isSmartRef__":true,"id":3792}},"3792":{"varMapping":{"__isSmartRef__":true,"id":3793},"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":3794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3793":{"this":{"__isSmartRef__":true,"id":3778}},"3794":{},"3795":{"_Position":{"__isSmartRef__":true,"id":3796},"renderContextTable":{"__isSmartRef__":true,"id":3797},"_Extent":{"__isSmartRef__":true,"id":3798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3801":{"morph":{"__isSmartRef__":true,"id":3752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3802":{"resizeWidth":true},"3803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3805":{"updateExpanderColor":{"__isSmartRef__":true,"id":3806},"onMouseDown":{"__isSmartRef__":true,"id":3809},"onMouseUp":{"__isSmartRef__":true,"id":3816},"isRoot":{"__isSmartRef__":true,"id":3823},"displayValue":{"__isSmartRef__":true,"id":3826},"update":{"__isSmartRef__":true,"id":3829}},"3806":{"varMapping":{"__isSmartRef__":true,"id":3807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3807":{"this":{"__isSmartRef__":true,"id":3752}},"3808":{},"3809":{"varMapping":{"__isSmartRef__":true,"id":3810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3810":{"this":{"__isSmartRef__":true,"id":3752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3811}},"3811":{"$super":{"__isSmartRef__":true,"id":3812}},"3812":{"varMapping":{"__isSmartRef__":true,"id":3813},"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":3814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3813":{"obj":{"__isSmartRef__":true,"id":3752},"name":"onMouseDown"},"3814":{},"3815":{},"3816":{"varMapping":{"__isSmartRef__":true,"id":3817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3817":{"this":{"__isSmartRef__":true,"id":3752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3818}},"3818":{"$super":{"__isSmartRef__":true,"id":3819}},"3819":{"varMapping":{"__isSmartRef__":true,"id":3820},"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":3821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3820":{"obj":{"__isSmartRef__":true,"id":3752},"name":"onMouseUp"},"3821":{},"3822":{},"3823":{"varMapping":{"__isSmartRef__":true,"id":3824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3824":{"this":{"__isSmartRef__":true,"id":3752}},"3825":{},"3826":{"varMapping":{"__isSmartRef__":true,"id":3827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3827":{"this":{"__isSmartRef__":true,"id":3752}},"3828":{},"3829":{"varMapping":{"__isSmartRef__":true,"id":3830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3830":{"this":{"__isSmartRef__":true,"id":3752}},"3831":{},"3832":{"_Position":{"__isSmartRef__":true,"id":3833},"renderContextTable":{"__isSmartRef__":true,"id":3834},"_Extent":{"__isSmartRef__":true,"id":3835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3838":{"morph":{"__isSmartRef__":true,"id":3751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3839":{"layouter":{"__isSmartRef__":true,"id":3840},"resizeWidth":true},"3840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3842":{"x":0,"y":320,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3844}},"3844":{"varMapping":{"__isSmartRef__":true,"id":3845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3845":{"this":{"__isSmartRef__":true,"id":3751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3846}},"3846":{"$super":{"__isSmartRef__":true,"id":3847}},"3847":{"varMapping":{"__isSmartRef__":true,"id":3848},"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":3849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3848":{"obj":{"__isSmartRef__":true,"id":3751},"name":"getLayoutableSubmorphs"},"3849":{},"3850":{},"3851":{"submorphs":[{"__isSmartRef__":true,"id":3852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3932},"id":117,"renderContextTable":{"__isSmartRef__":true,"id":3937},"eventHandler":{"__isSmartRef__":true,"id":3938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":3942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3852":{"submorphs":[{"__isSmartRef__":true,"id":3853},{"__isSmartRef__":true,"id":3878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3895},"id":114,"renderContextTable":{"__isSmartRef__":true,"id":3900},"eventHandler":{"__isSmartRef__":true,"id":3901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3902},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"disableSyntaxHighlighting","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3853},"text":{"__isSmartRef__":true,"id":3878},"owner":{"__isSmartRef__":true,"id":3851},"_Position":{"__isSmartRef__":true,"id":3903},"priorExtent":{"__isSmartRef__":true,"id":3904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3854},"id":115,"renderContextTable":{"__isSmartRef__":true,"id":3860},"eventHandler":{"__isSmartRef__":true,"id":3861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3854":{"_Position":{"__isSmartRef__":true,"id":3855},"renderContextTable":{"__isSmartRef__":true,"id":3856},"_Extent":{"__isSmartRef__":true,"id":3857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3861":{"morph":{"__isSmartRef__":true,"id":3853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3863":{"onMouseUp":{"__isSmartRef__":true,"id":3864},"toggle":{"__isSmartRef__":true,"id":3871}},"3864":{"varMapping":{"__isSmartRef__":true,"id":3865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3865":{"this":{"__isSmartRef__":true,"id":3853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3866}},"3866":{"$super":{"__isSmartRef__":true,"id":3867}},"3867":{"varMapping":{"__isSmartRef__":true,"id":3868},"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":3869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3868":{"obj":{"__isSmartRef__":true,"id":3853},"name":"onMouseUp"},"3869":{},"3870":{},"3871":{"varMapping":{"__isSmartRef__":true,"id":3872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3872":{"this":{"__isSmartRef__":true,"id":3853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3873}},"3873":{"$super":{"__isSmartRef__":true,"id":3874}},"3874":{"varMapping":{"__isSmartRef__":true,"id":3875},"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":3876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3875":{"obj":{"__isSmartRef__":true,"id":3853},"name":"toggle"},"3876":{},"3877":{},"3878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3879},"id":116,"renderContextTable":{"__isSmartRef__":true,"id":3883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3884},{"__isSmartRef__":true,"id":3886}],"eventHandler":{"__isSmartRef__":true,"id":3888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3889},"priorExtent":{"__isSmartRef__":true,"id":3890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3879":{"_Position":{"__isSmartRef__":true,"id":3880},"renderContextTable":{"__isSmartRef__":true,"id":3881},"_Extent":{"__isSmartRef__":true,"id":3882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3882":{"x":248,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3884":{"style":{"__isSmartRef__":true,"id":3885},"chunkOwner":{"__isSmartRef__":true,"id":3878},"storedString":"disableSyntaxHighlighting","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3886":{"style":{"__isSmartRef__":true,"id":3887},"chunkOwner":{"__isSmartRef__":true,"id":3878},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3888":{"morph":{"__isSmartRef__":true,"id":3878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3890":{"x":240,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3891":{"layoutText":{"__isSmartRef__":true,"id":3892}},"3892":{"varMapping":{"__isSmartRef__":true,"id":3893},"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":3894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3893":{"this":{"__isSmartRef__":true,"id":3878}},"3894":{},"3895":{"_Position":{"__isSmartRef__":true,"id":3896},"renderContextTable":{"__isSmartRef__":true,"id":3897},"_Extent":{"__isSmartRef__":true,"id":3898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3901":{"morph":{"__isSmartRef__":true,"id":3852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3902":{"resizeWidth":true},"3903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3905":{"updateExpanderColor":{"__isSmartRef__":true,"id":3906},"onMouseDown":{"__isSmartRef__":true,"id":3909},"onMouseUp":{"__isSmartRef__":true,"id":3916},"isRoot":{"__isSmartRef__":true,"id":3923},"displayValue":{"__isSmartRef__":true,"id":3926},"update":{"__isSmartRef__":true,"id":3929}},"3906":{"varMapping":{"__isSmartRef__":true,"id":3907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":3908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3907":{"this":{"__isSmartRef__":true,"id":3852}},"3908":{},"3909":{"varMapping":{"__isSmartRef__":true,"id":3910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3910":{"this":{"__isSmartRef__":true,"id":3852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3911}},"3911":{"$super":{"__isSmartRef__":true,"id":3912}},"3912":{"varMapping":{"__isSmartRef__":true,"id":3913},"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":3914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3913":{"obj":{"__isSmartRef__":true,"id":3852},"name":"onMouseDown"},"3914":{},"3915":{},"3916":{"varMapping":{"__isSmartRef__":true,"id":3917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3917":{"this":{"__isSmartRef__":true,"id":3852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3918}},"3918":{"$super":{"__isSmartRef__":true,"id":3919}},"3919":{"varMapping":{"__isSmartRef__":true,"id":3920},"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":3921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3920":{"obj":{"__isSmartRef__":true,"id":3852},"name":"onMouseUp"},"3921":{},"3922":{},"3923":{"varMapping":{"__isSmartRef__":true,"id":3924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3924":{"this":{"__isSmartRef__":true,"id":3852}},"3925":{},"3926":{"varMapping":{"__isSmartRef__":true,"id":3927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":3928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3927":{"this":{"__isSmartRef__":true,"id":3852}},"3928":{},"3929":{"varMapping":{"__isSmartRef__":true,"id":3930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3930":{"this":{"__isSmartRef__":true,"id":3852}},"3931":{},"3932":{"_Position":{"__isSmartRef__":true,"id":3933},"renderContextTable":{"__isSmartRef__":true,"id":3934},"_Extent":{"__isSmartRef__":true,"id":3935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3938":{"morph":{"__isSmartRef__":true,"id":3851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3939":{"layouter":{"__isSmartRef__":true,"id":3940},"resizeWidth":true},"3940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3942":{"x":0,"y":340,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3944}},"3944":{"varMapping":{"__isSmartRef__":true,"id":3945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3945":{"this":{"__isSmartRef__":true,"id":3851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3946}},"3946":{"$super":{"__isSmartRef__":true,"id":3947}},"3947":{"varMapping":{"__isSmartRef__":true,"id":3948},"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":3949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3948":{"obj":{"__isSmartRef__":true,"id":3851},"name":"getLayoutableSubmorphs"},"3949":{},"3950":{},"3951":{"submorphs":[{"__isSmartRef__":true,"id":3952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4032},"id":121,"renderContextTable":{"__isSmartRef__":true,"id":4037},"eventHandler":{"__isSmartRef__":true,"id":4038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3952":{"submorphs":[{"__isSmartRef__":true,"id":3953},{"__isSmartRef__":true,"id":3978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3995},"id":118,"renderContextTable":{"__isSmartRef__":true,"id":4000},"eventHandler":{"__isSmartRef__":true,"id":4001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4002},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"fakeFontMetrics","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":3953},"text":{"__isSmartRef__":true,"id":3978},"owner":{"__isSmartRef__":true,"id":3951},"_Position":{"__isSmartRef__":true,"id":4003},"priorExtent":{"__isSmartRef__":true,"id":4004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3954},"id":119,"renderContextTable":{"__isSmartRef__":true,"id":3960},"eventHandler":{"__isSmartRef__":true,"id":3961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3954":{"_Position":{"__isSmartRef__":true,"id":3955},"renderContextTable":{"__isSmartRef__":true,"id":3956},"_Extent":{"__isSmartRef__":true,"id":3957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":3959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3961":{"morph":{"__isSmartRef__":true,"id":3953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3963":{"onMouseUp":{"__isSmartRef__":true,"id":3964},"toggle":{"__isSmartRef__":true,"id":3971}},"3964":{"varMapping":{"__isSmartRef__":true,"id":3965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":3970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3965":{"this":{"__isSmartRef__":true,"id":3953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3966}},"3966":{"$super":{"__isSmartRef__":true,"id":3967}},"3967":{"varMapping":{"__isSmartRef__":true,"id":3968},"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":3969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3968":{"obj":{"__isSmartRef__":true,"id":3953},"name":"onMouseUp"},"3969":{},"3970":{},"3971":{"varMapping":{"__isSmartRef__":true,"id":3972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":3977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3972":{"this":{"__isSmartRef__":true,"id":3953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3973}},"3973":{"$super":{"__isSmartRef__":true,"id":3974}},"3974":{"varMapping":{"__isSmartRef__":true,"id":3975},"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":3976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3975":{"obj":{"__isSmartRef__":true,"id":3953},"name":"toggle"},"3976":{},"3977":{},"3978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3979},"id":120,"renderContextTable":{"__isSmartRef__":true,"id":3983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3984},{"__isSmartRef__":true,"id":3986}],"eventHandler":{"__isSmartRef__":true,"id":3988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3989},"priorExtent":{"__isSmartRef__":true,"id":3990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3979":{"_Position":{"__isSmartRef__":true,"id":3980},"renderContextTable":{"__isSmartRef__":true,"id":3981},"_Extent":{"__isSmartRef__":true,"id":3982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3982":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3984":{"style":{"__isSmartRef__":true,"id":3985},"chunkOwner":{"__isSmartRef__":true,"id":3978},"storedString":"fakeFontMetrics","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3986":{"style":{"__isSmartRef__":true,"id":3987},"chunkOwner":{"__isSmartRef__":true,"id":3978},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3988":{"morph":{"__isSmartRef__":true,"id":3978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3990":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3991":{"layoutText":{"__isSmartRef__":true,"id":3992}},"3992":{"varMapping":{"__isSmartRef__":true,"id":3993},"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":3994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3993":{"this":{"__isSmartRef__":true,"id":3978}},"3994":{},"3995":{"_Position":{"__isSmartRef__":true,"id":3996},"renderContextTable":{"__isSmartRef__":true,"id":3997},"_Extent":{"__isSmartRef__":true,"id":3998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4001":{"morph":{"__isSmartRef__":true,"id":3952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4002":{"resizeWidth":true},"4003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4005":{"updateExpanderColor":{"__isSmartRef__":true,"id":4006},"onMouseDown":{"__isSmartRef__":true,"id":4009},"onMouseUp":{"__isSmartRef__":true,"id":4016},"isRoot":{"__isSmartRef__":true,"id":4023},"displayValue":{"__isSmartRef__":true,"id":4026},"update":{"__isSmartRef__":true,"id":4029}},"4006":{"varMapping":{"__isSmartRef__":true,"id":4007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4007":{"this":{"__isSmartRef__":true,"id":3952}},"4008":{},"4009":{"varMapping":{"__isSmartRef__":true,"id":4010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4010":{"this":{"__isSmartRef__":true,"id":3952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4011}},"4011":{"$super":{"__isSmartRef__":true,"id":4012}},"4012":{"varMapping":{"__isSmartRef__":true,"id":4013},"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":4014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4013":{"obj":{"__isSmartRef__":true,"id":3952},"name":"onMouseDown"},"4014":{},"4015":{},"4016":{"varMapping":{"__isSmartRef__":true,"id":4017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4017":{"this":{"__isSmartRef__":true,"id":3952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4018}},"4018":{"$super":{"__isSmartRef__":true,"id":4019}},"4019":{"varMapping":{"__isSmartRef__":true,"id":4020},"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":4021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4020":{"obj":{"__isSmartRef__":true,"id":3952},"name":"onMouseUp"},"4021":{},"4022":{},"4023":{"varMapping":{"__isSmartRef__":true,"id":4024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4024":{"this":{"__isSmartRef__":true,"id":3952}},"4025":{},"4026":{"varMapping":{"__isSmartRef__":true,"id":4027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4027":{"this":{"__isSmartRef__":true,"id":3952}},"4028":{},"4029":{"varMapping":{"__isSmartRef__":true,"id":4030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4030":{"this":{"__isSmartRef__":true,"id":3952}},"4031":{},"4032":{"_Position":{"__isSmartRef__":true,"id":4033},"renderContextTable":{"__isSmartRef__":true,"id":4034},"_Extent":{"__isSmartRef__":true,"id":4035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4038":{"morph":{"__isSmartRef__":true,"id":3951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4039":{"layouter":{"__isSmartRef__":true,"id":4040},"resizeWidth":true},"4040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4042":{"x":0,"y":360,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4044}},"4044":{"varMapping":{"__isSmartRef__":true,"id":4045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4045":{"this":{"__isSmartRef__":true,"id":3951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4046}},"4046":{"$super":{"__isSmartRef__":true,"id":4047}},"4047":{"varMapping":{"__isSmartRef__":true,"id":4048},"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":4049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4048":{"obj":{"__isSmartRef__":true,"id":3951},"name":"getLayoutableSubmorphs"},"4049":{},"4050":{},"4051":{"submorphs":[{"__isSmartRef__":true,"id":4052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4132},"id":125,"renderContextTable":{"__isSmartRef__":true,"id":4137},"eventHandler":{"__isSmartRef__":true,"id":4138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4052":{"submorphs":[{"__isSmartRef__":true,"id":4053},{"__isSmartRef__":true,"id":4078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4095},"id":122,"renderContextTable":{"__isSmartRef__":true,"id":4100},"eventHandler":{"__isSmartRef__":true,"id":4101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4102},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"fontMetricsFromHTML","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4053},"text":{"__isSmartRef__":true,"id":4078},"owner":{"__isSmartRef__":true,"id":4051},"_Position":{"__isSmartRef__":true,"id":4103},"priorExtent":{"__isSmartRef__":true,"id":4104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4054},"id":123,"renderContextTable":{"__isSmartRef__":true,"id":4060},"eventHandler":{"__isSmartRef__":true,"id":4061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4054":{"_Position":{"__isSmartRef__":true,"id":4055},"renderContextTable":{"__isSmartRef__":true,"id":4056},"_Extent":{"__isSmartRef__":true,"id":4057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4061":{"morph":{"__isSmartRef__":true,"id":4053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4063":{"onMouseUp":{"__isSmartRef__":true,"id":4064},"toggle":{"__isSmartRef__":true,"id":4071}},"4064":{"varMapping":{"__isSmartRef__":true,"id":4065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4065":{"this":{"__isSmartRef__":true,"id":4053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4066}},"4066":{"$super":{"__isSmartRef__":true,"id":4067}},"4067":{"varMapping":{"__isSmartRef__":true,"id":4068},"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":4069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4068":{"obj":{"__isSmartRef__":true,"id":4053},"name":"onMouseUp"},"4069":{},"4070":{},"4071":{"varMapping":{"__isSmartRef__":true,"id":4072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4072":{"this":{"__isSmartRef__":true,"id":4053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4073}},"4073":{"$super":{"__isSmartRef__":true,"id":4074}},"4074":{"varMapping":{"__isSmartRef__":true,"id":4075},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4075":{"obj":{"__isSmartRef__":true,"id":4053},"name":"toggle"},"4076":{},"4077":{},"4078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4079},"id":124,"renderContextTable":{"__isSmartRef__":true,"id":4083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4084},{"__isSmartRef__":true,"id":4086}],"eventHandler":{"__isSmartRef__":true,"id":4088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4089},"priorExtent":{"__isSmartRef__":true,"id":4090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4079":{"_Position":{"__isSmartRef__":true,"id":4080},"renderContextTable":{"__isSmartRef__":true,"id":4081},"_Extent":{"__isSmartRef__":true,"id":4082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4082":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4084":{"style":{"__isSmartRef__":true,"id":4085},"chunkOwner":{"__isSmartRef__":true,"id":4078},"storedString":"fontMetricsFromHTML","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4086":{"style":{"__isSmartRef__":true,"id":4087},"chunkOwner":{"__isSmartRef__":true,"id":4078},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4088":{"morph":{"__isSmartRef__":true,"id":4078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4090":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4091":{"layoutText":{"__isSmartRef__":true,"id":4092}},"4092":{"varMapping":{"__isSmartRef__":true,"id":4093},"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":4094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4093":{"this":{"__isSmartRef__":true,"id":4078}},"4094":{},"4095":{"_Position":{"__isSmartRef__":true,"id":4096},"renderContextTable":{"__isSmartRef__":true,"id":4097},"_Extent":{"__isSmartRef__":true,"id":4098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4101":{"morph":{"__isSmartRef__":true,"id":4052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4102":{"resizeWidth":true},"4103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4105":{"updateExpanderColor":{"__isSmartRef__":true,"id":4106},"onMouseDown":{"__isSmartRef__":true,"id":4109},"onMouseUp":{"__isSmartRef__":true,"id":4116},"isRoot":{"__isSmartRef__":true,"id":4123},"displayValue":{"__isSmartRef__":true,"id":4126},"update":{"__isSmartRef__":true,"id":4129}},"4106":{"varMapping":{"__isSmartRef__":true,"id":4107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4107":{"this":{"__isSmartRef__":true,"id":4052}},"4108":{},"4109":{"varMapping":{"__isSmartRef__":true,"id":4110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4110":{"this":{"__isSmartRef__":true,"id":4052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4111}},"4111":{"$super":{"__isSmartRef__":true,"id":4112}},"4112":{"varMapping":{"__isSmartRef__":true,"id":4113},"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":4114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4113":{"obj":{"__isSmartRef__":true,"id":4052},"name":"onMouseDown"},"4114":{},"4115":{},"4116":{"varMapping":{"__isSmartRef__":true,"id":4117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4117":{"this":{"__isSmartRef__":true,"id":4052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4118}},"4118":{"$super":{"__isSmartRef__":true,"id":4119}},"4119":{"varMapping":{"__isSmartRef__":true,"id":4120},"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":4121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4120":{"obj":{"__isSmartRef__":true,"id":4052},"name":"onMouseUp"},"4121":{},"4122":{},"4123":{"varMapping":{"__isSmartRef__":true,"id":4124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4124":{"this":{"__isSmartRef__":true,"id":4052}},"4125":{},"4126":{"varMapping":{"__isSmartRef__":true,"id":4127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4127":{"this":{"__isSmartRef__":true,"id":4052}},"4128":{},"4129":{"varMapping":{"__isSmartRef__":true,"id":4130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4130":{"this":{"__isSmartRef__":true,"id":4052}},"4131":{},"4132":{"_Position":{"__isSmartRef__":true,"id":4133},"renderContextTable":{"__isSmartRef__":true,"id":4134},"_Extent":{"__isSmartRef__":true,"id":4135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4138":{"morph":{"__isSmartRef__":true,"id":4051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4139":{"layouter":{"__isSmartRef__":true,"id":4140},"resizeWidth":true},"4140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4142":{"x":0,"y":380,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4144}},"4144":{"varMapping":{"__isSmartRef__":true,"id":4145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4145":{"this":{"__isSmartRef__":true,"id":4051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4146}},"4146":{"$super":{"__isSmartRef__":true,"id":4147}},"4147":{"varMapping":{"__isSmartRef__":true,"id":4148},"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":4149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4148":{"obj":{"__isSmartRef__":true,"id":4051},"name":"getLayoutableSubmorphs"},"4149":{},"4150":{},"4151":{"submorphs":[{"__isSmartRef__":true,"id":4152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4232},"id":129,"renderContextTable":{"__isSmartRef__":true,"id":4237},"eventHandler":{"__isSmartRef__":true,"id":4238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4152":{"submorphs":[{"__isSmartRef__":true,"id":4153},{"__isSmartRef__":true,"id":4178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4195},"id":126,"renderContextTable":{"__isSmartRef__":true,"id":4200},"eventHandler":{"__isSmartRef__":true,"id":4201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4202},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"fontMetricsFromSVG","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4153},"text":{"__isSmartRef__":true,"id":4178},"owner":{"__isSmartRef__":true,"id":4151},"_Position":{"__isSmartRef__":true,"id":4203},"priorExtent":{"__isSmartRef__":true,"id":4204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4154},"id":127,"renderContextTable":{"__isSmartRef__":true,"id":4160},"eventHandler":{"__isSmartRef__":true,"id":4161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4154":{"_Position":{"__isSmartRef__":true,"id":4155},"renderContextTable":{"__isSmartRef__":true,"id":4156},"_Extent":{"__isSmartRef__":true,"id":4157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4161":{"morph":{"__isSmartRef__":true,"id":4153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4163":{"onMouseUp":{"__isSmartRef__":true,"id":4164},"toggle":{"__isSmartRef__":true,"id":4171}},"4164":{"varMapping":{"__isSmartRef__":true,"id":4165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4165":{"this":{"__isSmartRef__":true,"id":4153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4166}},"4166":{"$super":{"__isSmartRef__":true,"id":4167}},"4167":{"varMapping":{"__isSmartRef__":true,"id":4168},"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":4169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4168":{"obj":{"__isSmartRef__":true,"id":4153},"name":"onMouseUp"},"4169":{},"4170":{},"4171":{"varMapping":{"__isSmartRef__":true,"id":4172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4172":{"this":{"__isSmartRef__":true,"id":4153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4173}},"4173":{"$super":{"__isSmartRef__":true,"id":4174}},"4174":{"varMapping":{"__isSmartRef__":true,"id":4175},"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":4176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4175":{"obj":{"__isSmartRef__":true,"id":4153},"name":"toggle"},"4176":{},"4177":{},"4178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4179},"id":128,"renderContextTable":{"__isSmartRef__":true,"id":4183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4184},{"__isSmartRef__":true,"id":4186}],"eventHandler":{"__isSmartRef__":true,"id":4188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4189},"priorExtent":{"__isSmartRef__":true,"id":4190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4179":{"_Position":{"__isSmartRef__":true,"id":4180},"renderContextTable":{"__isSmartRef__":true,"id":4181},"_Extent":{"__isSmartRef__":true,"id":4182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4182":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4184":{"style":{"__isSmartRef__":true,"id":4185},"chunkOwner":{"__isSmartRef__":true,"id":4178},"storedString":"fontMetricsFromSVG","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4186":{"style":{"__isSmartRef__":true,"id":4187},"chunkOwner":{"__isSmartRef__":true,"id":4178},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4188":{"morph":{"__isSmartRef__":true,"id":4178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4190":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4191":{"layoutText":{"__isSmartRef__":true,"id":4192}},"4192":{"varMapping":{"__isSmartRef__":true,"id":4193},"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":4194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4193":{"this":{"__isSmartRef__":true,"id":4178}},"4194":{},"4195":{"_Position":{"__isSmartRef__":true,"id":4196},"renderContextTable":{"__isSmartRef__":true,"id":4197},"_Extent":{"__isSmartRef__":true,"id":4198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4201":{"morph":{"__isSmartRef__":true,"id":4152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4202":{"resizeWidth":true},"4203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4205":{"updateExpanderColor":{"__isSmartRef__":true,"id":4206},"onMouseDown":{"__isSmartRef__":true,"id":4209},"onMouseUp":{"__isSmartRef__":true,"id":4216},"isRoot":{"__isSmartRef__":true,"id":4223},"displayValue":{"__isSmartRef__":true,"id":4226},"update":{"__isSmartRef__":true,"id":4229}},"4206":{"varMapping":{"__isSmartRef__":true,"id":4207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4207":{"this":{"__isSmartRef__":true,"id":4152}},"4208":{},"4209":{"varMapping":{"__isSmartRef__":true,"id":4210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4210":{"this":{"__isSmartRef__":true,"id":4152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4211}},"4211":{"$super":{"__isSmartRef__":true,"id":4212}},"4212":{"varMapping":{"__isSmartRef__":true,"id":4213},"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":4214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4213":{"obj":{"__isSmartRef__":true,"id":4152},"name":"onMouseDown"},"4214":{},"4215":{},"4216":{"varMapping":{"__isSmartRef__":true,"id":4217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4217":{"this":{"__isSmartRef__":true,"id":4152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4218}},"4218":{"$super":{"__isSmartRef__":true,"id":4219}},"4219":{"varMapping":{"__isSmartRef__":true,"id":4220},"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":4221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4220":{"obj":{"__isSmartRef__":true,"id":4152},"name":"onMouseUp"},"4221":{},"4222":{},"4223":{"varMapping":{"__isSmartRef__":true,"id":4224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4224":{"this":{"__isSmartRef__":true,"id":4152}},"4225":{},"4226":{"varMapping":{"__isSmartRef__":true,"id":4227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4227":{"this":{"__isSmartRef__":true,"id":4152}},"4228":{},"4229":{"varMapping":{"__isSmartRef__":true,"id":4230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4230":{"this":{"__isSmartRef__":true,"id":4152}},"4231":{},"4232":{"_Position":{"__isSmartRef__":true,"id":4233},"renderContextTable":{"__isSmartRef__":true,"id":4234},"_Extent":{"__isSmartRef__":true,"id":4235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4238":{"morph":{"__isSmartRef__":true,"id":4151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4239":{"layouter":{"__isSmartRef__":true,"id":4240},"resizeWidth":true},"4240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4242":{"x":0,"y":400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4244}},"4244":{"varMapping":{"__isSmartRef__":true,"id":4245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4245":{"this":{"__isSmartRef__":true,"id":4151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4246}},"4246":{"$super":{"__isSmartRef__":true,"id":4247}},"4247":{"varMapping":{"__isSmartRef__":true,"id":4248},"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":4249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4248":{"obj":{"__isSmartRef__":true,"id":4151},"name":"getLayoutableSubmorphs"},"4249":{},"4250":{},"4251":{"submorphs":[{"__isSmartRef__":true,"id":4252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4332},"id":133,"renderContextTable":{"__isSmartRef__":true,"id":4337},"eventHandler":{"__isSmartRef__":true,"id":4338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4252":{"submorphs":[{"__isSmartRef__":true,"id":4253},{"__isSmartRef__":true,"id":4278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4295},"id":130,"renderContextTable":{"__isSmartRef__":true,"id":4300},"eventHandler":{"__isSmartRef__":true,"id":4301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4302},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"forceHTML","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4253},"text":{"__isSmartRef__":true,"id":4278},"owner":{"__isSmartRef__":true,"id":4251},"_Position":{"__isSmartRef__":true,"id":4303},"priorExtent":{"__isSmartRef__":true,"id":4304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4254},"id":131,"renderContextTable":{"__isSmartRef__":true,"id":4260},"eventHandler":{"__isSmartRef__":true,"id":4261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4254":{"_Position":{"__isSmartRef__":true,"id":4255},"renderContextTable":{"__isSmartRef__":true,"id":4256},"_Extent":{"__isSmartRef__":true,"id":4257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4261":{"morph":{"__isSmartRef__":true,"id":4253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4263":{"onMouseUp":{"__isSmartRef__":true,"id":4264},"toggle":{"__isSmartRef__":true,"id":4271}},"4264":{"varMapping":{"__isSmartRef__":true,"id":4265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4265":{"this":{"__isSmartRef__":true,"id":4253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4266}},"4266":{"$super":{"__isSmartRef__":true,"id":4267}},"4267":{"varMapping":{"__isSmartRef__":true,"id":4268},"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":4269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4268":{"obj":{"__isSmartRef__":true,"id":4253},"name":"onMouseUp"},"4269":{},"4270":{},"4271":{"varMapping":{"__isSmartRef__":true,"id":4272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4272":{"this":{"__isSmartRef__":true,"id":4253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4273}},"4273":{"$super":{"__isSmartRef__":true,"id":4274}},"4274":{"varMapping":{"__isSmartRef__":true,"id":4275},"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":4276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4275":{"obj":{"__isSmartRef__":true,"id":4253},"name":"toggle"},"4276":{},"4277":{},"4278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4279},"id":132,"renderContextTable":{"__isSmartRef__":true,"id":4283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4284},{"__isSmartRef__":true,"id":4286}],"eventHandler":{"__isSmartRef__":true,"id":4288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4289},"priorExtent":{"__isSmartRef__":true,"id":4290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4279":{"_Position":{"__isSmartRef__":true,"id":4280},"renderContextTable":{"__isSmartRef__":true,"id":4281},"_Extent":{"__isSmartRef__":true,"id":4282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4282":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4284":{"style":{"__isSmartRef__":true,"id":4285},"chunkOwner":{"__isSmartRef__":true,"id":4278},"storedString":"forceHTML","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4286":{"style":{"__isSmartRef__":true,"id":4287},"chunkOwner":{"__isSmartRef__":true,"id":4278},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4288":{"morph":{"__isSmartRef__":true,"id":4278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4290":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4291":{"layoutText":{"__isSmartRef__":true,"id":4292}},"4292":{"varMapping":{"__isSmartRef__":true,"id":4293},"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":4294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4293":{"this":{"__isSmartRef__":true,"id":4278}},"4294":{},"4295":{"_Position":{"__isSmartRef__":true,"id":4296},"renderContextTable":{"__isSmartRef__":true,"id":4297},"_Extent":{"__isSmartRef__":true,"id":4298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4301":{"morph":{"__isSmartRef__":true,"id":4252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4302":{"resizeWidth":true},"4303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4305":{"updateExpanderColor":{"__isSmartRef__":true,"id":4306},"onMouseDown":{"__isSmartRef__":true,"id":4309},"onMouseUp":{"__isSmartRef__":true,"id":4316},"isRoot":{"__isSmartRef__":true,"id":4323},"displayValue":{"__isSmartRef__":true,"id":4326},"update":{"__isSmartRef__":true,"id":4329}},"4306":{"varMapping":{"__isSmartRef__":true,"id":4307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4307":{"this":{"__isSmartRef__":true,"id":4252}},"4308":{},"4309":{"varMapping":{"__isSmartRef__":true,"id":4310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4310":{"this":{"__isSmartRef__":true,"id":4252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4311}},"4311":{"$super":{"__isSmartRef__":true,"id":4312}},"4312":{"varMapping":{"__isSmartRef__":true,"id":4313},"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":4314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4313":{"obj":{"__isSmartRef__":true,"id":4252},"name":"onMouseDown"},"4314":{},"4315":{},"4316":{"varMapping":{"__isSmartRef__":true,"id":4317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4317":{"this":{"__isSmartRef__":true,"id":4252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4318}},"4318":{"$super":{"__isSmartRef__":true,"id":4319}},"4319":{"varMapping":{"__isSmartRef__":true,"id":4320},"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":4321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4320":{"obj":{"__isSmartRef__":true,"id":4252},"name":"onMouseUp"},"4321":{},"4322":{},"4323":{"varMapping":{"__isSmartRef__":true,"id":4324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4324":{"this":{"__isSmartRef__":true,"id":4252}},"4325":{},"4326":{"varMapping":{"__isSmartRef__":true,"id":4327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4327":{"this":{"__isSmartRef__":true,"id":4252}},"4328":{},"4329":{"varMapping":{"__isSmartRef__":true,"id":4330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4330":{"this":{"__isSmartRef__":true,"id":4252}},"4331":{},"4332":{"_Position":{"__isSmartRef__":true,"id":4333},"renderContextTable":{"__isSmartRef__":true,"id":4334},"_Extent":{"__isSmartRef__":true,"id":4335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4338":{"morph":{"__isSmartRef__":true,"id":4251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4339":{"layouter":{"__isSmartRef__":true,"id":4340},"resizeWidth":true},"4340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4342":{"x":0,"y":420,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4344}},"4344":{"varMapping":{"__isSmartRef__":true,"id":4345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4345":{"this":{"__isSmartRef__":true,"id":4251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4346}},"4346":{"$super":{"__isSmartRef__":true,"id":4347}},"4347":{"varMapping":{"__isSmartRef__":true,"id":4348},"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":4349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4348":{"obj":{"__isSmartRef__":true,"id":4251},"name":"getLayoutableSubmorphs"},"4349":{},"4350":{},"4351":{"submorphs":[{"__isSmartRef__":true,"id":4352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4432},"id":137,"renderContextTable":{"__isSmartRef__":true,"id":4437},"eventHandler":{"__isSmartRef__":true,"id":4438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4352":{"submorphs":[{"__isSmartRef__":true,"id":4353},{"__isSmartRef__":true,"id":4378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4395},"id":134,"renderContextTable":{"__isSmartRef__":true,"id":4400},"eventHandler":{"__isSmartRef__":true,"id":4401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4402},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"globalGrabbing","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4353},"text":{"__isSmartRef__":true,"id":4378},"owner":{"__isSmartRef__":true,"id":4351},"_Position":{"__isSmartRef__":true,"id":4403},"priorExtent":{"__isSmartRef__":true,"id":4404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4354},"id":135,"renderContextTable":{"__isSmartRef__":true,"id":4360},"eventHandler":{"__isSmartRef__":true,"id":4361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4354":{"_Position":{"__isSmartRef__":true,"id":4355},"renderContextTable":{"__isSmartRef__":true,"id":4356},"_Extent":{"__isSmartRef__":true,"id":4357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4361":{"morph":{"__isSmartRef__":true,"id":4353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4363":{"onMouseUp":{"__isSmartRef__":true,"id":4364},"toggle":{"__isSmartRef__":true,"id":4371}},"4364":{"varMapping":{"__isSmartRef__":true,"id":4365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4365":{"this":{"__isSmartRef__":true,"id":4353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4366}},"4366":{"$super":{"__isSmartRef__":true,"id":4367}},"4367":{"varMapping":{"__isSmartRef__":true,"id":4368},"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":4369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4368":{"obj":{"__isSmartRef__":true,"id":4353},"name":"onMouseUp"},"4369":{},"4370":{},"4371":{"varMapping":{"__isSmartRef__":true,"id":4372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4372":{"this":{"__isSmartRef__":true,"id":4353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4373}},"4373":{"$super":{"__isSmartRef__":true,"id":4374}},"4374":{"varMapping":{"__isSmartRef__":true,"id":4375},"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":4376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4375":{"obj":{"__isSmartRef__":true,"id":4353},"name":"toggle"},"4376":{},"4377":{},"4378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4379},"id":136,"renderContextTable":{"__isSmartRef__":true,"id":4383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4384},{"__isSmartRef__":true,"id":4386}],"eventHandler":{"__isSmartRef__":true,"id":4388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4389},"priorExtent":{"__isSmartRef__":true,"id":4390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4379":{"_Position":{"__isSmartRef__":true,"id":4380},"renderContextTable":{"__isSmartRef__":true,"id":4381},"_Extent":{"__isSmartRef__":true,"id":4382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4382":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4384":{"style":{"__isSmartRef__":true,"id":4385},"chunkOwner":{"__isSmartRef__":true,"id":4378},"storedString":"globalGrabbing","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4386":{"style":{"__isSmartRef__":true,"id":4387},"chunkOwner":{"__isSmartRef__":true,"id":4378},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4388":{"morph":{"__isSmartRef__":true,"id":4378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4390":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4391":{"layoutText":{"__isSmartRef__":true,"id":4392}},"4392":{"varMapping":{"__isSmartRef__":true,"id":4393},"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":4394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4393":{"this":{"__isSmartRef__":true,"id":4378}},"4394":{},"4395":{"_Position":{"__isSmartRef__":true,"id":4396},"renderContextTable":{"__isSmartRef__":true,"id":4397},"_Extent":{"__isSmartRef__":true,"id":4398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4401":{"morph":{"__isSmartRef__":true,"id":4352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4402":{"resizeWidth":true},"4403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4405":{"updateExpanderColor":{"__isSmartRef__":true,"id":4406},"onMouseDown":{"__isSmartRef__":true,"id":4409},"onMouseUp":{"__isSmartRef__":true,"id":4416},"isRoot":{"__isSmartRef__":true,"id":4423},"displayValue":{"__isSmartRef__":true,"id":4426},"update":{"__isSmartRef__":true,"id":4429}},"4406":{"varMapping":{"__isSmartRef__":true,"id":4407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4407":{"this":{"__isSmartRef__":true,"id":4352}},"4408":{},"4409":{"varMapping":{"__isSmartRef__":true,"id":4410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4410":{"this":{"__isSmartRef__":true,"id":4352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4411}},"4411":{"$super":{"__isSmartRef__":true,"id":4412}},"4412":{"varMapping":{"__isSmartRef__":true,"id":4413},"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":4414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4413":{"obj":{"__isSmartRef__":true,"id":4352},"name":"onMouseDown"},"4414":{},"4415":{},"4416":{"varMapping":{"__isSmartRef__":true,"id":4417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4417":{"this":{"__isSmartRef__":true,"id":4352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4418}},"4418":{"$super":{"__isSmartRef__":true,"id":4419}},"4419":{"varMapping":{"__isSmartRef__":true,"id":4420},"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":4421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4420":{"obj":{"__isSmartRef__":true,"id":4352},"name":"onMouseUp"},"4421":{},"4422":{},"4423":{"varMapping":{"__isSmartRef__":true,"id":4424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4424":{"this":{"__isSmartRef__":true,"id":4352}},"4425":{},"4426":{"varMapping":{"__isSmartRef__":true,"id":4427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4427":{"this":{"__isSmartRef__":true,"id":4352}},"4428":{},"4429":{"varMapping":{"__isSmartRef__":true,"id":4430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4430":{"this":{"__isSmartRef__":true,"id":4352}},"4431":{},"4432":{"_Position":{"__isSmartRef__":true,"id":4433},"renderContextTable":{"__isSmartRef__":true,"id":4434},"_Extent":{"__isSmartRef__":true,"id":4435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4438":{"morph":{"__isSmartRef__":true,"id":4351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4439":{"layouter":{"__isSmartRef__":true,"id":4440},"resizeWidth":true},"4440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4442":{"x":0,"y":440,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4444}},"4444":{"varMapping":{"__isSmartRef__":true,"id":4445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4445":{"this":{"__isSmartRef__":true,"id":4351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4446}},"4446":{"$super":{"__isSmartRef__":true,"id":4447}},"4447":{"varMapping":{"__isSmartRef__":true,"id":4448},"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":4449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4448":{"obj":{"__isSmartRef__":true,"id":4351},"name":"getLayoutableSubmorphs"},"4449":{},"4450":{},"4451":{"submorphs":[{"__isSmartRef__":true,"id":4452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4532},"id":141,"renderContextTable":{"__isSmartRef__":true,"id":4537},"eventHandler":{"__isSmartRef__":true,"id":4538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4452":{"submorphs":[{"__isSmartRef__":true,"id":4453},{"__isSmartRef__":true,"id":4478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4495},"id":138,"renderContextTable":{"__isSmartRef__":true,"id":4500},"eventHandler":{"__isSmartRef__":true,"id":4501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4502},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"handleOnCapture","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4453},"text":{"__isSmartRef__":true,"id":4478},"owner":{"__isSmartRef__":true,"id":4451},"_Position":{"__isSmartRef__":true,"id":4503},"priorExtent":{"__isSmartRef__":true,"id":4504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4454},"id":139,"renderContextTable":{"__isSmartRef__":true,"id":4460},"eventHandler":{"__isSmartRef__":true,"id":4461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4454":{"_Position":{"__isSmartRef__":true,"id":4455},"renderContextTable":{"__isSmartRef__":true,"id":4456},"_Extent":{"__isSmartRef__":true,"id":4457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4461":{"morph":{"__isSmartRef__":true,"id":4453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4463":{"onMouseUp":{"__isSmartRef__":true,"id":4464},"toggle":{"__isSmartRef__":true,"id":4471}},"4464":{"varMapping":{"__isSmartRef__":true,"id":4465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4465":{"this":{"__isSmartRef__":true,"id":4453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4466}},"4466":{"$super":{"__isSmartRef__":true,"id":4467}},"4467":{"varMapping":{"__isSmartRef__":true,"id":4468},"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":4469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4468":{"obj":{"__isSmartRef__":true,"id":4453},"name":"onMouseUp"},"4469":{},"4470":{},"4471":{"varMapping":{"__isSmartRef__":true,"id":4472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4472":{"this":{"__isSmartRef__":true,"id":4453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4473}},"4473":{"$super":{"__isSmartRef__":true,"id":4474}},"4474":{"varMapping":{"__isSmartRef__":true,"id":4475},"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":4476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4475":{"obj":{"__isSmartRef__":true,"id":4453},"name":"toggle"},"4476":{},"4477":{},"4478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4479},"id":140,"renderContextTable":{"__isSmartRef__":true,"id":4483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4484},{"__isSmartRef__":true,"id":4486}],"eventHandler":{"__isSmartRef__":true,"id":4488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4489},"priorExtent":{"__isSmartRef__":true,"id":4490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4479":{"_Position":{"__isSmartRef__":true,"id":4480},"renderContextTable":{"__isSmartRef__":true,"id":4481},"_Extent":{"__isSmartRef__":true,"id":4482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4482":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4484":{"style":{"__isSmartRef__":true,"id":4485},"chunkOwner":{"__isSmartRef__":true,"id":4478},"storedString":"handleOnCapture","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4486":{"style":{"__isSmartRef__":true,"id":4487},"chunkOwner":{"__isSmartRef__":true,"id":4478},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4488":{"morph":{"__isSmartRef__":true,"id":4478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4490":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4491":{"layoutText":{"__isSmartRef__":true,"id":4492}},"4492":{"varMapping":{"__isSmartRef__":true,"id":4493},"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":4494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4493":{"this":{"__isSmartRef__":true,"id":4478}},"4494":{},"4495":{"_Position":{"__isSmartRef__":true,"id":4496},"renderContextTable":{"__isSmartRef__":true,"id":4497},"_Extent":{"__isSmartRef__":true,"id":4498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4501":{"morph":{"__isSmartRef__":true,"id":4452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4502":{"resizeWidth":true},"4503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4505":{"updateExpanderColor":{"__isSmartRef__":true,"id":4506},"onMouseDown":{"__isSmartRef__":true,"id":4509},"onMouseUp":{"__isSmartRef__":true,"id":4516},"isRoot":{"__isSmartRef__":true,"id":4523},"displayValue":{"__isSmartRef__":true,"id":4526},"update":{"__isSmartRef__":true,"id":4529}},"4506":{"varMapping":{"__isSmartRef__":true,"id":4507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4507":{"this":{"__isSmartRef__":true,"id":4452}},"4508":{},"4509":{"varMapping":{"__isSmartRef__":true,"id":4510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4510":{"this":{"__isSmartRef__":true,"id":4452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4511}},"4511":{"$super":{"__isSmartRef__":true,"id":4512}},"4512":{"varMapping":{"__isSmartRef__":true,"id":4513},"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":4514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4513":{"obj":{"__isSmartRef__":true,"id":4452},"name":"onMouseDown"},"4514":{},"4515":{},"4516":{"varMapping":{"__isSmartRef__":true,"id":4517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4517":{"this":{"__isSmartRef__":true,"id":4452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4518}},"4518":{"$super":{"__isSmartRef__":true,"id":4519}},"4519":{"varMapping":{"__isSmartRef__":true,"id":4520},"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":4521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4520":{"obj":{"__isSmartRef__":true,"id":4452},"name":"onMouseUp"},"4521":{},"4522":{},"4523":{"varMapping":{"__isSmartRef__":true,"id":4524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4524":{"this":{"__isSmartRef__":true,"id":4452}},"4525":{},"4526":{"varMapping":{"__isSmartRef__":true,"id":4527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4527":{"this":{"__isSmartRef__":true,"id":4452}},"4528":{},"4529":{"varMapping":{"__isSmartRef__":true,"id":4530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4530":{"this":{"__isSmartRef__":true,"id":4452}},"4531":{},"4532":{"_Position":{"__isSmartRef__":true,"id":4533},"renderContextTable":{"__isSmartRef__":true,"id":4534},"_Extent":{"__isSmartRef__":true,"id":4535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4538":{"morph":{"__isSmartRef__":true,"id":4451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4539":{"layouter":{"__isSmartRef__":true,"id":4540},"resizeWidth":true},"4540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4542":{"x":0,"y":460,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4544}},"4544":{"varMapping":{"__isSmartRef__":true,"id":4545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4545":{"this":{"__isSmartRef__":true,"id":4451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4546}},"4546":{"$super":{"__isSmartRef__":true,"id":4547}},"4547":{"varMapping":{"__isSmartRef__":true,"id":4548},"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":4549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4548":{"obj":{"__isSmartRef__":true,"id":4451},"name":"getLayoutableSubmorphs"},"4549":{},"4550":{},"4551":{"submorphs":[{"__isSmartRef__":true,"id":4552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4632},"id":145,"renderContextTable":{"__isSmartRef__":true,"id":4637},"eventHandler":{"__isSmartRef__":true,"id":4638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4552":{"submorphs":[{"__isSmartRef__":true,"id":4553},{"__isSmartRef__":true,"id":4578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4595},"id":142,"renderContextTable":{"__isSmartRef__":true,"id":4600},"eventHandler":{"__isSmartRef__":true,"id":4601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4602},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"hideSystemCursor","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4553},"text":{"__isSmartRef__":true,"id":4578},"owner":{"__isSmartRef__":true,"id":4551},"_Position":{"__isSmartRef__":true,"id":4603},"priorExtent":{"__isSmartRef__":true,"id":4604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4554},"id":143,"renderContextTable":{"__isSmartRef__":true,"id":4560},"eventHandler":{"__isSmartRef__":true,"id":4561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4554":{"_Position":{"__isSmartRef__":true,"id":4555},"renderContextTable":{"__isSmartRef__":true,"id":4556},"_Extent":{"__isSmartRef__":true,"id":4557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4561":{"morph":{"__isSmartRef__":true,"id":4553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4563":{"onMouseUp":{"__isSmartRef__":true,"id":4564},"toggle":{"__isSmartRef__":true,"id":4571}},"4564":{"varMapping":{"__isSmartRef__":true,"id":4565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4565":{"this":{"__isSmartRef__":true,"id":4553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4566}},"4566":{"$super":{"__isSmartRef__":true,"id":4567}},"4567":{"varMapping":{"__isSmartRef__":true,"id":4568},"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":4569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4568":{"obj":{"__isSmartRef__":true,"id":4553},"name":"onMouseUp"},"4569":{},"4570":{},"4571":{"varMapping":{"__isSmartRef__":true,"id":4572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4572":{"this":{"__isSmartRef__":true,"id":4553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4573}},"4573":{"$super":{"__isSmartRef__":true,"id":4574}},"4574":{"varMapping":{"__isSmartRef__":true,"id":4575},"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":4576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4575":{"obj":{"__isSmartRef__":true,"id":4553},"name":"toggle"},"4576":{},"4577":{},"4578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4579},"id":144,"renderContextTable":{"__isSmartRef__":true,"id":4583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4584},{"__isSmartRef__":true,"id":4586}],"eventHandler":{"__isSmartRef__":true,"id":4588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4589},"priorExtent":{"__isSmartRef__":true,"id":4590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4579":{"_Position":{"__isSmartRef__":true,"id":4580},"renderContextTable":{"__isSmartRef__":true,"id":4581},"_Extent":{"__isSmartRef__":true,"id":4582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4582":{"x":180.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4584":{"style":{"__isSmartRef__":true,"id":4585},"chunkOwner":{"__isSmartRef__":true,"id":4578},"storedString":"hideSystemCursor","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4586":{"style":{"__isSmartRef__":true,"id":4587},"chunkOwner":{"__isSmartRef__":true,"id":4578},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4588":{"morph":{"__isSmartRef__":true,"id":4578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4590":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4591":{"layoutText":{"__isSmartRef__":true,"id":4592}},"4592":{"varMapping":{"__isSmartRef__":true,"id":4593},"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":4594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4593":{"this":{"__isSmartRef__":true,"id":4578}},"4594":{},"4595":{"_Position":{"__isSmartRef__":true,"id":4596},"renderContextTable":{"__isSmartRef__":true,"id":4597},"_Extent":{"__isSmartRef__":true,"id":4598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4601":{"morph":{"__isSmartRef__":true,"id":4552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4602":{"resizeWidth":true},"4603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4605":{"updateExpanderColor":{"__isSmartRef__":true,"id":4606},"onMouseDown":{"__isSmartRef__":true,"id":4609},"onMouseUp":{"__isSmartRef__":true,"id":4616},"isRoot":{"__isSmartRef__":true,"id":4623},"displayValue":{"__isSmartRef__":true,"id":4626},"update":{"__isSmartRef__":true,"id":4629}},"4606":{"varMapping":{"__isSmartRef__":true,"id":4607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4607":{"this":{"__isSmartRef__":true,"id":4552}},"4608":{},"4609":{"varMapping":{"__isSmartRef__":true,"id":4610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4610":{"this":{"__isSmartRef__":true,"id":4552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4611}},"4611":{"$super":{"__isSmartRef__":true,"id":4612}},"4612":{"varMapping":{"__isSmartRef__":true,"id":4613},"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":4614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4613":{"obj":{"__isSmartRef__":true,"id":4552},"name":"onMouseDown"},"4614":{},"4615":{},"4616":{"varMapping":{"__isSmartRef__":true,"id":4617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4617":{"this":{"__isSmartRef__":true,"id":4552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4618}},"4618":{"$super":{"__isSmartRef__":true,"id":4619}},"4619":{"varMapping":{"__isSmartRef__":true,"id":4620},"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":4621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4620":{"obj":{"__isSmartRef__":true,"id":4552},"name":"onMouseUp"},"4621":{},"4622":{},"4623":{"varMapping":{"__isSmartRef__":true,"id":4624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4624":{"this":{"__isSmartRef__":true,"id":4552}},"4625":{},"4626":{"varMapping":{"__isSmartRef__":true,"id":4627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4627":{"this":{"__isSmartRef__":true,"id":4552}},"4628":{},"4629":{"varMapping":{"__isSmartRef__":true,"id":4630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4630":{"this":{"__isSmartRef__":true,"id":4552}},"4631":{},"4632":{"_Position":{"__isSmartRef__":true,"id":4633},"renderContextTable":{"__isSmartRef__":true,"id":4634},"_Extent":{"__isSmartRef__":true,"id":4635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4638":{"morph":{"__isSmartRef__":true,"id":4551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4639":{"layouter":{"__isSmartRef__":true,"id":4640},"resizeWidth":true},"4640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4642":{"x":0,"y":480,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4644}},"4644":{"varMapping":{"__isSmartRef__":true,"id":4645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4645":{"this":{"__isSmartRef__":true,"id":4551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4646}},"4646":{"$super":{"__isSmartRef__":true,"id":4647}},"4647":{"varMapping":{"__isSmartRef__":true,"id":4648},"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":4649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4648":{"obj":{"__isSmartRef__":true,"id":4551},"name":"getLayoutableSubmorphs"},"4649":{},"4650":{},"4651":{"submorphs":[{"__isSmartRef__":true,"id":4652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4732},"id":149,"renderContextTable":{"__isSmartRef__":true,"id":4737},"eventHandler":{"__isSmartRef__":true,"id":4738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4652":{"submorphs":[{"__isSmartRef__":true,"id":4653},{"__isSmartRef__":true,"id":4678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4695},"id":146,"renderContextTable":{"__isSmartRef__":true,"id":4700},"eventHandler":{"__isSmartRef__":true,"id":4701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4702},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"ignoreAdvice","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4653},"text":{"__isSmartRef__":true,"id":4678},"owner":{"__isSmartRef__":true,"id":4651},"_Position":{"__isSmartRef__":true,"id":4703},"priorExtent":{"__isSmartRef__":true,"id":4704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4654},"id":147,"renderContextTable":{"__isSmartRef__":true,"id":4660},"eventHandler":{"__isSmartRef__":true,"id":4661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4654":{"_Position":{"__isSmartRef__":true,"id":4655},"renderContextTable":{"__isSmartRef__":true,"id":4656},"_Extent":{"__isSmartRef__":true,"id":4657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4661":{"morph":{"__isSmartRef__":true,"id":4653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4663":{"onMouseUp":{"__isSmartRef__":true,"id":4664},"toggle":{"__isSmartRef__":true,"id":4671}},"4664":{"varMapping":{"__isSmartRef__":true,"id":4665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4665":{"this":{"__isSmartRef__":true,"id":4653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4666}},"4666":{"$super":{"__isSmartRef__":true,"id":4667}},"4667":{"varMapping":{"__isSmartRef__":true,"id":4668},"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":4669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4668":{"obj":{"__isSmartRef__":true,"id":4653},"name":"onMouseUp"},"4669":{},"4670":{},"4671":{"varMapping":{"__isSmartRef__":true,"id":4672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4672":{"this":{"__isSmartRef__":true,"id":4653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4673}},"4673":{"$super":{"__isSmartRef__":true,"id":4674}},"4674":{"varMapping":{"__isSmartRef__":true,"id":4675},"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":4676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4675":{"obj":{"__isSmartRef__":true,"id":4653},"name":"toggle"},"4676":{},"4677":{},"4678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4679},"id":148,"renderContextTable":{"__isSmartRef__":true,"id":4683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4684},{"__isSmartRef__":true,"id":4686}],"eventHandler":{"__isSmartRef__":true,"id":4688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4689},"priorExtent":{"__isSmartRef__":true,"id":4690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4679":{"_Position":{"__isSmartRef__":true,"id":4680},"renderContextTable":{"__isSmartRef__":true,"id":4681},"_Extent":{"__isSmartRef__":true,"id":4682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4682":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4684":{"style":{"__isSmartRef__":true,"id":4685},"chunkOwner":{"__isSmartRef__":true,"id":4678},"storedString":"ignoreAdvice","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4686":{"style":{"__isSmartRef__":true,"id":4687},"chunkOwner":{"__isSmartRef__":true,"id":4678},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4688":{"morph":{"__isSmartRef__":true,"id":4678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4690":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4691":{"layoutText":{"__isSmartRef__":true,"id":4692}},"4692":{"varMapping":{"__isSmartRef__":true,"id":4693},"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":4694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4693":{"this":{"__isSmartRef__":true,"id":4678}},"4694":{},"4695":{"_Position":{"__isSmartRef__":true,"id":4696},"renderContextTable":{"__isSmartRef__":true,"id":4697},"_Extent":{"__isSmartRef__":true,"id":4698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4701":{"morph":{"__isSmartRef__":true,"id":4652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4702":{"resizeWidth":true},"4703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4705":{"updateExpanderColor":{"__isSmartRef__":true,"id":4706},"onMouseDown":{"__isSmartRef__":true,"id":4709},"onMouseUp":{"__isSmartRef__":true,"id":4716},"isRoot":{"__isSmartRef__":true,"id":4723},"displayValue":{"__isSmartRef__":true,"id":4726},"update":{"__isSmartRef__":true,"id":4729}},"4706":{"varMapping":{"__isSmartRef__":true,"id":4707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4707":{"this":{"__isSmartRef__":true,"id":4652}},"4708":{},"4709":{"varMapping":{"__isSmartRef__":true,"id":4710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4710":{"this":{"__isSmartRef__":true,"id":4652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4711}},"4711":{"$super":{"__isSmartRef__":true,"id":4712}},"4712":{"varMapping":{"__isSmartRef__":true,"id":4713},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4713":{"obj":{"__isSmartRef__":true,"id":4652},"name":"onMouseDown"},"4714":{},"4715":{},"4716":{"varMapping":{"__isSmartRef__":true,"id":4717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4717":{"this":{"__isSmartRef__":true,"id":4652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4718}},"4718":{"$super":{"__isSmartRef__":true,"id":4719}},"4719":{"varMapping":{"__isSmartRef__":true,"id":4720},"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":4721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4720":{"obj":{"__isSmartRef__":true,"id":4652},"name":"onMouseUp"},"4721":{},"4722":{},"4723":{"varMapping":{"__isSmartRef__":true,"id":4724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4724":{"this":{"__isSmartRef__":true,"id":4652}},"4725":{},"4726":{"varMapping":{"__isSmartRef__":true,"id":4727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4727":{"this":{"__isSmartRef__":true,"id":4652}},"4728":{},"4729":{"varMapping":{"__isSmartRef__":true,"id":4730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4730":{"this":{"__isSmartRef__":true,"id":4652}},"4731":{},"4732":{"_Position":{"__isSmartRef__":true,"id":4733},"renderContextTable":{"__isSmartRef__":true,"id":4734},"_Extent":{"__isSmartRef__":true,"id":4735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4738":{"morph":{"__isSmartRef__":true,"id":4651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4739":{"layouter":{"__isSmartRef__":true,"id":4740},"resizeWidth":true},"4740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4742":{"x":0,"y":500,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4744}},"4744":{"varMapping":{"__isSmartRef__":true,"id":4745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4745":{"this":{"__isSmartRef__":true,"id":4651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4746}},"4746":{"$super":{"__isSmartRef__":true,"id":4747}},"4747":{"varMapping":{"__isSmartRef__":true,"id":4748},"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":4749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4748":{"obj":{"__isSmartRef__":true,"id":4651},"name":"getLayoutableSubmorphs"},"4749":{},"4750":{},"4751":{"submorphs":[{"__isSmartRef__":true,"id":4752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4832},"id":153,"renderContextTable":{"__isSmartRef__":true,"id":4837},"eventHandler":{"__isSmartRef__":true,"id":4838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4752":{"submorphs":[{"__isSmartRef__":true,"id":4753},{"__isSmartRef__":true,"id":4778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4795},"id":150,"renderContextTable":{"__isSmartRef__":true,"id":4800},"eventHandler":{"__isSmartRef__":true,"id":4801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4802},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"ignoreClassNotFound","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4753},"text":{"__isSmartRef__":true,"id":4778},"owner":{"__isSmartRef__":true,"id":4751},"_Position":{"__isSmartRef__":true,"id":4803},"priorExtent":{"__isSmartRef__":true,"id":4804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4754},"id":151,"renderContextTable":{"__isSmartRef__":true,"id":4760},"eventHandler":{"__isSmartRef__":true,"id":4761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4754":{"_Position":{"__isSmartRef__":true,"id":4755},"renderContextTable":{"__isSmartRef__":true,"id":4756},"_Extent":{"__isSmartRef__":true,"id":4757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4761":{"morph":{"__isSmartRef__":true,"id":4753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4763":{"onMouseUp":{"__isSmartRef__":true,"id":4764},"toggle":{"__isSmartRef__":true,"id":4771}},"4764":{"varMapping":{"__isSmartRef__":true,"id":4765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4765":{"this":{"__isSmartRef__":true,"id":4753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4766}},"4766":{"$super":{"__isSmartRef__":true,"id":4767}},"4767":{"varMapping":{"__isSmartRef__":true,"id":4768},"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":4769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4768":{"obj":{"__isSmartRef__":true,"id":4753},"name":"onMouseUp"},"4769":{},"4770":{},"4771":{"varMapping":{"__isSmartRef__":true,"id":4772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4772":{"this":{"__isSmartRef__":true,"id":4753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4773}},"4773":{"$super":{"__isSmartRef__":true,"id":4774}},"4774":{"varMapping":{"__isSmartRef__":true,"id":4775},"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":4776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4775":{"obj":{"__isSmartRef__":true,"id":4753},"name":"toggle"},"4776":{},"4777":{},"4778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4779},"id":152,"renderContextTable":{"__isSmartRef__":true,"id":4783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4784},{"__isSmartRef__":true,"id":4786}],"eventHandler":{"__isSmartRef__":true,"id":4788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4789},"priorExtent":{"__isSmartRef__":true,"id":4790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4779":{"_Position":{"__isSmartRef__":true,"id":4780},"renderContextTable":{"__isSmartRef__":true,"id":4781},"_Extent":{"__isSmartRef__":true,"id":4782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4782":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4784":{"style":{"__isSmartRef__":true,"id":4785},"chunkOwner":{"__isSmartRef__":true,"id":4778},"storedString":"ignoreClassNotFound","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4786":{"style":{"__isSmartRef__":true,"id":4787},"chunkOwner":{"__isSmartRef__":true,"id":4778},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4788":{"morph":{"__isSmartRef__":true,"id":4778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4790":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4791":{"layoutText":{"__isSmartRef__":true,"id":4792}},"4792":{"varMapping":{"__isSmartRef__":true,"id":4793},"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":4794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4793":{"this":{"__isSmartRef__":true,"id":4778}},"4794":{},"4795":{"_Position":{"__isSmartRef__":true,"id":4796},"renderContextTable":{"__isSmartRef__":true,"id":4797},"_Extent":{"__isSmartRef__":true,"id":4798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4801":{"morph":{"__isSmartRef__":true,"id":4752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4802":{"resizeWidth":true},"4803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4805":{"updateExpanderColor":{"__isSmartRef__":true,"id":4806},"onMouseDown":{"__isSmartRef__":true,"id":4809},"onMouseUp":{"__isSmartRef__":true,"id":4816},"isRoot":{"__isSmartRef__":true,"id":4823},"displayValue":{"__isSmartRef__":true,"id":4826},"update":{"__isSmartRef__":true,"id":4829}},"4806":{"varMapping":{"__isSmartRef__":true,"id":4807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4807":{"this":{"__isSmartRef__":true,"id":4752}},"4808":{},"4809":{"varMapping":{"__isSmartRef__":true,"id":4810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4810":{"this":{"__isSmartRef__":true,"id":4752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4811}},"4811":{"$super":{"__isSmartRef__":true,"id":4812}},"4812":{"varMapping":{"__isSmartRef__":true,"id":4813},"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":4814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4813":{"obj":{"__isSmartRef__":true,"id":4752},"name":"onMouseDown"},"4814":{},"4815":{},"4816":{"varMapping":{"__isSmartRef__":true,"id":4817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4817":{"this":{"__isSmartRef__":true,"id":4752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4818}},"4818":{"$super":{"__isSmartRef__":true,"id":4819}},"4819":{"varMapping":{"__isSmartRef__":true,"id":4820},"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":4821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4820":{"obj":{"__isSmartRef__":true,"id":4752},"name":"onMouseUp"},"4821":{},"4822":{},"4823":{"varMapping":{"__isSmartRef__":true,"id":4824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4824":{"this":{"__isSmartRef__":true,"id":4752}},"4825":{},"4826":{"varMapping":{"__isSmartRef__":true,"id":4827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4827":{"this":{"__isSmartRef__":true,"id":4752}},"4828":{},"4829":{"varMapping":{"__isSmartRef__":true,"id":4830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4830":{"this":{"__isSmartRef__":true,"id":4752}},"4831":{},"4832":{"_Position":{"__isSmartRef__":true,"id":4833},"renderContextTable":{"__isSmartRef__":true,"id":4834},"_Extent":{"__isSmartRef__":true,"id":4835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4838":{"morph":{"__isSmartRef__":true,"id":4751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4839":{"layouter":{"__isSmartRef__":true,"id":4840},"resizeWidth":true},"4840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4842":{"x":0,"y":520,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4844}},"4844":{"varMapping":{"__isSmartRef__":true,"id":4845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4845":{"this":{"__isSmartRef__":true,"id":4751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4846}},"4846":{"$super":{"__isSmartRef__":true,"id":4847}},"4847":{"varMapping":{"__isSmartRef__":true,"id":4848},"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":4849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4848":{"obj":{"__isSmartRef__":true,"id":4751},"name":"getLayoutableSubmorphs"},"4849":{},"4850":{},"4851":{"submorphs":[{"__isSmartRef__":true,"id":4852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4932},"id":157,"renderContextTable":{"__isSmartRef__":true,"id":4937},"eventHandler":{"__isSmartRef__":true,"id":4938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":4942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4852":{"submorphs":[{"__isSmartRef__":true,"id":4853},{"__isSmartRef__":true,"id":4878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4895},"id":154,"renderContextTable":{"__isSmartRef__":true,"id":4900},"eventHandler":{"__isSmartRef__":true,"id":4901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4902},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"ignoreLoadingErrors","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4853},"text":{"__isSmartRef__":true,"id":4878},"owner":{"__isSmartRef__":true,"id":4851},"_Position":{"__isSmartRef__":true,"id":4903},"priorExtent":{"__isSmartRef__":true,"id":4904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4854},"id":155,"renderContextTable":{"__isSmartRef__":true,"id":4860},"eventHandler":{"__isSmartRef__":true,"id":4861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4854":{"_Position":{"__isSmartRef__":true,"id":4855},"renderContextTable":{"__isSmartRef__":true,"id":4856},"_Extent":{"__isSmartRef__":true,"id":4857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4861":{"morph":{"__isSmartRef__":true,"id":4853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4863":{"onMouseUp":{"__isSmartRef__":true,"id":4864},"toggle":{"__isSmartRef__":true,"id":4871}},"4864":{"varMapping":{"__isSmartRef__":true,"id":4865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4865":{"this":{"__isSmartRef__":true,"id":4853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4866}},"4866":{"$super":{"__isSmartRef__":true,"id":4867}},"4867":{"varMapping":{"__isSmartRef__":true,"id":4868},"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":4869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4868":{"obj":{"__isSmartRef__":true,"id":4853},"name":"onMouseUp"},"4869":{},"4870":{},"4871":{"varMapping":{"__isSmartRef__":true,"id":4872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4872":{"this":{"__isSmartRef__":true,"id":4853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4873}},"4873":{"$super":{"__isSmartRef__":true,"id":4874}},"4874":{"varMapping":{"__isSmartRef__":true,"id":4875},"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":4876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4875":{"obj":{"__isSmartRef__":true,"id":4853},"name":"toggle"},"4876":{},"4877":{},"4878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4879},"id":156,"renderContextTable":{"__isSmartRef__":true,"id":4883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4884},{"__isSmartRef__":true,"id":4886}],"eventHandler":{"__isSmartRef__":true,"id":4888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4889},"priorExtent":{"__isSmartRef__":true,"id":4890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4879":{"_Position":{"__isSmartRef__":true,"id":4880},"renderContextTable":{"__isSmartRef__":true,"id":4881},"_Extent":{"__isSmartRef__":true,"id":4882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4882":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4884":{"style":{"__isSmartRef__":true,"id":4885},"chunkOwner":{"__isSmartRef__":true,"id":4878},"storedString":"ignoreLoadingErrors","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4886":{"style":{"__isSmartRef__":true,"id":4887},"chunkOwner":{"__isSmartRef__":true,"id":4878},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4888":{"morph":{"__isSmartRef__":true,"id":4878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4890":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4891":{"layoutText":{"__isSmartRef__":true,"id":4892}},"4892":{"varMapping":{"__isSmartRef__":true,"id":4893},"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":4894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4893":{"this":{"__isSmartRef__":true,"id":4878}},"4894":{},"4895":{"_Position":{"__isSmartRef__":true,"id":4896},"renderContextTable":{"__isSmartRef__":true,"id":4897},"_Extent":{"__isSmartRef__":true,"id":4898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4901":{"morph":{"__isSmartRef__":true,"id":4852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4902":{"resizeWidth":true},"4903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4905":{"updateExpanderColor":{"__isSmartRef__":true,"id":4906},"onMouseDown":{"__isSmartRef__":true,"id":4909},"onMouseUp":{"__isSmartRef__":true,"id":4916},"isRoot":{"__isSmartRef__":true,"id":4923},"displayValue":{"__isSmartRef__":true,"id":4926},"update":{"__isSmartRef__":true,"id":4929}},"4906":{"varMapping":{"__isSmartRef__":true,"id":4907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":4908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4907":{"this":{"__isSmartRef__":true,"id":4852}},"4908":{},"4909":{"varMapping":{"__isSmartRef__":true,"id":4910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4910":{"this":{"__isSmartRef__":true,"id":4852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4911}},"4911":{"$super":{"__isSmartRef__":true,"id":4912}},"4912":{"varMapping":{"__isSmartRef__":true,"id":4913},"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":4914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4913":{"obj":{"__isSmartRef__":true,"id":4852},"name":"onMouseDown"},"4914":{},"4915":{},"4916":{"varMapping":{"__isSmartRef__":true,"id":4917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4917":{"this":{"__isSmartRef__":true,"id":4852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4918}},"4918":{"$super":{"__isSmartRef__":true,"id":4919}},"4919":{"varMapping":{"__isSmartRef__":true,"id":4920},"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":4921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4920":{"obj":{"__isSmartRef__":true,"id":4852},"name":"onMouseUp"},"4921":{},"4922":{},"4923":{"varMapping":{"__isSmartRef__":true,"id":4924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4924":{"this":{"__isSmartRef__":true,"id":4852}},"4925":{},"4926":{"varMapping":{"__isSmartRef__":true,"id":4927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":4928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4927":{"this":{"__isSmartRef__":true,"id":4852}},"4928":{},"4929":{"varMapping":{"__isSmartRef__":true,"id":4930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4930":{"this":{"__isSmartRef__":true,"id":4852}},"4931":{},"4932":{"_Position":{"__isSmartRef__":true,"id":4933},"renderContextTable":{"__isSmartRef__":true,"id":4934},"_Extent":{"__isSmartRef__":true,"id":4935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4938":{"morph":{"__isSmartRef__":true,"id":4851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4939":{"layouter":{"__isSmartRef__":true,"id":4940},"resizeWidth":true},"4940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4942":{"x":0,"y":540,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4944}},"4944":{"varMapping":{"__isSmartRef__":true,"id":4945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4945":{"this":{"__isSmartRef__":true,"id":4851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4946}},"4946":{"$super":{"__isSmartRef__":true,"id":4947}},"4947":{"varMapping":{"__isSmartRef__":true,"id":4948},"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":4949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4948":{"obj":{"__isSmartRef__":true,"id":4851},"name":"getLayoutableSubmorphs"},"4949":{},"4950":{},"4951":{"submorphs":[{"__isSmartRef__":true,"id":4952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5032},"id":161,"renderContextTable":{"__isSmartRef__":true,"id":5037},"eventHandler":{"__isSmartRef__":true,"id":5038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4952":{"submorphs":[{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":4978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4995},"id":158,"renderContextTable":{"__isSmartRef__":true,"id":5000},"eventHandler":{"__isSmartRef__":true,"id":5001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5002},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"ignoredepricatedProceed","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":4953},"text":{"__isSmartRef__":true,"id":4978},"owner":{"__isSmartRef__":true,"id":4951},"_Position":{"__isSmartRef__":true,"id":5003},"priorExtent":{"__isSmartRef__":true,"id":5004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4954},"id":159,"renderContextTable":{"__isSmartRef__":true,"id":4960},"eventHandler":{"__isSmartRef__":true,"id":4961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4954":{"_Position":{"__isSmartRef__":true,"id":4955},"renderContextTable":{"__isSmartRef__":true,"id":4956},"_Extent":{"__isSmartRef__":true,"id":4957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":4959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4961":{"morph":{"__isSmartRef__":true,"id":4953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4963":{"onMouseUp":{"__isSmartRef__":true,"id":4964},"toggle":{"__isSmartRef__":true,"id":4971}},"4964":{"varMapping":{"__isSmartRef__":true,"id":4965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":4970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4965":{"this":{"__isSmartRef__":true,"id":4953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4966}},"4966":{"$super":{"__isSmartRef__":true,"id":4967}},"4967":{"varMapping":{"__isSmartRef__":true,"id":4968},"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":4969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4968":{"obj":{"__isSmartRef__":true,"id":4953},"name":"onMouseUp"},"4969":{},"4970":{},"4971":{"varMapping":{"__isSmartRef__":true,"id":4972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":4977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4972":{"this":{"__isSmartRef__":true,"id":4953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4973}},"4973":{"$super":{"__isSmartRef__":true,"id":4974}},"4974":{"varMapping":{"__isSmartRef__":true,"id":4975},"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":4976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4975":{"obj":{"__isSmartRef__":true,"id":4953},"name":"toggle"},"4976":{},"4977":{},"4978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4979},"id":160,"renderContextTable":{"__isSmartRef__":true,"id":4983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4984},{"__isSmartRef__":true,"id":4986}],"eventHandler":{"__isSmartRef__":true,"id":4988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4989},"priorExtent":{"__isSmartRef__":true,"id":4990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4979":{"_Position":{"__isSmartRef__":true,"id":4980},"renderContextTable":{"__isSmartRef__":true,"id":4981},"_Extent":{"__isSmartRef__":true,"id":4982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4982":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4984":{"style":{"__isSmartRef__":true,"id":4985},"chunkOwner":{"__isSmartRef__":true,"id":4978},"storedString":"ignoredepricatedProceed","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4986":{"style":{"__isSmartRef__":true,"id":4987},"chunkOwner":{"__isSmartRef__":true,"id":4978},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4988":{"morph":{"__isSmartRef__":true,"id":4978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4990":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4991":{"layoutText":{"__isSmartRef__":true,"id":4992}},"4992":{"varMapping":{"__isSmartRef__":true,"id":4993},"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":4994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4993":{"this":{"__isSmartRef__":true,"id":4978}},"4994":{},"4995":{"_Position":{"__isSmartRef__":true,"id":4996},"renderContextTable":{"__isSmartRef__":true,"id":4997},"_Extent":{"__isSmartRef__":true,"id":4998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5001":{"morph":{"__isSmartRef__":true,"id":4952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5002":{"resizeWidth":true},"5003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5005":{"updateExpanderColor":{"__isSmartRef__":true,"id":5006},"onMouseDown":{"__isSmartRef__":true,"id":5009},"onMouseUp":{"__isSmartRef__":true,"id":5016},"isRoot":{"__isSmartRef__":true,"id":5023},"displayValue":{"__isSmartRef__":true,"id":5026},"update":{"__isSmartRef__":true,"id":5029}},"5006":{"varMapping":{"__isSmartRef__":true,"id":5007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5007":{"this":{"__isSmartRef__":true,"id":4952}},"5008":{},"5009":{"varMapping":{"__isSmartRef__":true,"id":5010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5010":{"this":{"__isSmartRef__":true,"id":4952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5011}},"5011":{"$super":{"__isSmartRef__":true,"id":5012}},"5012":{"varMapping":{"__isSmartRef__":true,"id":5013},"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":5014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5013":{"obj":{"__isSmartRef__":true,"id":4952},"name":"onMouseDown"},"5014":{},"5015":{},"5016":{"varMapping":{"__isSmartRef__":true,"id":5017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5017":{"this":{"__isSmartRef__":true,"id":4952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5018}},"5018":{"$super":{"__isSmartRef__":true,"id":5019}},"5019":{"varMapping":{"__isSmartRef__":true,"id":5020},"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":5021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5020":{"obj":{"__isSmartRef__":true,"id":4952},"name":"onMouseUp"},"5021":{},"5022":{},"5023":{"varMapping":{"__isSmartRef__":true,"id":5024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5024":{"this":{"__isSmartRef__":true,"id":4952}},"5025":{},"5026":{"varMapping":{"__isSmartRef__":true,"id":5027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5027":{"this":{"__isSmartRef__":true,"id":4952}},"5028":{},"5029":{"varMapping":{"__isSmartRef__":true,"id":5030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5030":{"this":{"__isSmartRef__":true,"id":4952}},"5031":{},"5032":{"_Position":{"__isSmartRef__":true,"id":5033},"renderContextTable":{"__isSmartRef__":true,"id":5034},"_Extent":{"__isSmartRef__":true,"id":5035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5038":{"morph":{"__isSmartRef__":true,"id":4951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5039":{"layouter":{"__isSmartRef__":true,"id":5040},"resizeWidth":true},"5040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5042":{"x":0,"y":560,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5044}},"5044":{"varMapping":{"__isSmartRef__":true,"id":5045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5045":{"this":{"__isSmartRef__":true,"id":4951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5046}},"5046":{"$super":{"__isSmartRef__":true,"id":5047}},"5047":{"varMapping":{"__isSmartRef__":true,"id":5048},"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":5049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5048":{"obj":{"__isSmartRef__":true,"id":4951},"name":"getLayoutableSubmorphs"},"5049":{},"5050":{},"5051":{"submorphs":[{"__isSmartRef__":true,"id":5052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5132},"id":165,"renderContextTable":{"__isSmartRef__":true,"id":5137},"eventHandler":{"__isSmartRef__":true,"id":5138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5052":{"submorphs":[{"__isSmartRef__":true,"id":5053},{"__isSmartRef__":true,"id":5078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5095},"id":162,"renderContextTable":{"__isSmartRef__":true,"id":5100},"eventHandler":{"__isSmartRef__":true,"id":5101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5102},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"isNewMorphic","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5053},"text":{"__isSmartRef__":true,"id":5078},"owner":{"__isSmartRef__":true,"id":5051},"_Position":{"__isSmartRef__":true,"id":5103},"priorExtent":{"__isSmartRef__":true,"id":5104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5054},"id":163,"renderContextTable":{"__isSmartRef__":true,"id":5060},"eventHandler":{"__isSmartRef__":true,"id":5061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5054":{"_Position":{"__isSmartRef__":true,"id":5055},"renderContextTable":{"__isSmartRef__":true,"id":5056},"_Extent":{"__isSmartRef__":true,"id":5057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5061":{"morph":{"__isSmartRef__":true,"id":5053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5063":{"onMouseUp":{"__isSmartRef__":true,"id":5064},"toggle":{"__isSmartRef__":true,"id":5071}},"5064":{"varMapping":{"__isSmartRef__":true,"id":5065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5065":{"this":{"__isSmartRef__":true,"id":5053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5066}},"5066":{"$super":{"__isSmartRef__":true,"id":5067}},"5067":{"varMapping":{"__isSmartRef__":true,"id":5068},"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":5069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5068":{"obj":{"__isSmartRef__":true,"id":5053},"name":"onMouseUp"},"5069":{},"5070":{},"5071":{"varMapping":{"__isSmartRef__":true,"id":5072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5072":{"this":{"__isSmartRef__":true,"id":5053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5073}},"5073":{"$super":{"__isSmartRef__":true,"id":5074}},"5074":{"varMapping":{"__isSmartRef__":true,"id":5075},"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":5076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5075":{"obj":{"__isSmartRef__":true,"id":5053},"name":"toggle"},"5076":{},"5077":{},"5078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5079},"id":164,"renderContextTable":{"__isSmartRef__":true,"id":5083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5084},{"__isSmartRef__":true,"id":5086}],"eventHandler":{"__isSmartRef__":true,"id":5088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5089},"priorExtent":{"__isSmartRef__":true,"id":5090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5079":{"_Position":{"__isSmartRef__":true,"id":5080},"renderContextTable":{"__isSmartRef__":true,"id":5081},"_Extent":{"__isSmartRef__":true,"id":5082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5082":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5084":{"style":{"__isSmartRef__":true,"id":5085},"chunkOwner":{"__isSmartRef__":true,"id":5078},"storedString":"isNewMorphic","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5086":{"style":{"__isSmartRef__":true,"id":5087},"chunkOwner":{"__isSmartRef__":true,"id":5078},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5088":{"morph":{"__isSmartRef__":true,"id":5078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5090":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5091":{"layoutText":{"__isSmartRef__":true,"id":5092}},"5092":{"varMapping":{"__isSmartRef__":true,"id":5093},"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":5094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5093":{"this":{"__isSmartRef__":true,"id":5078}},"5094":{},"5095":{"_Position":{"__isSmartRef__":true,"id":5096},"renderContextTable":{"__isSmartRef__":true,"id":5097},"_Extent":{"__isSmartRef__":true,"id":5098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5101":{"morph":{"__isSmartRef__":true,"id":5052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5102":{"resizeWidth":true},"5103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5105":{"updateExpanderColor":{"__isSmartRef__":true,"id":5106},"onMouseDown":{"__isSmartRef__":true,"id":5109},"onMouseUp":{"__isSmartRef__":true,"id":5116},"isRoot":{"__isSmartRef__":true,"id":5123},"displayValue":{"__isSmartRef__":true,"id":5126},"update":{"__isSmartRef__":true,"id":5129}},"5106":{"varMapping":{"__isSmartRef__":true,"id":5107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5107":{"this":{"__isSmartRef__":true,"id":5052}},"5108":{},"5109":{"varMapping":{"__isSmartRef__":true,"id":5110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5110":{"this":{"__isSmartRef__":true,"id":5052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5111}},"5111":{"$super":{"__isSmartRef__":true,"id":5112}},"5112":{"varMapping":{"__isSmartRef__":true,"id":5113},"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":5114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5113":{"obj":{"__isSmartRef__":true,"id":5052},"name":"onMouseDown"},"5114":{},"5115":{},"5116":{"varMapping":{"__isSmartRef__":true,"id":5117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5117":{"this":{"__isSmartRef__":true,"id":5052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5118}},"5118":{"$super":{"__isSmartRef__":true,"id":5119}},"5119":{"varMapping":{"__isSmartRef__":true,"id":5120},"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":5121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5120":{"obj":{"__isSmartRef__":true,"id":5052},"name":"onMouseUp"},"5121":{},"5122":{},"5123":{"varMapping":{"__isSmartRef__":true,"id":5124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5124":{"this":{"__isSmartRef__":true,"id":5052}},"5125":{},"5126":{"varMapping":{"__isSmartRef__":true,"id":5127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5127":{"this":{"__isSmartRef__":true,"id":5052}},"5128":{},"5129":{"varMapping":{"__isSmartRef__":true,"id":5130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5130":{"this":{"__isSmartRef__":true,"id":5052}},"5131":{},"5132":{"_Position":{"__isSmartRef__":true,"id":5133},"renderContextTable":{"__isSmartRef__":true,"id":5134},"_Extent":{"__isSmartRef__":true,"id":5135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5138":{"morph":{"__isSmartRef__":true,"id":5051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5139":{"layouter":{"__isSmartRef__":true,"id":5140},"resizeWidth":true},"5140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5142":{"x":0,"y":580,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5144}},"5144":{"varMapping":{"__isSmartRef__":true,"id":5145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5145":{"this":{"__isSmartRef__":true,"id":5051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5146}},"5146":{"$super":{"__isSmartRef__":true,"id":5147}},"5147":{"varMapping":{"__isSmartRef__":true,"id":5148},"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":5149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5148":{"obj":{"__isSmartRef__":true,"id":5051},"name":"getLayoutableSubmorphs"},"5149":{},"5150":{},"5151":{"submorphs":[{"__isSmartRef__":true,"id":5152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5232},"id":169,"renderContextTable":{"__isSmartRef__":true,"id":5237},"eventHandler":{"__isSmartRef__":true,"id":5238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5152":{"submorphs":[{"__isSmartRef__":true,"id":5153},{"__isSmartRef__":true,"id":5178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5195},"id":166,"renderContextTable":{"__isSmartRef__":true,"id":5200},"eventHandler":{"__isSmartRef__":true,"id":5201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5202},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"keepSerializerIds","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5153},"text":{"__isSmartRef__":true,"id":5178},"owner":{"__isSmartRef__":true,"id":5151},"_Position":{"__isSmartRef__":true,"id":5203},"priorExtent":{"__isSmartRef__":true,"id":5204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5154},"id":167,"renderContextTable":{"__isSmartRef__":true,"id":5160},"eventHandler":{"__isSmartRef__":true,"id":5161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5154":{"_Position":{"__isSmartRef__":true,"id":5155},"renderContextTable":{"__isSmartRef__":true,"id":5156},"_Extent":{"__isSmartRef__":true,"id":5157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5161":{"morph":{"__isSmartRef__":true,"id":5153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5163":{"onMouseUp":{"__isSmartRef__":true,"id":5164},"toggle":{"__isSmartRef__":true,"id":5171}},"5164":{"varMapping":{"__isSmartRef__":true,"id":5165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5165":{"this":{"__isSmartRef__":true,"id":5153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5166}},"5166":{"$super":{"__isSmartRef__":true,"id":5167}},"5167":{"varMapping":{"__isSmartRef__":true,"id":5168},"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":5169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5168":{"obj":{"__isSmartRef__":true,"id":5153},"name":"onMouseUp"},"5169":{},"5170":{},"5171":{"varMapping":{"__isSmartRef__":true,"id":5172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5172":{"this":{"__isSmartRef__":true,"id":5153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5173}},"5173":{"$super":{"__isSmartRef__":true,"id":5174}},"5174":{"varMapping":{"__isSmartRef__":true,"id":5175},"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":5176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5175":{"obj":{"__isSmartRef__":true,"id":5153},"name":"toggle"},"5176":{},"5177":{},"5178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5179},"id":168,"renderContextTable":{"__isSmartRef__":true,"id":5183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5184},{"__isSmartRef__":true,"id":5186}],"eventHandler":{"__isSmartRef__":true,"id":5188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5189},"priorExtent":{"__isSmartRef__":true,"id":5190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5179":{"_Position":{"__isSmartRef__":true,"id":5180},"renderContextTable":{"__isSmartRef__":true,"id":5181},"_Extent":{"__isSmartRef__":true,"id":5182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5182":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5184":{"style":{"__isSmartRef__":true,"id":5185},"chunkOwner":{"__isSmartRef__":true,"id":5178},"storedString":"keepSerializerIds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5186":{"style":{"__isSmartRef__":true,"id":5187},"chunkOwner":{"__isSmartRef__":true,"id":5178},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5188":{"morph":{"__isSmartRef__":true,"id":5178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5190":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5191":{"layoutText":{"__isSmartRef__":true,"id":5192}},"5192":{"varMapping":{"__isSmartRef__":true,"id":5193},"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":5194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5193":{"this":{"__isSmartRef__":true,"id":5178}},"5194":{},"5195":{"_Position":{"__isSmartRef__":true,"id":5196},"renderContextTable":{"__isSmartRef__":true,"id":5197},"_Extent":{"__isSmartRef__":true,"id":5198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5201":{"morph":{"__isSmartRef__":true,"id":5152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5202":{"resizeWidth":true},"5203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5205":{"updateExpanderColor":{"__isSmartRef__":true,"id":5206},"onMouseDown":{"__isSmartRef__":true,"id":5209},"onMouseUp":{"__isSmartRef__":true,"id":5216},"isRoot":{"__isSmartRef__":true,"id":5223},"displayValue":{"__isSmartRef__":true,"id":5226},"update":{"__isSmartRef__":true,"id":5229}},"5206":{"varMapping":{"__isSmartRef__":true,"id":5207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5207":{"this":{"__isSmartRef__":true,"id":5152}},"5208":{},"5209":{"varMapping":{"__isSmartRef__":true,"id":5210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5210":{"this":{"__isSmartRef__":true,"id":5152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5211}},"5211":{"$super":{"__isSmartRef__":true,"id":5212}},"5212":{"varMapping":{"__isSmartRef__":true,"id":5213},"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":5214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5213":{"obj":{"__isSmartRef__":true,"id":5152},"name":"onMouseDown"},"5214":{},"5215":{},"5216":{"varMapping":{"__isSmartRef__":true,"id":5217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5217":{"this":{"__isSmartRef__":true,"id":5152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5218}},"5218":{"$super":{"__isSmartRef__":true,"id":5219}},"5219":{"varMapping":{"__isSmartRef__":true,"id":5220},"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":5221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5220":{"obj":{"__isSmartRef__":true,"id":5152},"name":"onMouseUp"},"5221":{},"5222":{},"5223":{"varMapping":{"__isSmartRef__":true,"id":5224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5224":{"this":{"__isSmartRef__":true,"id":5152}},"5225":{},"5226":{"varMapping":{"__isSmartRef__":true,"id":5227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5227":{"this":{"__isSmartRef__":true,"id":5152}},"5228":{},"5229":{"varMapping":{"__isSmartRef__":true,"id":5230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5230":{"this":{"__isSmartRef__":true,"id":5152}},"5231":{},"5232":{"_Position":{"__isSmartRef__":true,"id":5233},"renderContextTable":{"__isSmartRef__":true,"id":5234},"_Extent":{"__isSmartRef__":true,"id":5235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5238":{"morph":{"__isSmartRef__":true,"id":5151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5239":{"layouter":{"__isSmartRef__":true,"id":5240},"resizeWidth":true},"5240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5242":{"x":0,"y":600,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5244}},"5244":{"varMapping":{"__isSmartRef__":true,"id":5245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5245":{"this":{"__isSmartRef__":true,"id":5151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5246}},"5246":{"$super":{"__isSmartRef__":true,"id":5247}},"5247":{"varMapping":{"__isSmartRef__":true,"id":5248},"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":5249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5248":{"obj":{"__isSmartRef__":true,"id":5151},"name":"getLayoutableSubmorphs"},"5249":{},"5250":{},"5251":{"submorphs":[{"__isSmartRef__":true,"id":5252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5332},"id":173,"renderContextTable":{"__isSmartRef__":true,"id":5337},"eventHandler":{"__isSmartRef__":true,"id":5338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5252":{"submorphs":[{"__isSmartRef__":true,"id":5253},{"__isSmartRef__":true,"id":5278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5295},"id":170,"renderContextTable":{"__isSmartRef__":true,"id":5300},"eventHandler":{"__isSmartRef__":true,"id":5301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5302},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"loadSerializedSubworlds","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5253},"text":{"__isSmartRef__":true,"id":5278},"owner":{"__isSmartRef__":true,"id":5251},"_Position":{"__isSmartRef__":true,"id":5303},"priorExtent":{"__isSmartRef__":true,"id":5304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5254},"id":171,"renderContextTable":{"__isSmartRef__":true,"id":5260},"eventHandler":{"__isSmartRef__":true,"id":5261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5254":{"_Position":{"__isSmartRef__":true,"id":5255},"renderContextTable":{"__isSmartRef__":true,"id":5256},"_Extent":{"__isSmartRef__":true,"id":5257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5261":{"morph":{"__isSmartRef__":true,"id":5253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5263":{"onMouseUp":{"__isSmartRef__":true,"id":5264},"toggle":{"__isSmartRef__":true,"id":5271}},"5264":{"varMapping":{"__isSmartRef__":true,"id":5265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5265":{"this":{"__isSmartRef__":true,"id":5253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5266}},"5266":{"$super":{"__isSmartRef__":true,"id":5267}},"5267":{"varMapping":{"__isSmartRef__":true,"id":5268},"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":5269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5268":{"obj":{"__isSmartRef__":true,"id":5253},"name":"onMouseUp"},"5269":{},"5270":{},"5271":{"varMapping":{"__isSmartRef__":true,"id":5272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5272":{"this":{"__isSmartRef__":true,"id":5253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5273}},"5273":{"$super":{"__isSmartRef__":true,"id":5274}},"5274":{"varMapping":{"__isSmartRef__":true,"id":5275},"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":5276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5275":{"obj":{"__isSmartRef__":true,"id":5253},"name":"toggle"},"5276":{},"5277":{},"5278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5279},"id":172,"renderContextTable":{"__isSmartRef__":true,"id":5283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5284},{"__isSmartRef__":true,"id":5286}],"eventHandler":{"__isSmartRef__":true,"id":5288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5289},"priorExtent":{"__isSmartRef__":true,"id":5290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5279":{"_Position":{"__isSmartRef__":true,"id":5280},"renderContextTable":{"__isSmartRef__":true,"id":5281},"_Extent":{"__isSmartRef__":true,"id":5282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5282":{"x":233,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5284":{"style":{"__isSmartRef__":true,"id":5285},"chunkOwner":{"__isSmartRef__":true,"id":5278},"storedString":"loadSerializedSubworlds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5286":{"style":{"__isSmartRef__":true,"id":5287},"chunkOwner":{"__isSmartRef__":true,"id":5278},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5288":{"morph":{"__isSmartRef__":true,"id":5278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5290":{"x":225,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5291":{"layoutText":{"__isSmartRef__":true,"id":5292}},"5292":{"varMapping":{"__isSmartRef__":true,"id":5293},"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":5294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5293":{"this":{"__isSmartRef__":true,"id":5278}},"5294":{},"5295":{"_Position":{"__isSmartRef__":true,"id":5296},"renderContextTable":{"__isSmartRef__":true,"id":5297},"_Extent":{"__isSmartRef__":true,"id":5298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5301":{"morph":{"__isSmartRef__":true,"id":5252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5302":{"resizeWidth":true},"5303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5305":{"updateExpanderColor":{"__isSmartRef__":true,"id":5306},"onMouseDown":{"__isSmartRef__":true,"id":5309},"onMouseUp":{"__isSmartRef__":true,"id":5316},"isRoot":{"__isSmartRef__":true,"id":5323},"displayValue":{"__isSmartRef__":true,"id":5326},"update":{"__isSmartRef__":true,"id":5329}},"5306":{"varMapping":{"__isSmartRef__":true,"id":5307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5307":{"this":{"__isSmartRef__":true,"id":5252}},"5308":{},"5309":{"varMapping":{"__isSmartRef__":true,"id":5310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5310":{"this":{"__isSmartRef__":true,"id":5252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5311}},"5311":{"$super":{"__isSmartRef__":true,"id":5312}},"5312":{"varMapping":{"__isSmartRef__":true,"id":5313},"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":5314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5313":{"obj":{"__isSmartRef__":true,"id":5252},"name":"onMouseDown"},"5314":{},"5315":{},"5316":{"varMapping":{"__isSmartRef__":true,"id":5317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5317":{"this":{"__isSmartRef__":true,"id":5252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5318}},"5318":{"$super":{"__isSmartRef__":true,"id":5319}},"5319":{"varMapping":{"__isSmartRef__":true,"id":5320},"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":5321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5320":{"obj":{"__isSmartRef__":true,"id":5252},"name":"onMouseUp"},"5321":{},"5322":{},"5323":{"varMapping":{"__isSmartRef__":true,"id":5324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5324":{"this":{"__isSmartRef__":true,"id":5252}},"5325":{},"5326":{"varMapping":{"__isSmartRef__":true,"id":5327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5327":{"this":{"__isSmartRef__":true,"id":5252}},"5328":{},"5329":{"varMapping":{"__isSmartRef__":true,"id":5330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5330":{"this":{"__isSmartRef__":true,"id":5252}},"5331":{},"5332":{"_Position":{"__isSmartRef__":true,"id":5333},"renderContextTable":{"__isSmartRef__":true,"id":5334},"_Extent":{"__isSmartRef__":true,"id":5335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5338":{"morph":{"__isSmartRef__":true,"id":5251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5339":{"layouter":{"__isSmartRef__":true,"id":5340},"resizeWidth":true},"5340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5342":{"x":0,"y":620,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5344}},"5344":{"varMapping":{"__isSmartRef__":true,"id":5345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5345":{"this":{"__isSmartRef__":true,"id":5251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5346}},"5346":{"$super":{"__isSmartRef__":true,"id":5347}},"5347":{"varMapping":{"__isSmartRef__":true,"id":5348},"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":5349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5348":{"obj":{"__isSmartRef__":true,"id":5251},"name":"getLayoutableSubmorphs"},"5349":{},"5350":{},"5351":{"submorphs":[{"__isSmartRef__":true,"id":5352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5432},"id":177,"renderContextTable":{"__isSmartRef__":true,"id":5437},"eventHandler":{"__isSmartRef__":true,"id":5438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5352":{"submorphs":[{"__isSmartRef__":true,"id":5353},{"__isSmartRef__":true,"id":5378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5395},"id":174,"renderContextTable":{"__isSmartRef__":true,"id":5400},"eventHandler":{"__isSmartRef__":true,"id":5401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5402},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"loadTests","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5353},"text":{"__isSmartRef__":true,"id":5378},"owner":{"__isSmartRef__":true,"id":5351},"_Position":{"__isSmartRef__":true,"id":5403},"priorExtent":{"__isSmartRef__":true,"id":5404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5354},"id":175,"renderContextTable":{"__isSmartRef__":true,"id":5360},"eventHandler":{"__isSmartRef__":true,"id":5361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5354":{"_Position":{"__isSmartRef__":true,"id":5355},"renderContextTable":{"__isSmartRef__":true,"id":5356},"_Extent":{"__isSmartRef__":true,"id":5357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5361":{"morph":{"__isSmartRef__":true,"id":5353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5363":{"onMouseUp":{"__isSmartRef__":true,"id":5364},"toggle":{"__isSmartRef__":true,"id":5371}},"5364":{"varMapping":{"__isSmartRef__":true,"id":5365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5365":{"this":{"__isSmartRef__":true,"id":5353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5366}},"5366":{"$super":{"__isSmartRef__":true,"id":5367}},"5367":{"varMapping":{"__isSmartRef__":true,"id":5368},"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":5369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5368":{"obj":{"__isSmartRef__":true,"id":5353},"name":"onMouseUp"},"5369":{},"5370":{},"5371":{"varMapping":{"__isSmartRef__":true,"id":5372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5372":{"this":{"__isSmartRef__":true,"id":5353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5373}},"5373":{"$super":{"__isSmartRef__":true,"id":5374}},"5374":{"varMapping":{"__isSmartRef__":true,"id":5375},"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":5376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5375":{"obj":{"__isSmartRef__":true,"id":5353},"name":"toggle"},"5376":{},"5377":{},"5378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5379},"id":176,"renderContextTable":{"__isSmartRef__":true,"id":5383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5384},{"__isSmartRef__":true,"id":5386}],"eventHandler":{"__isSmartRef__":true,"id":5388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5389},"priorExtent":{"__isSmartRef__":true,"id":5390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5379":{"_Position":{"__isSmartRef__":true,"id":5380},"renderContextTable":{"__isSmartRef__":true,"id":5381},"_Extent":{"__isSmartRef__":true,"id":5382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5382":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5384":{"style":{"__isSmartRef__":true,"id":5385},"chunkOwner":{"__isSmartRef__":true,"id":5378},"storedString":"loadTests","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5386":{"style":{"__isSmartRef__":true,"id":5387},"chunkOwner":{"__isSmartRef__":true,"id":5378},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5388":{"morph":{"__isSmartRef__":true,"id":5378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5390":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5391":{"layoutText":{"__isSmartRef__":true,"id":5392}},"5392":{"varMapping":{"__isSmartRef__":true,"id":5393},"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":5394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5393":{"this":{"__isSmartRef__":true,"id":5378}},"5394":{},"5395":{"_Position":{"__isSmartRef__":true,"id":5396},"renderContextTable":{"__isSmartRef__":true,"id":5397},"_Extent":{"__isSmartRef__":true,"id":5398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5401":{"morph":{"__isSmartRef__":true,"id":5352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5402":{"resizeWidth":true},"5403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5405":{"updateExpanderColor":{"__isSmartRef__":true,"id":5406},"onMouseDown":{"__isSmartRef__":true,"id":5409},"onMouseUp":{"__isSmartRef__":true,"id":5416},"isRoot":{"__isSmartRef__":true,"id":5423},"displayValue":{"__isSmartRef__":true,"id":5426},"update":{"__isSmartRef__":true,"id":5429}},"5406":{"varMapping":{"__isSmartRef__":true,"id":5407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5407":{"this":{"__isSmartRef__":true,"id":5352}},"5408":{},"5409":{"varMapping":{"__isSmartRef__":true,"id":5410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5410":{"this":{"__isSmartRef__":true,"id":5352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5411}},"5411":{"$super":{"__isSmartRef__":true,"id":5412}},"5412":{"varMapping":{"__isSmartRef__":true,"id":5413},"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":5414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5413":{"obj":{"__isSmartRef__":true,"id":5352},"name":"onMouseDown"},"5414":{},"5415":{},"5416":{"varMapping":{"__isSmartRef__":true,"id":5417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5417":{"this":{"__isSmartRef__":true,"id":5352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5418}},"5418":{"$super":{"__isSmartRef__":true,"id":5419}},"5419":{"varMapping":{"__isSmartRef__":true,"id":5420},"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":5421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5420":{"obj":{"__isSmartRef__":true,"id":5352},"name":"onMouseUp"},"5421":{},"5422":{},"5423":{"varMapping":{"__isSmartRef__":true,"id":5424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5424":{"this":{"__isSmartRef__":true,"id":5352}},"5425":{},"5426":{"varMapping":{"__isSmartRef__":true,"id":5427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5427":{"this":{"__isSmartRef__":true,"id":5352}},"5428":{},"5429":{"varMapping":{"__isSmartRef__":true,"id":5430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5430":{"this":{"__isSmartRef__":true,"id":5352}},"5431":{},"5432":{"_Position":{"__isSmartRef__":true,"id":5433},"renderContextTable":{"__isSmartRef__":true,"id":5434},"_Extent":{"__isSmartRef__":true,"id":5435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5438":{"morph":{"__isSmartRef__":true,"id":5351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5439":{"layouter":{"__isSmartRef__":true,"id":5440},"resizeWidth":true},"5440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5442":{"x":0,"y":640,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5444}},"5444":{"varMapping":{"__isSmartRef__":true,"id":5445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5445":{"this":{"__isSmartRef__":true,"id":5351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5446}},"5446":{"$super":{"__isSmartRef__":true,"id":5447}},"5447":{"varMapping":{"__isSmartRef__":true,"id":5448},"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":5449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5448":{"obj":{"__isSmartRef__":true,"id":5351},"name":"getLayoutableSubmorphs"},"5449":{},"5450":{},"5451":{"submorphs":[{"__isSmartRef__":true,"id":5452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5532},"id":181,"renderContextTable":{"__isSmartRef__":true,"id":5537},"eventHandler":{"__isSmartRef__":true,"id":5538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5452":{"submorphs":[{"__isSmartRef__":true,"id":5453},{"__isSmartRef__":true,"id":5478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5495},"id":178,"renderContextTable":{"__isSmartRef__":true,"id":5500},"eventHandler":{"__isSmartRef__":true,"id":5501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5502},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"loadUserConfig","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5453},"text":{"__isSmartRef__":true,"id":5478},"owner":{"__isSmartRef__":true,"id":5451},"_Position":{"__isSmartRef__":true,"id":5503},"priorExtent":{"__isSmartRef__":true,"id":5504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5454},"id":179,"renderContextTable":{"__isSmartRef__":true,"id":5460},"eventHandler":{"__isSmartRef__":true,"id":5461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5454":{"_Position":{"__isSmartRef__":true,"id":5455},"renderContextTable":{"__isSmartRef__":true,"id":5456},"_Extent":{"__isSmartRef__":true,"id":5457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5461":{"morph":{"__isSmartRef__":true,"id":5453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5463":{"onMouseUp":{"__isSmartRef__":true,"id":5464},"toggle":{"__isSmartRef__":true,"id":5471}},"5464":{"varMapping":{"__isSmartRef__":true,"id":5465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5465":{"this":{"__isSmartRef__":true,"id":5453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5466}},"5466":{"$super":{"__isSmartRef__":true,"id":5467}},"5467":{"varMapping":{"__isSmartRef__":true,"id":5468},"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":5469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5468":{"obj":{"__isSmartRef__":true,"id":5453},"name":"onMouseUp"},"5469":{},"5470":{},"5471":{"varMapping":{"__isSmartRef__":true,"id":5472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5472":{"this":{"__isSmartRef__":true,"id":5453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5473}},"5473":{"$super":{"__isSmartRef__":true,"id":5474}},"5474":{"varMapping":{"__isSmartRef__":true,"id":5475},"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":5476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5475":{"obj":{"__isSmartRef__":true,"id":5453},"name":"toggle"},"5476":{},"5477":{},"5478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5479},"id":180,"renderContextTable":{"__isSmartRef__":true,"id":5483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5484},{"__isSmartRef__":true,"id":5486}],"eventHandler":{"__isSmartRef__":true,"id":5488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5489},"priorExtent":{"__isSmartRef__":true,"id":5490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5479":{"_Position":{"__isSmartRef__":true,"id":5480},"renderContextTable":{"__isSmartRef__":true,"id":5481},"_Extent":{"__isSmartRef__":true,"id":5482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5482":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5484":{"style":{"__isSmartRef__":true,"id":5485},"chunkOwner":{"__isSmartRef__":true,"id":5478},"storedString":"loadUserConfig","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5486":{"style":{"__isSmartRef__":true,"id":5487},"chunkOwner":{"__isSmartRef__":true,"id":5478},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5488":{"morph":{"__isSmartRef__":true,"id":5478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5490":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5491":{"layoutText":{"__isSmartRef__":true,"id":5492}},"5492":{"varMapping":{"__isSmartRef__":true,"id":5493},"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":5494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5493":{"this":{"__isSmartRef__":true,"id":5478}},"5494":{},"5495":{"_Position":{"__isSmartRef__":true,"id":5496},"renderContextTable":{"__isSmartRef__":true,"id":5497},"_Extent":{"__isSmartRef__":true,"id":5498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5501":{"morph":{"__isSmartRef__":true,"id":5452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5502":{"resizeWidth":true},"5503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5505":{"updateExpanderColor":{"__isSmartRef__":true,"id":5506},"onMouseDown":{"__isSmartRef__":true,"id":5509},"onMouseUp":{"__isSmartRef__":true,"id":5516},"isRoot":{"__isSmartRef__":true,"id":5523},"displayValue":{"__isSmartRef__":true,"id":5526},"update":{"__isSmartRef__":true,"id":5529}},"5506":{"varMapping":{"__isSmartRef__":true,"id":5507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5507":{"this":{"__isSmartRef__":true,"id":5452}},"5508":{},"5509":{"varMapping":{"__isSmartRef__":true,"id":5510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5510":{"this":{"__isSmartRef__":true,"id":5452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5511}},"5511":{"$super":{"__isSmartRef__":true,"id":5512}},"5512":{"varMapping":{"__isSmartRef__":true,"id":5513},"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":5514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5513":{"obj":{"__isSmartRef__":true,"id":5452},"name":"onMouseDown"},"5514":{},"5515":{},"5516":{"varMapping":{"__isSmartRef__":true,"id":5517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5517":{"this":{"__isSmartRef__":true,"id":5452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5518}},"5518":{"$super":{"__isSmartRef__":true,"id":5519}},"5519":{"varMapping":{"__isSmartRef__":true,"id":5520},"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":5521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5520":{"obj":{"__isSmartRef__":true,"id":5452},"name":"onMouseUp"},"5521":{},"5522":{},"5523":{"varMapping":{"__isSmartRef__":true,"id":5524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5524":{"this":{"__isSmartRef__":true,"id":5452}},"5525":{},"5526":{"varMapping":{"__isSmartRef__":true,"id":5527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5527":{"this":{"__isSmartRef__":true,"id":5452}},"5528":{},"5529":{"varMapping":{"__isSmartRef__":true,"id":5530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5530":{"this":{"__isSmartRef__":true,"id":5452}},"5531":{},"5532":{"_Position":{"__isSmartRef__":true,"id":5533},"renderContextTable":{"__isSmartRef__":true,"id":5534},"_Extent":{"__isSmartRef__":true,"id":5535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5538":{"morph":{"__isSmartRef__":true,"id":5451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5539":{"layouter":{"__isSmartRef__":true,"id":5540},"resizeWidth":true},"5540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5542":{"x":0,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5544}},"5544":{"varMapping":{"__isSmartRef__":true,"id":5545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5545":{"this":{"__isSmartRef__":true,"id":5451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5546}},"5546":{"$super":{"__isSmartRef__":true,"id":5547}},"5547":{"varMapping":{"__isSmartRef__":true,"id":5548},"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":5549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5548":{"obj":{"__isSmartRef__":true,"id":5451},"name":"getLayoutableSubmorphs"},"5549":{},"5550":{},"5551":{"submorphs":[{"__isSmartRef__":true,"id":5552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5632},"id":185,"renderContextTable":{"__isSmartRef__":true,"id":5637},"eventHandler":{"__isSmartRef__":true,"id":5638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5552":{"submorphs":[{"__isSmartRef__":true,"id":5553},{"__isSmartRef__":true,"id":5578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5595},"id":182,"renderContextTable":{"__isSmartRef__":true,"id":5600},"eventHandler":{"__isSmartRef__":true,"id":5601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5602},"grabbingEnabled":false,"draggingEnabled":false,"data":0.05,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"mainDelay","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5553},"text":{"__isSmartRef__":true,"id":5578},"owner":{"__isSmartRef__":true,"id":5551},"_Position":{"__isSmartRef__":true,"id":5603},"priorExtent":{"__isSmartRef__":true,"id":5604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5554},"id":183,"renderContextTable":{"__isSmartRef__":true,"id":5560},"eventHandler":{"__isSmartRef__":true,"id":5561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5554":{"_Position":{"__isSmartRef__":true,"id":5555},"renderContextTable":{"__isSmartRef__":true,"id":5556},"_Extent":{"__isSmartRef__":true,"id":5557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5561":{"morph":{"__isSmartRef__":true,"id":5553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5563":{"onMouseUp":{"__isSmartRef__":true,"id":5564},"toggle":{"__isSmartRef__":true,"id":5571}},"5564":{"varMapping":{"__isSmartRef__":true,"id":5565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5565":{"this":{"__isSmartRef__":true,"id":5553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5566}},"5566":{"$super":{"__isSmartRef__":true,"id":5567}},"5567":{"varMapping":{"__isSmartRef__":true,"id":5568},"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":5569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5568":{"obj":{"__isSmartRef__":true,"id":5553},"name":"onMouseUp"},"5569":{},"5570":{},"5571":{"varMapping":{"__isSmartRef__":true,"id":5572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5572":{"this":{"__isSmartRef__":true,"id":5553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5573}},"5573":{"$super":{"__isSmartRef__":true,"id":5574}},"5574":{"varMapping":{"__isSmartRef__":true,"id":5575},"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":5576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5575":{"obj":{"__isSmartRef__":true,"id":5553},"name":"toggle"},"5576":{},"5577":{},"5578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5579},"id":184,"renderContextTable":{"__isSmartRef__":true,"id":5583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5584},{"__isSmartRef__":true,"id":5586}],"eventHandler":{"__isSmartRef__":true,"id":5588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5589},"priorExtent":{"__isSmartRef__":true,"id":5590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5579":{"_Position":{"__isSmartRef__":true,"id":5580},"renderContextTable":{"__isSmartRef__":true,"id":5581},"_Extent":{"__isSmartRef__":true,"id":5582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5582":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5584":{"style":{"__isSmartRef__":true,"id":5585},"chunkOwner":{"__isSmartRef__":true,"id":5578},"storedString":"mainDelay","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5586":{"style":{"__isSmartRef__":true,"id":5587},"chunkOwner":{"__isSmartRef__":true,"id":5578},"storedString":": 0.05","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5588":{"morph":{"__isSmartRef__":true,"id":5578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5590":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5591":{"layoutText":{"__isSmartRef__":true,"id":5592}},"5592":{"varMapping":{"__isSmartRef__":true,"id":5593},"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":5594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5593":{"this":{"__isSmartRef__":true,"id":5578}},"5594":{},"5595":{"_Position":{"__isSmartRef__":true,"id":5596},"renderContextTable":{"__isSmartRef__":true,"id":5597},"_Extent":{"__isSmartRef__":true,"id":5598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5601":{"morph":{"__isSmartRef__":true,"id":5552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5602":{"resizeWidth":true},"5603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5605":{"updateExpanderColor":{"__isSmartRef__":true,"id":5606},"onMouseDown":{"__isSmartRef__":true,"id":5609},"onMouseUp":{"__isSmartRef__":true,"id":5616},"isRoot":{"__isSmartRef__":true,"id":5623},"displayValue":{"__isSmartRef__":true,"id":5626},"update":{"__isSmartRef__":true,"id":5629}},"5606":{"varMapping":{"__isSmartRef__":true,"id":5607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5607":{"this":{"__isSmartRef__":true,"id":5552}},"5608":{},"5609":{"varMapping":{"__isSmartRef__":true,"id":5610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5610":{"this":{"__isSmartRef__":true,"id":5552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5611}},"5611":{"$super":{"__isSmartRef__":true,"id":5612}},"5612":{"varMapping":{"__isSmartRef__":true,"id":5613},"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":5614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5613":{"obj":{"__isSmartRef__":true,"id":5552},"name":"onMouseDown"},"5614":{},"5615":{},"5616":{"varMapping":{"__isSmartRef__":true,"id":5617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5617":{"this":{"__isSmartRef__":true,"id":5552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5618}},"5618":{"$super":{"__isSmartRef__":true,"id":5619}},"5619":{"varMapping":{"__isSmartRef__":true,"id":5620},"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":5621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5620":{"obj":{"__isSmartRef__":true,"id":5552},"name":"onMouseUp"},"5621":{},"5622":{},"5623":{"varMapping":{"__isSmartRef__":true,"id":5624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5624":{"this":{"__isSmartRef__":true,"id":5552}},"5625":{},"5626":{"varMapping":{"__isSmartRef__":true,"id":5627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5627":{"this":{"__isSmartRef__":true,"id":5552}},"5628":{},"5629":{"varMapping":{"__isSmartRef__":true,"id":5630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5630":{"this":{"__isSmartRef__":true,"id":5552}},"5631":{},"5632":{"_Position":{"__isSmartRef__":true,"id":5633},"renderContextTable":{"__isSmartRef__":true,"id":5634},"_Extent":{"__isSmartRef__":true,"id":5635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5638":{"morph":{"__isSmartRef__":true,"id":5551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5639":{"layouter":{"__isSmartRef__":true,"id":5640},"resizeWidth":true},"5640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5642":{"x":0,"y":680,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5644}},"5644":{"varMapping":{"__isSmartRef__":true,"id":5645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5645":{"this":{"__isSmartRef__":true,"id":5551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5646}},"5646":{"$super":{"__isSmartRef__":true,"id":5647}},"5647":{"varMapping":{"__isSmartRef__":true,"id":5648},"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":5649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5648":{"obj":{"__isSmartRef__":true,"id":5551},"name":"getLayoutableSubmorphs"},"5649":{},"5650":{},"5651":{"submorphs":[{"__isSmartRef__":true,"id":5652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5732},"id":189,"renderContextTable":{"__isSmartRef__":true,"id":5737},"eventHandler":{"__isSmartRef__":true,"id":5738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5652":{"submorphs":[{"__isSmartRef__":true,"id":5653},{"__isSmartRef__":true,"id":5678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5695},"id":186,"renderContextTable":{"__isSmartRef__":true,"id":5700},"eventHandler":{"__isSmartRef__":true,"id":5701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5702},"grabbingEnabled":false,"draggingEnabled":false,"data":["users/","projects/"],"propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"modulePaths","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5653},"text":{"__isSmartRef__":true,"id":5678},"owner":{"__isSmartRef__":true,"id":5651},"_Position":{"__isSmartRef__":true,"id":5703},"priorExtent":{"__isSmartRef__":true,"id":5704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5654},"id":187,"renderContextTable":{"__isSmartRef__":true,"id":5660},"eventHandler":{"__isSmartRef__":true,"id":5661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5654":{"_Position":{"__isSmartRef__":true,"id":5655},"renderContextTable":{"__isSmartRef__":true,"id":5656},"_Extent":{"__isSmartRef__":true,"id":5657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5659":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5661":{"morph":{"__isSmartRef__":true,"id":5653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5663":{"onMouseUp":{"__isSmartRef__":true,"id":5664},"toggle":{"__isSmartRef__":true,"id":5671}},"5664":{"varMapping":{"__isSmartRef__":true,"id":5665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5665":{"this":{"__isSmartRef__":true,"id":5653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5666}},"5666":{"$super":{"__isSmartRef__":true,"id":5667}},"5667":{"varMapping":{"__isSmartRef__":true,"id":5668},"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":5669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5668":{"obj":{"__isSmartRef__":true,"id":5653},"name":"onMouseUp"},"5669":{},"5670":{},"5671":{"varMapping":{"__isSmartRef__":true,"id":5672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5672":{"this":{"__isSmartRef__":true,"id":5653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5673}},"5673":{"$super":{"__isSmartRef__":true,"id":5674}},"5674":{"varMapping":{"__isSmartRef__":true,"id":5675},"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":5676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5675":{"obj":{"__isSmartRef__":true,"id":5653},"name":"toggle"},"5676":{},"5677":{},"5678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5679},"id":188,"renderContextTable":{"__isSmartRef__":true,"id":5683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5684},{"__isSmartRef__":true,"id":5686}],"eventHandler":{"__isSmartRef__":true,"id":5688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5689},"priorExtent":{"__isSmartRef__":true,"id":5690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5679":{"_Position":{"__isSmartRef__":true,"id":5680},"renderContextTable":{"__isSmartRef__":true,"id":5681},"_Extent":{"__isSmartRef__":true,"id":5682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5682":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5684":{"style":{"__isSmartRef__":true,"id":5685},"chunkOwner":{"__isSmartRef__":true,"id":5678},"storedString":"modulePaths","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5686":{"style":{"__isSmartRef__":true,"id":5687},"chunkOwner":{"__isSmartRef__":true,"id":5678},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5688":{"morph":{"__isSmartRef__":true,"id":5678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5690":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5691":{"layoutText":{"__isSmartRef__":true,"id":5692}},"5692":{"varMapping":{"__isSmartRef__":true,"id":5693},"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":5694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5693":{"this":{"__isSmartRef__":true,"id":5678}},"5694":{},"5695":{"_Position":{"__isSmartRef__":true,"id":5696},"renderContextTable":{"__isSmartRef__":true,"id":5697},"_Extent":{"__isSmartRef__":true,"id":5698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5701":{"morph":{"__isSmartRef__":true,"id":5652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5702":{"resizeWidth":true},"5703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5705":{"updateExpanderColor":{"__isSmartRef__":true,"id":5706},"onMouseDown":{"__isSmartRef__":true,"id":5709},"onMouseUp":{"__isSmartRef__":true,"id":5716},"isRoot":{"__isSmartRef__":true,"id":5723},"displayValue":{"__isSmartRef__":true,"id":5726},"update":{"__isSmartRef__":true,"id":5729}},"5706":{"varMapping":{"__isSmartRef__":true,"id":5707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5707":{"this":{"__isSmartRef__":true,"id":5652}},"5708":{},"5709":{"varMapping":{"__isSmartRef__":true,"id":5710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5710":{"this":{"__isSmartRef__":true,"id":5652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5711}},"5711":{"$super":{"__isSmartRef__":true,"id":5712}},"5712":{"varMapping":{"__isSmartRef__":true,"id":5713},"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":5714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5713":{"obj":{"__isSmartRef__":true,"id":5652},"name":"onMouseDown"},"5714":{},"5715":{},"5716":{"varMapping":{"__isSmartRef__":true,"id":5717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5717":{"this":{"__isSmartRef__":true,"id":5652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5718}},"5718":{"$super":{"__isSmartRef__":true,"id":5719}},"5719":{"varMapping":{"__isSmartRef__":true,"id":5720},"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":5721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5720":{"obj":{"__isSmartRef__":true,"id":5652},"name":"onMouseUp"},"5721":{},"5722":{},"5723":{"varMapping":{"__isSmartRef__":true,"id":5724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5724":{"this":{"__isSmartRef__":true,"id":5652}},"5725":{},"5726":{"varMapping":{"__isSmartRef__":true,"id":5727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5727":{"this":{"__isSmartRef__":true,"id":5652}},"5728":{},"5729":{"varMapping":{"__isSmartRef__":true,"id":5730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5730":{"this":{"__isSmartRef__":true,"id":5652}},"5731":{},"5732":{"_Position":{"__isSmartRef__":true,"id":5733},"renderContextTable":{"__isSmartRef__":true,"id":5734},"_Extent":{"__isSmartRef__":true,"id":5735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5738":{"morph":{"__isSmartRef__":true,"id":5651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5739":{"layouter":{"__isSmartRef__":true,"id":5740},"resizeWidth":true},"5740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5742":{"x":0,"y":700,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5744}},"5744":{"varMapping":{"__isSmartRef__":true,"id":5745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5745":{"this":{"__isSmartRef__":true,"id":5651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5746}},"5746":{"$super":{"__isSmartRef__":true,"id":5747}},"5747":{"varMapping":{"__isSmartRef__":true,"id":5748},"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":5749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5748":{"obj":{"__isSmartRef__":true,"id":5651},"name":"getLayoutableSubmorphs"},"5749":{},"5750":{},"5751":{"submorphs":[{"__isSmartRef__":true,"id":5752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5832},"id":193,"renderContextTable":{"__isSmartRef__":true,"id":5837},"eventHandler":{"__isSmartRef__":true,"id":5838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5752":{"submorphs":[{"__isSmartRef__":true,"id":5753},{"__isSmartRef__":true,"id":5778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5795},"id":190,"renderContextTable":{"__isSmartRef__":true,"id":5800},"eventHandler":{"__isSmartRef__":true,"id":5801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5802},"grabbingEnabled":false,"draggingEnabled":false,"data":["lively.ChangeSet"],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"modulesBeforeChanges","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5753},"text":{"__isSmartRef__":true,"id":5778},"owner":{"__isSmartRef__":true,"id":5751},"_Position":{"__isSmartRef__":true,"id":5803},"priorExtent":{"__isSmartRef__":true,"id":5804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5754},"id":191,"renderContextTable":{"__isSmartRef__":true,"id":5760},"eventHandler":{"__isSmartRef__":true,"id":5761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5754":{"_Position":{"__isSmartRef__":true,"id":5755},"renderContextTable":{"__isSmartRef__":true,"id":5756},"_Extent":{"__isSmartRef__":true,"id":5757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5759":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5761":{"morph":{"__isSmartRef__":true,"id":5753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5763":{"onMouseUp":{"__isSmartRef__":true,"id":5764},"toggle":{"__isSmartRef__":true,"id":5771}},"5764":{"varMapping":{"__isSmartRef__":true,"id":5765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5765":{"this":{"__isSmartRef__":true,"id":5753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5766}},"5766":{"$super":{"__isSmartRef__":true,"id":5767}},"5767":{"varMapping":{"__isSmartRef__":true,"id":5768},"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":5769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5768":{"obj":{"__isSmartRef__":true,"id":5753},"name":"onMouseUp"},"5769":{},"5770":{},"5771":{"varMapping":{"__isSmartRef__":true,"id":5772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5772":{"this":{"__isSmartRef__":true,"id":5753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5773}},"5773":{"$super":{"__isSmartRef__":true,"id":5774}},"5774":{"varMapping":{"__isSmartRef__":true,"id":5775},"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":5776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5775":{"obj":{"__isSmartRef__":true,"id":5753},"name":"toggle"},"5776":{},"5777":{},"5778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5779},"id":192,"renderContextTable":{"__isSmartRef__":true,"id":5783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5784},{"__isSmartRef__":true,"id":5786}],"eventHandler":{"__isSmartRef__":true,"id":5788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5789},"priorExtent":{"__isSmartRef__":true,"id":5790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5779":{"_Position":{"__isSmartRef__":true,"id":5780},"renderContextTable":{"__isSmartRef__":true,"id":5781},"_Extent":{"__isSmartRef__":true,"id":5782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5782":{"x":210.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5784":{"style":{"__isSmartRef__":true,"id":5785},"chunkOwner":{"__isSmartRef__":true,"id":5778},"storedString":"modulesBeforeChanges","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5786":{"style":{"__isSmartRef__":true,"id":5787},"chunkOwner":{"__isSmartRef__":true,"id":5778},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5788":{"morph":{"__isSmartRef__":true,"id":5778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5790":{"x":202.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5791":{"layoutText":{"__isSmartRef__":true,"id":5792}},"5792":{"varMapping":{"__isSmartRef__":true,"id":5793},"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":5794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5793":{"this":{"__isSmartRef__":true,"id":5778}},"5794":{},"5795":{"_Position":{"__isSmartRef__":true,"id":5796},"renderContextTable":{"__isSmartRef__":true,"id":5797},"_Extent":{"__isSmartRef__":true,"id":5798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5801":{"morph":{"__isSmartRef__":true,"id":5752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5802":{"resizeWidth":true},"5803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5805":{"updateExpanderColor":{"__isSmartRef__":true,"id":5806},"onMouseDown":{"__isSmartRef__":true,"id":5809},"onMouseUp":{"__isSmartRef__":true,"id":5816},"isRoot":{"__isSmartRef__":true,"id":5823},"displayValue":{"__isSmartRef__":true,"id":5826},"update":{"__isSmartRef__":true,"id":5829}},"5806":{"varMapping":{"__isSmartRef__":true,"id":5807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5807":{"this":{"__isSmartRef__":true,"id":5752}},"5808":{},"5809":{"varMapping":{"__isSmartRef__":true,"id":5810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5810":{"this":{"__isSmartRef__":true,"id":5752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5811}},"5811":{"$super":{"__isSmartRef__":true,"id":5812}},"5812":{"varMapping":{"__isSmartRef__":true,"id":5813},"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":5814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5813":{"obj":{"__isSmartRef__":true,"id":5752},"name":"onMouseDown"},"5814":{},"5815":{},"5816":{"varMapping":{"__isSmartRef__":true,"id":5817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5817":{"this":{"__isSmartRef__":true,"id":5752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5818}},"5818":{"$super":{"__isSmartRef__":true,"id":5819}},"5819":{"varMapping":{"__isSmartRef__":true,"id":5820},"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":5821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5820":{"obj":{"__isSmartRef__":true,"id":5752},"name":"onMouseUp"},"5821":{},"5822":{},"5823":{"varMapping":{"__isSmartRef__":true,"id":5824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5824":{"this":{"__isSmartRef__":true,"id":5752}},"5825":{},"5826":{"varMapping":{"__isSmartRef__":true,"id":5827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5827":{"this":{"__isSmartRef__":true,"id":5752}},"5828":{},"5829":{"varMapping":{"__isSmartRef__":true,"id":5830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5830":{"this":{"__isSmartRef__":true,"id":5752}},"5831":{},"5832":{"_Position":{"__isSmartRef__":true,"id":5833},"renderContextTable":{"__isSmartRef__":true,"id":5834},"_Extent":{"__isSmartRef__":true,"id":5835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5838":{"morph":{"__isSmartRef__":true,"id":5751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5839":{"layouter":{"__isSmartRef__":true,"id":5840},"resizeWidth":true},"5840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5842":{"x":0,"y":720,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5844}},"5844":{"varMapping":{"__isSmartRef__":true,"id":5845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5845":{"this":{"__isSmartRef__":true,"id":5751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5846}},"5846":{"$super":{"__isSmartRef__":true,"id":5847}},"5847":{"varMapping":{"__isSmartRef__":true,"id":5848},"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":5849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5848":{"obj":{"__isSmartRef__":true,"id":5751},"name":"getLayoutableSubmorphs"},"5849":{},"5850":{},"5851":{"submorphs":[{"__isSmartRef__":true,"id":5852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5932},"id":197,"renderContextTable":{"__isSmartRef__":true,"id":5937},"eventHandler":{"__isSmartRef__":true,"id":5938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":5942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5852":{"submorphs":[{"__isSmartRef__":true,"id":5853},{"__isSmartRef__":true,"id":5878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5895},"id":194,"renderContextTable":{"__isSmartRef__":true,"id":5900},"eventHandler":{"__isSmartRef__":true,"id":5901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5902},"grabbingEnabled":false,"draggingEnabled":false,"data":["lively.morphic.CompatLayer"],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"modulesBeforeWorldLoad","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5853},"text":{"__isSmartRef__":true,"id":5878},"owner":{"__isSmartRef__":true,"id":5851},"_Position":{"__isSmartRef__":true,"id":5903},"priorExtent":{"__isSmartRef__":true,"id":5904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5854},"id":195,"renderContextTable":{"__isSmartRef__":true,"id":5860},"eventHandler":{"__isSmartRef__":true,"id":5861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5854":{"_Position":{"__isSmartRef__":true,"id":5855},"renderContextTable":{"__isSmartRef__":true,"id":5856},"_Extent":{"__isSmartRef__":true,"id":5857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5859":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5861":{"morph":{"__isSmartRef__":true,"id":5853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5863":{"onMouseUp":{"__isSmartRef__":true,"id":5864},"toggle":{"__isSmartRef__":true,"id":5871}},"5864":{"varMapping":{"__isSmartRef__":true,"id":5865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5865":{"this":{"__isSmartRef__":true,"id":5853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5866}},"5866":{"$super":{"__isSmartRef__":true,"id":5867}},"5867":{"varMapping":{"__isSmartRef__":true,"id":5868},"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":5869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5868":{"obj":{"__isSmartRef__":true,"id":5853},"name":"onMouseUp"},"5869":{},"5870":{},"5871":{"varMapping":{"__isSmartRef__":true,"id":5872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5872":{"this":{"__isSmartRef__":true,"id":5853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5873}},"5873":{"$super":{"__isSmartRef__":true,"id":5874}},"5874":{"varMapping":{"__isSmartRef__":true,"id":5875},"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":5876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5875":{"obj":{"__isSmartRef__":true,"id":5853},"name":"toggle"},"5876":{},"5877":{},"5878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5879},"id":196,"renderContextTable":{"__isSmartRef__":true,"id":5883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5884},{"__isSmartRef__":true,"id":5886}],"eventHandler":{"__isSmartRef__":true,"id":5888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5889},"priorExtent":{"__isSmartRef__":true,"id":5890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5879":{"_Position":{"__isSmartRef__":true,"id":5880},"renderContextTable":{"__isSmartRef__":true,"id":5881},"_Extent":{"__isSmartRef__":true,"id":5882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5882":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5884":{"style":{"__isSmartRef__":true,"id":5885},"chunkOwner":{"__isSmartRef__":true,"id":5878},"storedString":"modulesBeforeWorldLoad","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5886":{"style":{"__isSmartRef__":true,"id":5887},"chunkOwner":{"__isSmartRef__":true,"id":5878},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5888":{"morph":{"__isSmartRef__":true,"id":5878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5890":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5891":{"layoutText":{"__isSmartRef__":true,"id":5892}},"5892":{"varMapping":{"__isSmartRef__":true,"id":5893},"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":5894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5893":{"this":{"__isSmartRef__":true,"id":5878}},"5894":{},"5895":{"_Position":{"__isSmartRef__":true,"id":5896},"renderContextTable":{"__isSmartRef__":true,"id":5897},"_Extent":{"__isSmartRef__":true,"id":5898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5901":{"morph":{"__isSmartRef__":true,"id":5852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5902":{"resizeWidth":true},"5903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5905":{"updateExpanderColor":{"__isSmartRef__":true,"id":5906},"onMouseDown":{"__isSmartRef__":true,"id":5909},"onMouseUp":{"__isSmartRef__":true,"id":5916},"isRoot":{"__isSmartRef__":true,"id":5923},"displayValue":{"__isSmartRef__":true,"id":5926},"update":{"__isSmartRef__":true,"id":5929}},"5906":{"varMapping":{"__isSmartRef__":true,"id":5907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5907":{"this":{"__isSmartRef__":true,"id":5852}},"5908":{},"5909":{"varMapping":{"__isSmartRef__":true,"id":5910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5910":{"this":{"__isSmartRef__":true,"id":5852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5911}},"5911":{"$super":{"__isSmartRef__":true,"id":5912}},"5912":{"varMapping":{"__isSmartRef__":true,"id":5913},"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":5914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5913":{"obj":{"__isSmartRef__":true,"id":5852},"name":"onMouseDown"},"5914":{},"5915":{},"5916":{"varMapping":{"__isSmartRef__":true,"id":5917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5917":{"this":{"__isSmartRef__":true,"id":5852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5918}},"5918":{"$super":{"__isSmartRef__":true,"id":5919}},"5919":{"varMapping":{"__isSmartRef__":true,"id":5920},"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":5921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5920":{"obj":{"__isSmartRef__":true,"id":5852},"name":"onMouseUp"},"5921":{},"5922":{},"5923":{"varMapping":{"__isSmartRef__":true,"id":5924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5924":{"this":{"__isSmartRef__":true,"id":5852}},"5925":{},"5926":{"varMapping":{"__isSmartRef__":true,"id":5927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":5928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5927":{"this":{"__isSmartRef__":true,"id":5852}},"5928":{},"5929":{"varMapping":{"__isSmartRef__":true,"id":5930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5930":{"this":{"__isSmartRef__":true,"id":5852}},"5931":{},"5932":{"_Position":{"__isSmartRef__":true,"id":5933},"renderContextTable":{"__isSmartRef__":true,"id":5934},"_Extent":{"__isSmartRef__":true,"id":5935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5938":{"morph":{"__isSmartRef__":true,"id":5851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5939":{"layouter":{"__isSmartRef__":true,"id":5940},"resizeWidth":true},"5940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5942":{"x":0,"y":740,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5944}},"5944":{"varMapping":{"__isSmartRef__":true,"id":5945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5945":{"this":{"__isSmartRef__":true,"id":5851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5946}},"5946":{"$super":{"__isSmartRef__":true,"id":5947}},"5947":{"varMapping":{"__isSmartRef__":true,"id":5948},"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":5949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5948":{"obj":{"__isSmartRef__":true,"id":5851},"name":"getLayoutableSubmorphs"},"5949":{},"5950":{},"5951":{"submorphs":[{"__isSmartRef__":true,"id":5952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6032},"id":201,"renderContextTable":{"__isSmartRef__":true,"id":6037},"eventHandler":{"__isSmartRef__":true,"id":6038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5952":{"submorphs":[{"__isSmartRef__":true,"id":5953},{"__isSmartRef__":true,"id":5978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5995},"id":198,"renderContextTable":{"__isSmartRef__":true,"id":6000},"eventHandler":{"__isSmartRef__":true,"id":6001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6002},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"modulesOnWorldLoad","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":5953},"text":{"__isSmartRef__":true,"id":5978},"owner":{"__isSmartRef__":true,"id":5951},"_Position":{"__isSmartRef__":true,"id":6003},"priorExtent":{"__isSmartRef__":true,"id":6004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5954},"id":199,"renderContextTable":{"__isSmartRef__":true,"id":5960},"eventHandler":{"__isSmartRef__":true,"id":5961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5954":{"_Position":{"__isSmartRef__":true,"id":5955},"renderContextTable":{"__isSmartRef__":true,"id":5956},"_Extent":{"__isSmartRef__":true,"id":5957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":5959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5961":{"morph":{"__isSmartRef__":true,"id":5953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5963":{"onMouseUp":{"__isSmartRef__":true,"id":5964},"toggle":{"__isSmartRef__":true,"id":5971}},"5964":{"varMapping":{"__isSmartRef__":true,"id":5965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":5970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5965":{"this":{"__isSmartRef__":true,"id":5953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5966}},"5966":{"$super":{"__isSmartRef__":true,"id":5967}},"5967":{"varMapping":{"__isSmartRef__":true,"id":5968},"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":5969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5968":{"obj":{"__isSmartRef__":true,"id":5953},"name":"onMouseUp"},"5969":{},"5970":{},"5971":{"varMapping":{"__isSmartRef__":true,"id":5972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":5977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5972":{"this":{"__isSmartRef__":true,"id":5953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5973}},"5973":{"$super":{"__isSmartRef__":true,"id":5974}},"5974":{"varMapping":{"__isSmartRef__":true,"id":5975},"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":5976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5975":{"obj":{"__isSmartRef__":true,"id":5953},"name":"toggle"},"5976":{},"5977":{},"5978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5979},"id":200,"renderContextTable":{"__isSmartRef__":true,"id":5983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5984},{"__isSmartRef__":true,"id":5986}],"eventHandler":{"__isSmartRef__":true,"id":5988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5989},"priorExtent":{"__isSmartRef__":true,"id":5990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5979":{"_Position":{"__isSmartRef__":true,"id":5980},"renderContextTable":{"__isSmartRef__":true,"id":5981},"_Extent":{"__isSmartRef__":true,"id":5982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5982":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5984":{"style":{"__isSmartRef__":true,"id":5985},"chunkOwner":{"__isSmartRef__":true,"id":5978},"storedString":"modulesOnWorldLoad","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5986":{"style":{"__isSmartRef__":true,"id":5987},"chunkOwner":{"__isSmartRef__":true,"id":5978},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5988":{"morph":{"__isSmartRef__":true,"id":5978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5990":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5991":{"layoutText":{"__isSmartRef__":true,"id":5992}},"5992":{"varMapping":{"__isSmartRef__":true,"id":5993},"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":5994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5993":{"this":{"__isSmartRef__":true,"id":5978}},"5994":{},"5995":{"_Position":{"__isSmartRef__":true,"id":5996},"renderContextTable":{"__isSmartRef__":true,"id":5997},"_Extent":{"__isSmartRef__":true,"id":5998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6001":{"morph":{"__isSmartRef__":true,"id":5952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6002":{"resizeWidth":true},"6003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6005":{"updateExpanderColor":{"__isSmartRef__":true,"id":6006},"onMouseDown":{"__isSmartRef__":true,"id":6009},"onMouseUp":{"__isSmartRef__":true,"id":6016},"isRoot":{"__isSmartRef__":true,"id":6023},"displayValue":{"__isSmartRef__":true,"id":6026},"update":{"__isSmartRef__":true,"id":6029}},"6006":{"varMapping":{"__isSmartRef__":true,"id":6007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6007":{"this":{"__isSmartRef__":true,"id":5952}},"6008":{},"6009":{"varMapping":{"__isSmartRef__":true,"id":6010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6010":{"this":{"__isSmartRef__":true,"id":5952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6011}},"6011":{"$super":{"__isSmartRef__":true,"id":6012}},"6012":{"varMapping":{"__isSmartRef__":true,"id":6013},"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":6014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6013":{"obj":{"__isSmartRef__":true,"id":5952},"name":"onMouseDown"},"6014":{},"6015":{},"6016":{"varMapping":{"__isSmartRef__":true,"id":6017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6017":{"this":{"__isSmartRef__":true,"id":5952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6018}},"6018":{"$super":{"__isSmartRef__":true,"id":6019}},"6019":{"varMapping":{"__isSmartRef__":true,"id":6020},"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":6021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6020":{"obj":{"__isSmartRef__":true,"id":5952},"name":"onMouseUp"},"6021":{},"6022":{},"6023":{"varMapping":{"__isSmartRef__":true,"id":6024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6024":{"this":{"__isSmartRef__":true,"id":5952}},"6025":{},"6026":{"varMapping":{"__isSmartRef__":true,"id":6027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6027":{"this":{"__isSmartRef__":true,"id":5952}},"6028":{},"6029":{"varMapping":{"__isSmartRef__":true,"id":6030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6030":{"this":{"__isSmartRef__":true,"id":5952}},"6031":{},"6032":{"_Position":{"__isSmartRef__":true,"id":6033},"renderContextTable":{"__isSmartRef__":true,"id":6034},"_Extent":{"__isSmartRef__":true,"id":6035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6038":{"morph":{"__isSmartRef__":true,"id":5951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6039":{"layouter":{"__isSmartRef__":true,"id":6040},"resizeWidth":true},"6040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6042":{"x":0,"y":760,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6044}},"6044":{"varMapping":{"__isSmartRef__":true,"id":6045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6045":{"this":{"__isSmartRef__":true,"id":5951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6046}},"6046":{"$super":{"__isSmartRef__":true,"id":6047}},"6047":{"varMapping":{"__isSmartRef__":true,"id":6048},"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":6049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6048":{"obj":{"__isSmartRef__":true,"id":5951},"name":"getLayoutableSubmorphs"},"6049":{},"6050":{},"6051":{"submorphs":[{"__isSmartRef__":true,"id":6052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6132},"id":205,"renderContextTable":{"__isSmartRef__":true,"id":6137},"eventHandler":{"__isSmartRef__":true,"id":6138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6052":{"submorphs":[{"__isSmartRef__":true,"id":6053},{"__isSmartRef__":true,"id":6078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6095},"id":202,"renderContextTable":{"__isSmartRef__":true,"id":6100},"eventHandler":{"__isSmartRef__":true,"id":6101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6102},"grabbingEnabled":false,"draggingEnabled":false,"data":"/home/nodejs/","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"nodeJSPath","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6053},"text":{"__isSmartRef__":true,"id":6078},"owner":{"__isSmartRef__":true,"id":6051},"_Position":{"__isSmartRef__":true,"id":6103},"priorExtent":{"__isSmartRef__":true,"id":6104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6054},"id":203,"renderContextTable":{"__isSmartRef__":true,"id":6060},"eventHandler":{"__isSmartRef__":true,"id":6061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6054":{"_Position":{"__isSmartRef__":true,"id":6055},"renderContextTable":{"__isSmartRef__":true,"id":6056},"_Extent":{"__isSmartRef__":true,"id":6057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6061":{"morph":{"__isSmartRef__":true,"id":6053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6063":{"onMouseUp":{"__isSmartRef__":true,"id":6064},"toggle":{"__isSmartRef__":true,"id":6071}},"6064":{"varMapping":{"__isSmartRef__":true,"id":6065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6065":{"this":{"__isSmartRef__":true,"id":6053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6066}},"6066":{"$super":{"__isSmartRef__":true,"id":6067}},"6067":{"varMapping":{"__isSmartRef__":true,"id":6068},"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":6069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6068":{"obj":{"__isSmartRef__":true,"id":6053},"name":"onMouseUp"},"6069":{},"6070":{},"6071":{"varMapping":{"__isSmartRef__":true,"id":6072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6072":{"this":{"__isSmartRef__":true,"id":6053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6073}},"6073":{"$super":{"__isSmartRef__":true,"id":6074}},"6074":{"varMapping":{"__isSmartRef__":true,"id":6075},"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":6076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6075":{"obj":{"__isSmartRef__":true,"id":6053},"name":"toggle"},"6076":{},"6077":{},"6078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6079},"id":204,"renderContextTable":{"__isSmartRef__":true,"id":6083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6084},{"__isSmartRef__":true,"id":6086}],"eventHandler":{"__isSmartRef__":true,"id":6088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6089},"priorExtent":{"__isSmartRef__":true,"id":6090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6079":{"_Position":{"__isSmartRef__":true,"id":6080},"renderContextTable":{"__isSmartRef__":true,"id":6081},"_Extent":{"__isSmartRef__":true,"id":6082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6082":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6084":{"style":{"__isSmartRef__":true,"id":6085},"chunkOwner":{"__isSmartRef__":true,"id":6078},"storedString":"nodeJSPath","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6086":{"style":{"__isSmartRef__":true,"id":6087},"chunkOwner":{"__isSmartRef__":true,"id":6078},"storedString":": /home/nodejs/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6088":{"morph":{"__isSmartRef__":true,"id":6078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6090":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6091":{"layoutText":{"__isSmartRef__":true,"id":6092}},"6092":{"varMapping":{"__isSmartRef__":true,"id":6093},"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":6094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6093":{"this":{"__isSmartRef__":true,"id":6078}},"6094":{},"6095":{"_Position":{"__isSmartRef__":true,"id":6096},"renderContextTable":{"__isSmartRef__":true,"id":6097},"_Extent":{"__isSmartRef__":true,"id":6098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6101":{"morph":{"__isSmartRef__":true,"id":6052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6102":{"resizeWidth":true},"6103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6105":{"updateExpanderColor":{"__isSmartRef__":true,"id":6106},"onMouseDown":{"__isSmartRef__":true,"id":6109},"onMouseUp":{"__isSmartRef__":true,"id":6116},"isRoot":{"__isSmartRef__":true,"id":6123},"displayValue":{"__isSmartRef__":true,"id":6126},"update":{"__isSmartRef__":true,"id":6129}},"6106":{"varMapping":{"__isSmartRef__":true,"id":6107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6107":{"this":{"__isSmartRef__":true,"id":6052}},"6108":{},"6109":{"varMapping":{"__isSmartRef__":true,"id":6110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6110":{"this":{"__isSmartRef__":true,"id":6052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6111}},"6111":{"$super":{"__isSmartRef__":true,"id":6112}},"6112":{"varMapping":{"__isSmartRef__":true,"id":6113},"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":6114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6113":{"obj":{"__isSmartRef__":true,"id":6052},"name":"onMouseDown"},"6114":{},"6115":{},"6116":{"varMapping":{"__isSmartRef__":true,"id":6117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6117":{"this":{"__isSmartRef__":true,"id":6052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6118}},"6118":{"$super":{"__isSmartRef__":true,"id":6119}},"6119":{"varMapping":{"__isSmartRef__":true,"id":6120},"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":6121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6120":{"obj":{"__isSmartRef__":true,"id":6052},"name":"onMouseUp"},"6121":{},"6122":{},"6123":{"varMapping":{"__isSmartRef__":true,"id":6124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6124":{"this":{"__isSmartRef__":true,"id":6052}},"6125":{},"6126":{"varMapping":{"__isSmartRef__":true,"id":6127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6127":{"this":{"__isSmartRef__":true,"id":6052}},"6128":{},"6129":{"varMapping":{"__isSmartRef__":true,"id":6130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6130":{"this":{"__isSmartRef__":true,"id":6052}},"6131":{},"6132":{"_Position":{"__isSmartRef__":true,"id":6133},"renderContextTable":{"__isSmartRef__":true,"id":6134},"_Extent":{"__isSmartRef__":true,"id":6135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6138":{"morph":{"__isSmartRef__":true,"id":6051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6139":{"layouter":{"__isSmartRef__":true,"id":6140},"resizeWidth":true},"6140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6142":{"x":0,"y":780,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6144}},"6144":{"varMapping":{"__isSmartRef__":true,"id":6145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6145":{"this":{"__isSmartRef__":true,"id":6051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6146}},"6146":{"$super":{"__isSmartRef__":true,"id":6147}},"6147":{"varMapping":{"__isSmartRef__":true,"id":6148},"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":6149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6148":{"obj":{"__isSmartRef__":true,"id":6051},"name":"getLayoutableSubmorphs"},"6149":{},"6150":{},"6151":{"submorphs":[{"__isSmartRef__":true,"id":6152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6232},"id":209,"renderContextTable":{"__isSmartRef__":true,"id":6237},"eventHandler":{"__isSmartRef__":true,"id":6238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6152":{"submorphs":[{"__isSmartRef__":true,"id":6153},{"__isSmartRef__":true,"id":6178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6195},"id":206,"renderContextTable":{"__isSmartRef__":true,"id":6200},"eventHandler":{"__isSmartRef__":true,"id":6201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6202},"grabbingEnabled":false,"draggingEnabled":false,"data":"http://lively-kernel.org/nodejs","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"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"nodeJSURL","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6153},"text":{"__isSmartRef__":true,"id":6178},"owner":{"__isSmartRef__":true,"id":6151},"_Position":{"__isSmartRef__":true,"id":6203},"priorExtent":{"__isSmartRef__":true,"id":6204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6154},"id":207,"renderContextTable":{"__isSmartRef__":true,"id":6160},"eventHandler":{"__isSmartRef__":true,"id":6161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6154":{"_Position":{"__isSmartRef__":true,"id":6155},"renderContextTable":{"__isSmartRef__":true,"id":6156},"_Extent":{"__isSmartRef__":true,"id":6157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6161":{"morph":{"__isSmartRef__":true,"id":6153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6163":{"onMouseUp":{"__isSmartRef__":true,"id":6164},"toggle":{"__isSmartRef__":true,"id":6171}},"6164":{"varMapping":{"__isSmartRef__":true,"id":6165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6165":{"this":{"__isSmartRef__":true,"id":6153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6166}},"6166":{"$super":{"__isSmartRef__":true,"id":6167}},"6167":{"varMapping":{"__isSmartRef__":true,"id":6168},"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":6169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6168":{"obj":{"__isSmartRef__":true,"id":6153},"name":"onMouseUp"},"6169":{},"6170":{},"6171":{"varMapping":{"__isSmartRef__":true,"id":6172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6172":{"this":{"__isSmartRef__":true,"id":6153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6173}},"6173":{"$super":{"__isSmartRef__":true,"id":6174}},"6174":{"varMapping":{"__isSmartRef__":true,"id":6175},"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":6176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6175":{"obj":{"__isSmartRef__":true,"id":6153},"name":"toggle"},"6176":{},"6177":{},"6178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6179},"id":208,"renderContextTable":{"__isSmartRef__":true,"id":6183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6184},{"__isSmartRef__":true,"id":6186}],"eventHandler":{"__isSmartRef__":true,"id":6188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6189},"priorExtent":{"__isSmartRef__":true,"id":6190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6179":{"_Position":{"__isSmartRef__":true,"id":6180},"renderContextTable":{"__isSmartRef__":true,"id":6181},"_Extent":{"__isSmartRef__":true,"id":6182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6182":{"x":323,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6184":{"style":{"__isSmartRef__":true,"id":6185},"chunkOwner":{"__isSmartRef__":true,"id":6178},"storedString":"nodeJSURL","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6186":{"style":{"__isSmartRef__":true,"id":6187},"chunkOwner":{"__isSmartRef__":true,"id":6178},"storedString":": http://lively-kernel.org/nodejs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6188":{"morph":{"__isSmartRef__":true,"id":6178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6190":{"x":315,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6191":{"layoutText":{"__isSmartRef__":true,"id":6192}},"6192":{"varMapping":{"__isSmartRef__":true,"id":6193},"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":6194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6193":{"this":{"__isSmartRef__":true,"id":6178}},"6194":{},"6195":{"_Position":{"__isSmartRef__":true,"id":6196},"renderContextTable":{"__isSmartRef__":true,"id":6197},"_Extent":{"__isSmartRef__":true,"id":6198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6201":{"morph":{"__isSmartRef__":true,"id":6152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6202":{"resizeWidth":true},"6203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6205":{"updateExpanderColor":{"__isSmartRef__":true,"id":6206},"onMouseDown":{"__isSmartRef__":true,"id":6209},"onMouseUp":{"__isSmartRef__":true,"id":6216},"isRoot":{"__isSmartRef__":true,"id":6223},"displayValue":{"__isSmartRef__":true,"id":6226},"update":{"__isSmartRef__":true,"id":6229}},"6206":{"varMapping":{"__isSmartRef__":true,"id":6207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6207":{"this":{"__isSmartRef__":true,"id":6152}},"6208":{},"6209":{"varMapping":{"__isSmartRef__":true,"id":6210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6210":{"this":{"__isSmartRef__":true,"id":6152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6211}},"6211":{"$super":{"__isSmartRef__":true,"id":6212}},"6212":{"varMapping":{"__isSmartRef__":true,"id":6213},"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":6214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6213":{"obj":{"__isSmartRef__":true,"id":6152},"name":"onMouseDown"},"6214":{},"6215":{},"6216":{"varMapping":{"__isSmartRef__":true,"id":6217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6217":{"this":{"__isSmartRef__":true,"id":6152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6218}},"6218":{"$super":{"__isSmartRef__":true,"id":6219}},"6219":{"varMapping":{"__isSmartRef__":true,"id":6220},"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":6221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6220":{"obj":{"__isSmartRef__":true,"id":6152},"name":"onMouseUp"},"6221":{},"6222":{},"6223":{"varMapping":{"__isSmartRef__":true,"id":6224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6224":{"this":{"__isSmartRef__":true,"id":6152}},"6225":{},"6226":{"varMapping":{"__isSmartRef__":true,"id":6227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6227":{"this":{"__isSmartRef__":true,"id":6152}},"6228":{},"6229":{"varMapping":{"__isSmartRef__":true,"id":6230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6230":{"this":{"__isSmartRef__":true,"id":6152}},"6231":{},"6232":{"_Position":{"__isSmartRef__":true,"id":6233},"renderContextTable":{"__isSmartRef__":true,"id":6234},"_Extent":{"__isSmartRef__":true,"id":6235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6238":{"morph":{"__isSmartRef__":true,"id":6151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6239":{"layouter":{"__isSmartRef__":true,"id":6240},"resizeWidth":true},"6240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6242":{"x":0,"y":800,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6244}},"6244":{"varMapping":{"__isSmartRef__":true,"id":6245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6245":{"this":{"__isSmartRef__":true,"id":6151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6246}},"6246":{"$super":{"__isSmartRef__":true,"id":6247}},"6247":{"varMapping":{"__isSmartRef__":true,"id":6248},"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":6249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6248":{"obj":{"__isSmartRef__":true,"id":6151},"name":"getLayoutableSubmorphs"},"6249":{},"6250":{},"6251":{"submorphs":[{"__isSmartRef__":true,"id":6252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6332},"id":213,"renderContextTable":{"__isSmartRef__":true,"id":6337},"eventHandler":{"__isSmartRef__":true,"id":6338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6252":{"submorphs":[{"__isSmartRef__":true,"id":6253},{"__isSmartRef__":true,"id":6278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6295},"id":210,"renderContextTable":{"__isSmartRef__":true,"id":6300},"eventHandler":{"__isSmartRef__":true,"id":6301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6302},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"nullMoveAfterTicks","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6253},"text":{"__isSmartRef__":true,"id":6278},"owner":{"__isSmartRef__":true,"id":6251},"_Position":{"__isSmartRef__":true,"id":6303},"priorExtent":{"__isSmartRef__":true,"id":6304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6254},"id":211,"renderContextTable":{"__isSmartRef__":true,"id":6260},"eventHandler":{"__isSmartRef__":true,"id":6261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6254":{"_Position":{"__isSmartRef__":true,"id":6255},"renderContextTable":{"__isSmartRef__":true,"id":6256},"_Extent":{"__isSmartRef__":true,"id":6257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6261":{"morph":{"__isSmartRef__":true,"id":6253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6263":{"onMouseUp":{"__isSmartRef__":true,"id":6264},"toggle":{"__isSmartRef__":true,"id":6271}},"6264":{"varMapping":{"__isSmartRef__":true,"id":6265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6265":{"this":{"__isSmartRef__":true,"id":6253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6266}},"6266":{"$super":{"__isSmartRef__":true,"id":6267}},"6267":{"varMapping":{"__isSmartRef__":true,"id":6268},"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":6269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6268":{"obj":{"__isSmartRef__":true,"id":6253},"name":"onMouseUp"},"6269":{},"6270":{},"6271":{"varMapping":{"__isSmartRef__":true,"id":6272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6272":{"this":{"__isSmartRef__":true,"id":6253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6273}},"6273":{"$super":{"__isSmartRef__":true,"id":6274}},"6274":{"varMapping":{"__isSmartRef__":true,"id":6275},"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":6276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6275":{"obj":{"__isSmartRef__":true,"id":6253},"name":"toggle"},"6276":{},"6277":{},"6278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6279},"id":212,"renderContextTable":{"__isSmartRef__":true,"id":6283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6284},{"__isSmartRef__":true,"id":6286}],"eventHandler":{"__isSmartRef__":true,"id":6288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6289},"priorExtent":{"__isSmartRef__":true,"id":6290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6279":{"_Position":{"__isSmartRef__":true,"id":6280},"renderContextTable":{"__isSmartRef__":true,"id":6281},"_Extent":{"__isSmartRef__":true,"id":6282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6282":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6284":{"style":{"__isSmartRef__":true,"id":6285},"chunkOwner":{"__isSmartRef__":true,"id":6278},"storedString":"nullMoveAfterTicks","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6286":{"style":{"__isSmartRef__":true,"id":6287},"chunkOwner":{"__isSmartRef__":true,"id":6278},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6288":{"morph":{"__isSmartRef__":true,"id":6278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6290":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6291":{"layoutText":{"__isSmartRef__":true,"id":6292}},"6292":{"varMapping":{"__isSmartRef__":true,"id":6293},"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":6294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6293":{"this":{"__isSmartRef__":true,"id":6278}},"6294":{},"6295":{"_Position":{"__isSmartRef__":true,"id":6296},"renderContextTable":{"__isSmartRef__":true,"id":6297},"_Extent":{"__isSmartRef__":true,"id":6298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6301":{"morph":{"__isSmartRef__":true,"id":6252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6302":{"resizeWidth":true},"6303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6305":{"updateExpanderColor":{"__isSmartRef__":true,"id":6306},"onMouseDown":{"__isSmartRef__":true,"id":6309},"onMouseUp":{"__isSmartRef__":true,"id":6316},"isRoot":{"__isSmartRef__":true,"id":6323},"displayValue":{"__isSmartRef__":true,"id":6326},"update":{"__isSmartRef__":true,"id":6329}},"6306":{"varMapping":{"__isSmartRef__":true,"id":6307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6307":{"this":{"__isSmartRef__":true,"id":6252}},"6308":{},"6309":{"varMapping":{"__isSmartRef__":true,"id":6310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6310":{"this":{"__isSmartRef__":true,"id":6252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6311}},"6311":{"$super":{"__isSmartRef__":true,"id":6312}},"6312":{"varMapping":{"__isSmartRef__":true,"id":6313},"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":6314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6313":{"obj":{"__isSmartRef__":true,"id":6252},"name":"onMouseDown"},"6314":{},"6315":{},"6316":{"varMapping":{"__isSmartRef__":true,"id":6317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6317":{"this":{"__isSmartRef__":true,"id":6252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6318}},"6318":{"$super":{"__isSmartRef__":true,"id":6319}},"6319":{"varMapping":{"__isSmartRef__":true,"id":6320},"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":6321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6320":{"obj":{"__isSmartRef__":true,"id":6252},"name":"onMouseUp"},"6321":{},"6322":{},"6323":{"varMapping":{"__isSmartRef__":true,"id":6324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6324":{"this":{"__isSmartRef__":true,"id":6252}},"6325":{},"6326":{"varMapping":{"__isSmartRef__":true,"id":6327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6327":{"this":{"__isSmartRef__":true,"id":6252}},"6328":{},"6329":{"varMapping":{"__isSmartRef__":true,"id":6330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6330":{"this":{"__isSmartRef__":true,"id":6252}},"6331":{},"6332":{"_Position":{"__isSmartRef__":true,"id":6333},"renderContextTable":{"__isSmartRef__":true,"id":6334},"_Extent":{"__isSmartRef__":true,"id":6335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6338":{"morph":{"__isSmartRef__":true,"id":6251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6339":{"layouter":{"__isSmartRef__":true,"id":6340},"resizeWidth":true},"6340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6342":{"x":0,"y":820,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6344}},"6344":{"varMapping":{"__isSmartRef__":true,"id":6345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6345":{"this":{"__isSmartRef__":true,"id":6251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6346}},"6346":{"$super":{"__isSmartRef__":true,"id":6347}},"6347":{"varMapping":{"__isSmartRef__":true,"id":6348},"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":6349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6348":{"obj":{"__isSmartRef__":true,"id":6251},"name":"getLayoutableSubmorphs"},"6349":{},"6350":{},"6351":{"submorphs":[{"__isSmartRef__":true,"id":6352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6432},"id":217,"renderContextTable":{"__isSmartRef__":true,"id":6437},"eventHandler":{"__isSmartRef__":true,"id":6438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6352":{"submorphs":[{"__isSmartRef__":true,"id":6353},{"__isSmartRef__":true,"id":6378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6395},"id":214,"renderContextTable":{"__isSmartRef__":true,"id":6400},"eventHandler":{"__isSmartRef__":true,"id":6401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6402},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"onWindowResizeUpdateWorldBounds","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6353},"text":{"__isSmartRef__":true,"id":6378},"owner":{"__isSmartRef__":true,"id":6351},"_Position":{"__isSmartRef__":true,"id":6403},"priorExtent":{"__isSmartRef__":true,"id":6404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6354},"id":215,"renderContextTable":{"__isSmartRef__":true,"id":6360},"eventHandler":{"__isSmartRef__":true,"id":6361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6354":{"_Position":{"__isSmartRef__":true,"id":6355},"renderContextTable":{"__isSmartRef__":true,"id":6356},"_Extent":{"__isSmartRef__":true,"id":6357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6361":{"morph":{"__isSmartRef__":true,"id":6353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6363":{"onMouseUp":{"__isSmartRef__":true,"id":6364},"toggle":{"__isSmartRef__":true,"id":6371}},"6364":{"varMapping":{"__isSmartRef__":true,"id":6365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6365":{"this":{"__isSmartRef__":true,"id":6353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6366}},"6366":{"$super":{"__isSmartRef__":true,"id":6367}},"6367":{"varMapping":{"__isSmartRef__":true,"id":6368},"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":6369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6368":{"obj":{"__isSmartRef__":true,"id":6353},"name":"onMouseUp"},"6369":{},"6370":{},"6371":{"varMapping":{"__isSmartRef__":true,"id":6372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6372":{"this":{"__isSmartRef__":true,"id":6353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6373}},"6373":{"$super":{"__isSmartRef__":true,"id":6374}},"6374":{"varMapping":{"__isSmartRef__":true,"id":6375},"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":6376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6375":{"obj":{"__isSmartRef__":true,"id":6353},"name":"toggle"},"6376":{},"6377":{},"6378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6379},"id":216,"renderContextTable":{"__isSmartRef__":true,"id":6383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6384},{"__isSmartRef__":true,"id":6386}],"eventHandler":{"__isSmartRef__":true,"id":6388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6389},"priorExtent":{"__isSmartRef__":true,"id":6390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6379":{"_Position":{"__isSmartRef__":true,"id":6380},"renderContextTable":{"__isSmartRef__":true,"id":6381},"_Extent":{"__isSmartRef__":true,"id":6382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6382":{"x":285.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6384":{"style":{"__isSmartRef__":true,"id":6385},"chunkOwner":{"__isSmartRef__":true,"id":6378},"storedString":"onWindowResizeUpdateWorldBounds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6386":{"style":{"__isSmartRef__":true,"id":6387},"chunkOwner":{"__isSmartRef__":true,"id":6378},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6388":{"morph":{"__isSmartRef__":true,"id":6378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6390":{"x":277.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6391":{"layoutText":{"__isSmartRef__":true,"id":6392}},"6392":{"varMapping":{"__isSmartRef__":true,"id":6393},"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":6394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6393":{"this":{"__isSmartRef__":true,"id":6378}},"6394":{},"6395":{"_Position":{"__isSmartRef__":true,"id":6396},"renderContextTable":{"__isSmartRef__":true,"id":6397},"_Extent":{"__isSmartRef__":true,"id":6398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6401":{"morph":{"__isSmartRef__":true,"id":6352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6402":{"resizeWidth":true},"6403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6405":{"updateExpanderColor":{"__isSmartRef__":true,"id":6406},"onMouseDown":{"__isSmartRef__":true,"id":6409},"onMouseUp":{"__isSmartRef__":true,"id":6416},"isRoot":{"__isSmartRef__":true,"id":6423},"displayValue":{"__isSmartRef__":true,"id":6426},"update":{"__isSmartRef__":true,"id":6429}},"6406":{"varMapping":{"__isSmartRef__":true,"id":6407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6407":{"this":{"__isSmartRef__":true,"id":6352}},"6408":{},"6409":{"varMapping":{"__isSmartRef__":true,"id":6410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6410":{"this":{"__isSmartRef__":true,"id":6352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6411}},"6411":{"$super":{"__isSmartRef__":true,"id":6412}},"6412":{"varMapping":{"__isSmartRef__":true,"id":6413},"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":6414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6413":{"obj":{"__isSmartRef__":true,"id":6352},"name":"onMouseDown"},"6414":{},"6415":{},"6416":{"varMapping":{"__isSmartRef__":true,"id":6417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6417":{"this":{"__isSmartRef__":true,"id":6352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6418}},"6418":{"$super":{"__isSmartRef__":true,"id":6419}},"6419":{"varMapping":{"__isSmartRef__":true,"id":6420},"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":6421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6420":{"obj":{"__isSmartRef__":true,"id":6352},"name":"onMouseUp"},"6421":{},"6422":{},"6423":{"varMapping":{"__isSmartRef__":true,"id":6424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6424":{"this":{"__isSmartRef__":true,"id":6352}},"6425":{},"6426":{"varMapping":{"__isSmartRef__":true,"id":6427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6427":{"this":{"__isSmartRef__":true,"id":6352}},"6428":{},"6429":{"varMapping":{"__isSmartRef__":true,"id":6430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6430":{"this":{"__isSmartRef__":true,"id":6352}},"6431":{},"6432":{"_Position":{"__isSmartRef__":true,"id":6433},"renderContextTable":{"__isSmartRef__":true,"id":6434},"_Extent":{"__isSmartRef__":true,"id":6435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6438":{"morph":{"__isSmartRef__":true,"id":6351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6439":{"layouter":{"__isSmartRef__":true,"id":6440},"resizeWidth":true},"6440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6442":{"x":0,"y":840,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6444}},"6444":{"varMapping":{"__isSmartRef__":true,"id":6445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6445":{"this":{"__isSmartRef__":true,"id":6351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6446}},"6446":{"$super":{"__isSmartRef__":true,"id":6447}},"6447":{"varMapping":{"__isSmartRef__":true,"id":6448},"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":6449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6448":{"obj":{"__isSmartRef__":true,"id":6351},"name":"getLayoutableSubmorphs"},"6449":{},"6450":{},"6451":{"submorphs":[{"__isSmartRef__":true,"id":6452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6532},"id":221,"renderContextTable":{"__isSmartRef__":true,"id":6537},"eventHandler":{"__isSmartRef__":true,"id":6538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6452":{"submorphs":[{"__isSmartRef__":true,"id":6453},{"__isSmartRef__":true,"id":6478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6495},"id":218,"renderContextTable":{"__isSmartRef__":true,"id":6500},"eventHandler":{"__isSmartRef__":true,"id":6501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6502},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"openFabrikBrowserExample","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6453},"text":{"__isSmartRef__":true,"id":6478},"owner":{"__isSmartRef__":true,"id":6451},"_Position":{"__isSmartRef__":true,"id":6503},"priorExtent":{"__isSmartRef__":true,"id":6504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6454},"id":219,"renderContextTable":{"__isSmartRef__":true,"id":6460},"eventHandler":{"__isSmartRef__":true,"id":6461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6454":{"_Position":{"__isSmartRef__":true,"id":6455},"renderContextTable":{"__isSmartRef__":true,"id":6456},"_Extent":{"__isSmartRef__":true,"id":6457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6461":{"morph":{"__isSmartRef__":true,"id":6453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6463":{"onMouseUp":{"__isSmartRef__":true,"id":6464},"toggle":{"__isSmartRef__":true,"id":6471}},"6464":{"varMapping":{"__isSmartRef__":true,"id":6465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6465":{"this":{"__isSmartRef__":true,"id":6453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6466}},"6466":{"$super":{"__isSmartRef__":true,"id":6467}},"6467":{"varMapping":{"__isSmartRef__":true,"id":6468},"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":6469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6468":{"obj":{"__isSmartRef__":true,"id":6453},"name":"onMouseUp"},"6469":{},"6470":{},"6471":{"varMapping":{"__isSmartRef__":true,"id":6472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6472":{"this":{"__isSmartRef__":true,"id":6453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6473}},"6473":{"$super":{"__isSmartRef__":true,"id":6474}},"6474":{"varMapping":{"__isSmartRef__":true,"id":6475},"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":6476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6475":{"obj":{"__isSmartRef__":true,"id":6453},"name":"toggle"},"6476":{},"6477":{},"6478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6479},"id":220,"renderContextTable":{"__isSmartRef__":true,"id":6483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6484},{"__isSmartRef__":true,"id":6486}],"eventHandler":{"__isSmartRef__":true,"id":6488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6489},"priorExtent":{"__isSmartRef__":true,"id":6490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6479":{"_Position":{"__isSmartRef__":true,"id":6480},"renderContextTable":{"__isSmartRef__":true,"id":6481},"_Extent":{"__isSmartRef__":true,"id":6482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6482":{"x":240.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6484":{"style":{"__isSmartRef__":true,"id":6485},"chunkOwner":{"__isSmartRef__":true,"id":6478},"storedString":"openFabrikBrowserExample","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6486":{"style":{"__isSmartRef__":true,"id":6487},"chunkOwner":{"__isSmartRef__":true,"id":6478},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6488":{"morph":{"__isSmartRef__":true,"id":6478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6490":{"x":232.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6491":{"layoutText":{"__isSmartRef__":true,"id":6492}},"6492":{"varMapping":{"__isSmartRef__":true,"id":6493},"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":6494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6493":{"this":{"__isSmartRef__":true,"id":6478}},"6494":{},"6495":{"_Position":{"__isSmartRef__":true,"id":6496},"renderContextTable":{"__isSmartRef__":true,"id":6497},"_Extent":{"__isSmartRef__":true,"id":6498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6501":{"morph":{"__isSmartRef__":true,"id":6452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6502":{"resizeWidth":true},"6503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6505":{"updateExpanderColor":{"__isSmartRef__":true,"id":6506},"onMouseDown":{"__isSmartRef__":true,"id":6509},"onMouseUp":{"__isSmartRef__":true,"id":6516},"isRoot":{"__isSmartRef__":true,"id":6523},"displayValue":{"__isSmartRef__":true,"id":6526},"update":{"__isSmartRef__":true,"id":6529}},"6506":{"varMapping":{"__isSmartRef__":true,"id":6507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6507":{"this":{"__isSmartRef__":true,"id":6452}},"6508":{},"6509":{"varMapping":{"__isSmartRef__":true,"id":6510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6510":{"this":{"__isSmartRef__":true,"id":6452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6511}},"6511":{"$super":{"__isSmartRef__":true,"id":6512}},"6512":{"varMapping":{"__isSmartRef__":true,"id":6513},"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":6514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6513":{"obj":{"__isSmartRef__":true,"id":6452},"name":"onMouseDown"},"6514":{},"6515":{},"6516":{"varMapping":{"__isSmartRef__":true,"id":6517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6517":{"this":{"__isSmartRef__":true,"id":6452},"__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 alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6520":{"obj":{"__isSmartRef__":true,"id":6452},"name":"onMouseUp"},"6521":{},"6522":{},"6523":{"varMapping":{"__isSmartRef__":true,"id":6524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6524":{"this":{"__isSmartRef__":true,"id":6452}},"6525":{},"6526":{"varMapping":{"__isSmartRef__":true,"id":6527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6527":{"this":{"__isSmartRef__":true,"id":6452}},"6528":{},"6529":{"varMapping":{"__isSmartRef__":true,"id":6530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6530":{"this":{"__isSmartRef__":true,"id":6452}},"6531":{},"6532":{"_Position":{"__isSmartRef__":true,"id":6533},"renderContextTable":{"__isSmartRef__":true,"id":6534},"_Extent":{"__isSmartRef__":true,"id":6535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6538":{"morph":{"__isSmartRef__":true,"id":6451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6539":{"layouter":{"__isSmartRef__":true,"id":6540},"resizeWidth":true},"6540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6542":{"x":0,"y":860,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6544}},"6544":{"varMapping":{"__isSmartRef__":true,"id":6545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6545":{"this":{"__isSmartRef__":true,"id":6451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6546}},"6546":{"$super":{"__isSmartRef__":true,"id":6547}},"6547":{"varMapping":{"__isSmartRef__":true,"id":6548},"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":6549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6548":{"obj":{"__isSmartRef__":true,"id":6451},"name":"getLayoutableSubmorphs"},"6549":{},"6550":{},"6551":{"submorphs":[{"__isSmartRef__":true,"id":6552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6632},"id":225,"renderContextTable":{"__isSmartRef__":true,"id":6637},"eventHandler":{"__isSmartRef__":true,"id":6638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6552":{"submorphs":[{"__isSmartRef__":true,"id":6553},{"__isSmartRef__":true,"id":6578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6595},"id":222,"renderContextTable":{"__isSmartRef__":true,"id":6600},"eventHandler":{"__isSmartRef__":true,"id":6601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6602},"grabbingEnabled":false,"draggingEnabled":false,"data":"nothing","propertyList":["0","1","2","3","4","5","6"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"pageNavigationName","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6553},"text":{"__isSmartRef__":true,"id":6578},"owner":{"__isSmartRef__":true,"id":6551},"_Position":{"__isSmartRef__":true,"id":6603},"priorExtent":{"__isSmartRef__":true,"id":6604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6554},"id":223,"renderContextTable":{"__isSmartRef__":true,"id":6560},"eventHandler":{"__isSmartRef__":true,"id":6561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6554":{"_Position":{"__isSmartRef__":true,"id":6555},"renderContextTable":{"__isSmartRef__":true,"id":6556},"_Extent":{"__isSmartRef__":true,"id":6557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6561":{"morph":{"__isSmartRef__":true,"id":6553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6563":{"onMouseUp":{"__isSmartRef__":true,"id":6564},"toggle":{"__isSmartRef__":true,"id":6571}},"6564":{"varMapping":{"__isSmartRef__":true,"id":6565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6565":{"this":{"__isSmartRef__":true,"id":6553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6566}},"6566":{"$super":{"__isSmartRef__":true,"id":6567}},"6567":{"varMapping":{"__isSmartRef__":true,"id":6568},"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":6569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6568":{"obj":{"__isSmartRef__":true,"id":6553},"name":"onMouseUp"},"6569":{},"6570":{},"6571":{"varMapping":{"__isSmartRef__":true,"id":6572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6572":{"this":{"__isSmartRef__":true,"id":6553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6573}},"6573":{"$super":{"__isSmartRef__":true,"id":6574}},"6574":{"varMapping":{"__isSmartRef__":true,"id":6575},"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":6576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6575":{"obj":{"__isSmartRef__":true,"id":6553},"name":"toggle"},"6576":{},"6577":{},"6578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6579},"id":224,"renderContextTable":{"__isSmartRef__":true,"id":6583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6584},{"__isSmartRef__":true,"id":6586}],"eventHandler":{"__isSmartRef__":true,"id":6588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6589},"priorExtent":{"__isSmartRef__":true,"id":6590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6579":{"_Position":{"__isSmartRef__":true,"id":6580},"renderContextTable":{"__isSmartRef__":true,"id":6581},"_Extent":{"__isSmartRef__":true,"id":6582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6582":{"x":210.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6584":{"style":{"__isSmartRef__":true,"id":6585},"chunkOwner":{"__isSmartRef__":true,"id":6578},"storedString":"pageNavigationName","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6586":{"style":{"__isSmartRef__":true,"id":6587},"chunkOwner":{"__isSmartRef__":true,"id":6578},"storedString":": nothing","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6588":{"morph":{"__isSmartRef__":true,"id":6578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6590":{"x":202.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6591":{"layoutText":{"__isSmartRef__":true,"id":6592}},"6592":{"varMapping":{"__isSmartRef__":true,"id":6593},"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":6594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6593":{"this":{"__isSmartRef__":true,"id":6578}},"6594":{},"6595":{"_Position":{"__isSmartRef__":true,"id":6596},"renderContextTable":{"__isSmartRef__":true,"id":6597},"_Extent":{"__isSmartRef__":true,"id":6598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6601":{"morph":{"__isSmartRef__":true,"id":6552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6602":{"resizeWidth":true},"6603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6605":{"updateExpanderColor":{"__isSmartRef__":true,"id":6606},"onMouseDown":{"__isSmartRef__":true,"id":6609},"onMouseUp":{"__isSmartRef__":true,"id":6616},"isRoot":{"__isSmartRef__":true,"id":6623},"displayValue":{"__isSmartRef__":true,"id":6626},"update":{"__isSmartRef__":true,"id":6629}},"6606":{"varMapping":{"__isSmartRef__":true,"id":6607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6607":{"this":{"__isSmartRef__":true,"id":6552}},"6608":{},"6609":{"varMapping":{"__isSmartRef__":true,"id":6610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6610":{"this":{"__isSmartRef__":true,"id":6552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6611}},"6611":{"$super":{"__isSmartRef__":true,"id":6612}},"6612":{"varMapping":{"__isSmartRef__":true,"id":6613},"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":6614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6613":{"obj":{"__isSmartRef__":true,"id":6552},"name":"onMouseDown"},"6614":{},"6615":{},"6616":{"varMapping":{"__isSmartRef__":true,"id":6617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6617":{"this":{"__isSmartRef__":true,"id":6552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6618}},"6618":{"$super":{"__isSmartRef__":true,"id":6619}},"6619":{"varMapping":{"__isSmartRef__":true,"id":6620},"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":6621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6620":{"obj":{"__isSmartRef__":true,"id":6552},"name":"onMouseUp"},"6621":{},"6622":{},"6623":{"varMapping":{"__isSmartRef__":true,"id":6624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6624":{"this":{"__isSmartRef__":true,"id":6552}},"6625":{},"6626":{"varMapping":{"__isSmartRef__":true,"id":6627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6627":{"this":{"__isSmartRef__":true,"id":6552}},"6628":{},"6629":{"varMapping":{"__isSmartRef__":true,"id":6630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6630":{"this":{"__isSmartRef__":true,"id":6552}},"6631":{},"6632":{"_Position":{"__isSmartRef__":true,"id":6633},"renderContextTable":{"__isSmartRef__":true,"id":6634},"_Extent":{"__isSmartRef__":true,"id":6635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6638":{"morph":{"__isSmartRef__":true,"id":6551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6639":{"layouter":{"__isSmartRef__":true,"id":6640},"resizeWidth":true},"6640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6642":{"x":0,"y":880,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6644}},"6644":{"varMapping":{"__isSmartRef__":true,"id":6645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6645":{"this":{"__isSmartRef__":true,"id":6551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6646}},"6646":{"$super":{"__isSmartRef__":true,"id":6647}},"6647":{"varMapping":{"__isSmartRef__":true,"id":6648},"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":6649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6648":{"obj":{"__isSmartRef__":true,"id":6551},"name":"getLayoutableSubmorphs"},"6649":{},"6650":{},"6651":{"submorphs":[{"__isSmartRef__":true,"id":6652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6732},"id":229,"renderContextTable":{"__isSmartRef__":true,"id":6737},"eventHandler":{"__isSmartRef__":true,"id":6738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6652":{"submorphs":[{"__isSmartRef__":true,"id":6653},{"__isSmartRef__":true,"id":6678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6695},"id":226,"renderContextTable":{"__isSmartRef__":true,"id":6700},"eventHandler":{"__isSmartRef__":true,"id":6701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6702},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"pageNavigationWithKeys","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6653},"text":{"__isSmartRef__":true,"id":6678},"owner":{"__isSmartRef__":true,"id":6651},"_Position":{"__isSmartRef__":true,"id":6703},"priorExtent":{"__isSmartRef__":true,"id":6704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6654},"id":227,"renderContextTable":{"__isSmartRef__":true,"id":6660},"eventHandler":{"__isSmartRef__":true,"id":6661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6654":{"_Position":{"__isSmartRef__":true,"id":6655},"renderContextTable":{"__isSmartRef__":true,"id":6656},"_Extent":{"__isSmartRef__":true,"id":6657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6661":{"morph":{"__isSmartRef__":true,"id":6653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6663":{"onMouseUp":{"__isSmartRef__":true,"id":6664},"toggle":{"__isSmartRef__":true,"id":6671}},"6664":{"varMapping":{"__isSmartRef__":true,"id":6665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6665":{"this":{"__isSmartRef__":true,"id":6653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6666}},"6666":{"$super":{"__isSmartRef__":true,"id":6667}},"6667":{"varMapping":{"__isSmartRef__":true,"id":6668},"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":6669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6668":{"obj":{"__isSmartRef__":true,"id":6653},"name":"onMouseUp"},"6669":{},"6670":{},"6671":{"varMapping":{"__isSmartRef__":true,"id":6672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6672":{"this":{"__isSmartRef__":true,"id":6653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6673}},"6673":{"$super":{"__isSmartRef__":true,"id":6674}},"6674":{"varMapping":{"__isSmartRef__":true,"id":6675},"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":6676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6675":{"obj":{"__isSmartRef__":true,"id":6653},"name":"toggle"},"6676":{},"6677":{},"6678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6679},"id":228,"renderContextTable":{"__isSmartRef__":true,"id":6683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6684},{"__isSmartRef__":true,"id":6686}],"eventHandler":{"__isSmartRef__":true,"id":6688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6689},"priorExtent":{"__isSmartRef__":true,"id":6690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6679":{"_Position":{"__isSmartRef__":true,"id":6680},"renderContextTable":{"__isSmartRef__":true,"id":6681},"_Extent":{"__isSmartRef__":true,"id":6682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6682":{"x":218,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6684":{"style":{"__isSmartRef__":true,"id":6685},"chunkOwner":{"__isSmartRef__":true,"id":6678},"storedString":"pageNavigationWithKeys","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6686":{"style":{"__isSmartRef__":true,"id":6687},"chunkOwner":{"__isSmartRef__":true,"id":6678},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6688":{"morph":{"__isSmartRef__":true,"id":6678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6690":{"x":210,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6691":{"layoutText":{"__isSmartRef__":true,"id":6692}},"6692":{"varMapping":{"__isSmartRef__":true,"id":6693},"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":6694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6693":{"this":{"__isSmartRef__":true,"id":6678}},"6694":{},"6695":{"_Position":{"__isSmartRef__":true,"id":6696},"renderContextTable":{"__isSmartRef__":true,"id":6697},"_Extent":{"__isSmartRef__":true,"id":6698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6701":{"morph":{"__isSmartRef__":true,"id":6652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6702":{"resizeWidth":true},"6703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6705":{"updateExpanderColor":{"__isSmartRef__":true,"id":6706},"onMouseDown":{"__isSmartRef__":true,"id":6709},"onMouseUp":{"__isSmartRef__":true,"id":6716},"isRoot":{"__isSmartRef__":true,"id":6723},"displayValue":{"__isSmartRef__":true,"id":6726},"update":{"__isSmartRef__":true,"id":6729}},"6706":{"varMapping":{"__isSmartRef__":true,"id":6707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6707":{"this":{"__isSmartRef__":true,"id":6652}},"6708":{},"6709":{"varMapping":{"__isSmartRef__":true,"id":6710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6710":{"this":{"__isSmartRef__":true,"id":6652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6711}},"6711":{"$super":{"__isSmartRef__":true,"id":6712}},"6712":{"varMapping":{"__isSmartRef__":true,"id":6713},"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":6714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6713":{"obj":{"__isSmartRef__":true,"id":6652},"name":"onMouseDown"},"6714":{},"6715":{},"6716":{"varMapping":{"__isSmartRef__":true,"id":6717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6717":{"this":{"__isSmartRef__":true,"id":6652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6718}},"6718":{"$super":{"__isSmartRef__":true,"id":6719}},"6719":{"varMapping":{"__isSmartRef__":true,"id":6720},"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":6721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6720":{"obj":{"__isSmartRef__":true,"id":6652},"name":"onMouseUp"},"6721":{},"6722":{},"6723":{"varMapping":{"__isSmartRef__":true,"id":6724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6724":{"this":{"__isSmartRef__":true,"id":6652}},"6725":{},"6726":{"varMapping":{"__isSmartRef__":true,"id":6727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6727":{"this":{"__isSmartRef__":true,"id":6652}},"6728":{},"6729":{"varMapping":{"__isSmartRef__":true,"id":6730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6730":{"this":{"__isSmartRef__":true,"id":6652}},"6731":{},"6732":{"_Position":{"__isSmartRef__":true,"id":6733},"renderContextTable":{"__isSmartRef__":true,"id":6734},"_Extent":{"__isSmartRef__":true,"id":6735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6738":{"morph":{"__isSmartRef__":true,"id":6651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6739":{"layouter":{"__isSmartRef__":true,"id":6740},"resizeWidth":true},"6740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6742":{"x":0,"y":900,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6744}},"6744":{"varMapping":{"__isSmartRef__":true,"id":6745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6745":{"this":{"__isSmartRef__":true,"id":6651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6746}},"6746":{"$super":{"__isSmartRef__":true,"id":6747}},"6747":{"varMapping":{"__isSmartRef__":true,"id":6748},"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":6749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6748":{"obj":{"__isSmartRef__":true,"id":6651},"name":"getLayoutableSubmorphs"},"6749":{},"6750":{},"6751":{"submorphs":[{"__isSmartRef__":true,"id":6752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6832},"id":233,"renderContextTable":{"__isSmartRef__":true,"id":6837},"eventHandler":{"__isSmartRef__":true,"id":6838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6752":{"submorphs":[{"__isSmartRef__":true,"id":6753},{"__isSmartRef__":true,"id":6778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6795},"id":230,"renderContextTable":{"__isSmartRef__":true,"id":6800},"eventHandler":{"__isSmartRef__":true,"id":6801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6802},"grabbingEnabled":false,"draggingEnabled":false,"data":8081,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"personalServerPort","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6753},"text":{"__isSmartRef__":true,"id":6778},"owner":{"__isSmartRef__":true,"id":6751},"_Position":{"__isSmartRef__":true,"id":6803},"priorExtent":{"__isSmartRef__":true,"id":6804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6754},"id":231,"renderContextTable":{"__isSmartRef__":true,"id":6760},"eventHandler":{"__isSmartRef__":true,"id":6761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6754":{"_Position":{"__isSmartRef__":true,"id":6755},"renderContextTable":{"__isSmartRef__":true,"id":6756},"_Extent":{"__isSmartRef__":true,"id":6757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6761":{"morph":{"__isSmartRef__":true,"id":6753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6763":{"onMouseUp":{"__isSmartRef__":true,"id":6764},"toggle":{"__isSmartRef__":true,"id":6771}},"6764":{"varMapping":{"__isSmartRef__":true,"id":6765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6765":{"this":{"__isSmartRef__":true,"id":6753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6766}},"6766":{"$super":{"__isSmartRef__":true,"id":6767}},"6767":{"varMapping":{"__isSmartRef__":true,"id":6768},"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":6769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6768":{"obj":{"__isSmartRef__":true,"id":6753},"name":"onMouseUp"},"6769":{},"6770":{},"6771":{"varMapping":{"__isSmartRef__":true,"id":6772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6772":{"this":{"__isSmartRef__":true,"id":6753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6773}},"6773":{"$super":{"__isSmartRef__":true,"id":6774}},"6774":{"varMapping":{"__isSmartRef__":true,"id":6775},"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":6776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6775":{"obj":{"__isSmartRef__":true,"id":6753},"name":"toggle"},"6776":{},"6777":{},"6778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6779},"id":232,"renderContextTable":{"__isSmartRef__":true,"id":6783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6784},{"__isSmartRef__":true,"id":6786}],"eventHandler":{"__isSmartRef__":true,"id":6788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6789},"priorExtent":{"__isSmartRef__":true,"id":6790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6779":{"_Position":{"__isSmartRef__":true,"id":6780},"renderContextTable":{"__isSmartRef__":true,"id":6781},"_Extent":{"__isSmartRef__":true,"id":6782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6782":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6784":{"style":{"__isSmartRef__":true,"id":6785},"chunkOwner":{"__isSmartRef__":true,"id":6778},"storedString":"personalServerPort","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6786":{"style":{"__isSmartRef__":true,"id":6787},"chunkOwner":{"__isSmartRef__":true,"id":6778},"storedString":": 8081","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6788":{"morph":{"__isSmartRef__":true,"id":6778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6790":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6791":{"layoutText":{"__isSmartRef__":true,"id":6792}},"6792":{"varMapping":{"__isSmartRef__":true,"id":6793},"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":6794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6793":{"this":{"__isSmartRef__":true,"id":6778}},"6794":{},"6795":{"_Position":{"__isSmartRef__":true,"id":6796},"renderContextTable":{"__isSmartRef__":true,"id":6797},"_Extent":{"__isSmartRef__":true,"id":6798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6801":{"morph":{"__isSmartRef__":true,"id":6752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6802":{"resizeWidth":true},"6803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6805":{"updateExpanderColor":{"__isSmartRef__":true,"id":6806},"onMouseDown":{"__isSmartRef__":true,"id":6809},"onMouseUp":{"__isSmartRef__":true,"id":6816},"isRoot":{"__isSmartRef__":true,"id":6823},"displayValue":{"__isSmartRef__":true,"id":6826},"update":{"__isSmartRef__":true,"id":6829}},"6806":{"varMapping":{"__isSmartRef__":true,"id":6807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6807":{"this":{"__isSmartRef__":true,"id":6752}},"6808":{},"6809":{"varMapping":{"__isSmartRef__":true,"id":6810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6810":{"this":{"__isSmartRef__":true,"id":6752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6811}},"6811":{"$super":{"__isSmartRef__":true,"id":6812}},"6812":{"varMapping":{"__isSmartRef__":true,"id":6813},"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":6814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6813":{"obj":{"__isSmartRef__":true,"id":6752},"name":"onMouseDown"},"6814":{},"6815":{},"6816":{"varMapping":{"__isSmartRef__":true,"id":6817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6817":{"this":{"__isSmartRef__":true,"id":6752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6818}},"6818":{"$super":{"__isSmartRef__":true,"id":6819}},"6819":{"varMapping":{"__isSmartRef__":true,"id":6820},"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":6821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6820":{"obj":{"__isSmartRef__":true,"id":6752},"name":"onMouseUp"},"6821":{},"6822":{},"6823":{"varMapping":{"__isSmartRef__":true,"id":6824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6824":{"this":{"__isSmartRef__":true,"id":6752}},"6825":{},"6826":{"varMapping":{"__isSmartRef__":true,"id":6827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6827":{"this":{"__isSmartRef__":true,"id":6752}},"6828":{},"6829":{"varMapping":{"__isSmartRef__":true,"id":6830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6830":{"this":{"__isSmartRef__":true,"id":6752}},"6831":{},"6832":{"_Position":{"__isSmartRef__":true,"id":6833},"renderContextTable":{"__isSmartRef__":true,"id":6834},"_Extent":{"__isSmartRef__":true,"id":6835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6838":{"morph":{"__isSmartRef__":true,"id":6751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6839":{"layouter":{"__isSmartRef__":true,"id":6840},"resizeWidth":true},"6840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6842":{"x":0,"y":920,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6844}},"6844":{"varMapping":{"__isSmartRef__":true,"id":6845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6845":{"this":{"__isSmartRef__":true,"id":6751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6846}},"6846":{"$super":{"__isSmartRef__":true,"id":6847}},"6847":{"varMapping":{"__isSmartRef__":true,"id":6848},"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":6849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6848":{"obj":{"__isSmartRef__":true,"id":6751},"name":"getLayoutableSubmorphs"},"6849":{},"6850":{},"6851":{"submorphs":[{"__isSmartRef__":true,"id":6852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6932},"id":237,"renderContextTable":{"__isSmartRef__":true,"id":6937},"eventHandler":{"__isSmartRef__":true,"id":6938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":6942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6852":{"submorphs":[{"__isSmartRef__":true,"id":6853},{"__isSmartRef__":true,"id":6878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6895},"id":234,"renderContextTable":{"__isSmartRef__":true,"id":6900},"eventHandler":{"__isSmartRef__":true,"id":6901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6902},"grabbingEnabled":false,"draggingEnabled":false,"data":"http://lively-kernel.org/proxy","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":2131},"label":"proxyURL","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6853},"text":{"__isSmartRef__":true,"id":6878},"owner":{"__isSmartRef__":true,"id":6851},"_Position":{"__isSmartRef__":true,"id":6903},"priorExtent":{"__isSmartRef__":true,"id":6904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6854},"id":235,"renderContextTable":{"__isSmartRef__":true,"id":6860},"eventHandler":{"__isSmartRef__":true,"id":6861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6854":{"_Position":{"__isSmartRef__":true,"id":6855},"renderContextTable":{"__isSmartRef__":true,"id":6856},"_Extent":{"__isSmartRef__":true,"id":6857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6861":{"morph":{"__isSmartRef__":true,"id":6853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6863":{"onMouseUp":{"__isSmartRef__":true,"id":6864},"toggle":{"__isSmartRef__":true,"id":6871}},"6864":{"varMapping":{"__isSmartRef__":true,"id":6865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6865":{"this":{"__isSmartRef__":true,"id":6853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6866}},"6866":{"$super":{"__isSmartRef__":true,"id":6867}},"6867":{"varMapping":{"__isSmartRef__":true,"id":6868},"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":6869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6868":{"obj":{"__isSmartRef__":true,"id":6853},"name":"onMouseUp"},"6869":{},"6870":{},"6871":{"varMapping":{"__isSmartRef__":true,"id":6872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6872":{"this":{"__isSmartRef__":true,"id":6853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6873}},"6873":{"$super":{"__isSmartRef__":true,"id":6874}},"6874":{"varMapping":{"__isSmartRef__":true,"id":6875},"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":6876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6875":{"obj":{"__isSmartRef__":true,"id":6853},"name":"toggle"},"6876":{},"6877":{},"6878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6879},"id":236,"renderContextTable":{"__isSmartRef__":true,"id":6883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6884},{"__isSmartRef__":true,"id":6886}],"eventHandler":{"__isSmartRef__":true,"id":6888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6889},"priorExtent":{"__isSmartRef__":true,"id":6890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6879":{"_Position":{"__isSmartRef__":true,"id":6880},"renderContextTable":{"__isSmartRef__":true,"id":6881},"_Extent":{"__isSmartRef__":true,"id":6882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6882":{"x":308,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6884":{"style":{"__isSmartRef__":true,"id":6885},"chunkOwner":{"__isSmartRef__":true,"id":6878},"storedString":"proxyURL","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6886":{"style":{"__isSmartRef__":true,"id":6887},"chunkOwner":{"__isSmartRef__":true,"id":6878},"storedString":": http://lively-kernel.org/proxy","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6888":{"morph":{"__isSmartRef__":true,"id":6878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6890":{"x":300,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6891":{"layoutText":{"__isSmartRef__":true,"id":6892}},"6892":{"varMapping":{"__isSmartRef__":true,"id":6893},"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":6894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6893":{"this":{"__isSmartRef__":true,"id":6878}},"6894":{},"6895":{"_Position":{"__isSmartRef__":true,"id":6896},"renderContextTable":{"__isSmartRef__":true,"id":6897},"_Extent":{"__isSmartRef__":true,"id":6898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6901":{"morph":{"__isSmartRef__":true,"id":6852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6902":{"resizeWidth":true},"6903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6905":{"updateExpanderColor":{"__isSmartRef__":true,"id":6906},"onMouseDown":{"__isSmartRef__":true,"id":6909},"onMouseUp":{"__isSmartRef__":true,"id":6916},"isRoot":{"__isSmartRef__":true,"id":6923},"displayValue":{"__isSmartRef__":true,"id":6926},"update":{"__isSmartRef__":true,"id":6929}},"6906":{"varMapping":{"__isSmartRef__":true,"id":6907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6907":{"this":{"__isSmartRef__":true,"id":6852}},"6908":{},"6909":{"varMapping":{"__isSmartRef__":true,"id":6910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6910":{"this":{"__isSmartRef__":true,"id":6852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6911}},"6911":{"$super":{"__isSmartRef__":true,"id":6912}},"6912":{"varMapping":{"__isSmartRef__":true,"id":6913},"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":6914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6913":{"obj":{"__isSmartRef__":true,"id":6852},"name":"onMouseDown"},"6914":{},"6915":{},"6916":{"varMapping":{"__isSmartRef__":true,"id":6917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6917":{"this":{"__isSmartRef__":true,"id":6852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6918}},"6918":{"$super":{"__isSmartRef__":true,"id":6919}},"6919":{"varMapping":{"__isSmartRef__":true,"id":6920},"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":6921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6920":{"obj":{"__isSmartRef__":true,"id":6852},"name":"onMouseUp"},"6921":{},"6922":{},"6923":{"varMapping":{"__isSmartRef__":true,"id":6924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6924":{"this":{"__isSmartRef__":true,"id":6852}},"6925":{},"6926":{"varMapping":{"__isSmartRef__":true,"id":6927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":6928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6927":{"this":{"__isSmartRef__":true,"id":6852}},"6928":{},"6929":{"varMapping":{"__isSmartRef__":true,"id":6930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6930":{"this":{"__isSmartRef__":true,"id":6852}},"6931":{},"6932":{"_Position":{"__isSmartRef__":true,"id":6933},"renderContextTable":{"__isSmartRef__":true,"id":6934},"_Extent":{"__isSmartRef__":true,"id":6935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6938":{"morph":{"__isSmartRef__":true,"id":6851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6939":{"layouter":{"__isSmartRef__":true,"id":6940},"resizeWidth":true},"6940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6942":{"x":0,"y":940,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6944}},"6944":{"varMapping":{"__isSmartRef__":true,"id":6945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6945":{"this":{"__isSmartRef__":true,"id":6851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6946}},"6946":{"$super":{"__isSmartRef__":true,"id":6947}},"6947":{"varMapping":{"__isSmartRef__":true,"id":6948},"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":6949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6948":{"obj":{"__isSmartRef__":true,"id":6851},"name":"getLayoutableSubmorphs"},"6949":{},"6950":{},"6951":{"submorphs":[{"__isSmartRef__":true,"id":6952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7032},"id":241,"renderContextTable":{"__isSmartRef__":true,"id":7037},"eventHandler":{"__isSmartRef__":true,"id":7038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6952":{"submorphs":[{"__isSmartRef__":true,"id":6953},{"__isSmartRef__":true,"id":6978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6995},"id":238,"renderContextTable":{"__isSmartRef__":true,"id":7000},"eventHandler":{"__isSmartRef__":true,"id":7001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7002},"grabbingEnabled":false,"draggingEnabled":false,"data":975831328,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"random","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":6953},"text":{"__isSmartRef__":true,"id":6978},"owner":{"__isSmartRef__":true,"id":6951},"_Position":{"__isSmartRef__":true,"id":7003},"priorExtent":{"__isSmartRef__":true,"id":7004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6954},"id":239,"renderContextTable":{"__isSmartRef__":true,"id":6960},"eventHandler":{"__isSmartRef__":true,"id":6961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6954":{"_Position":{"__isSmartRef__":true,"id":6955},"renderContextTable":{"__isSmartRef__":true,"id":6956},"_Extent":{"__isSmartRef__":true,"id":6957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":6959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6961":{"morph":{"__isSmartRef__":true,"id":6953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6963":{"onMouseUp":{"__isSmartRef__":true,"id":6964},"toggle":{"__isSmartRef__":true,"id":6971}},"6964":{"varMapping":{"__isSmartRef__":true,"id":6965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":6970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6965":{"this":{"__isSmartRef__":true,"id":6953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6966}},"6966":{"$super":{"__isSmartRef__":true,"id":6967}},"6967":{"varMapping":{"__isSmartRef__":true,"id":6968},"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":6969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6968":{"obj":{"__isSmartRef__":true,"id":6953},"name":"onMouseUp"},"6969":{},"6970":{},"6971":{"varMapping":{"__isSmartRef__":true,"id":6972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":6977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6972":{"this":{"__isSmartRef__":true,"id":6953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6973}},"6973":{"$super":{"__isSmartRef__":true,"id":6974}},"6974":{"varMapping":{"__isSmartRef__":true,"id":6975},"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":6976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6975":{"obj":{"__isSmartRef__":true,"id":6953},"name":"toggle"},"6976":{},"6977":{},"6978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6979},"id":240,"renderContextTable":{"__isSmartRef__":true,"id":6983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6984},{"__isSmartRef__":true,"id":6986}],"eventHandler":{"__isSmartRef__":true,"id":6988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6989},"priorExtent":{"__isSmartRef__":true,"id":6990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6979":{"_Position":{"__isSmartRef__":true,"id":6980},"renderContextTable":{"__isSmartRef__":true,"id":6981},"_Extent":{"__isSmartRef__":true,"id":6982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6982":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6984":{"style":{"__isSmartRef__":true,"id":6985},"chunkOwner":{"__isSmartRef__":true,"id":6978},"storedString":"random","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6986":{"style":{"__isSmartRef__":true,"id":6987},"chunkOwner":{"__isSmartRef__":true,"id":6978},"storedString":": 975831328","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6988":{"morph":{"__isSmartRef__":true,"id":6978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6990":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6991":{"layoutText":{"__isSmartRef__":true,"id":6992}},"6992":{"varMapping":{"__isSmartRef__":true,"id":6993},"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":6994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6993":{"this":{"__isSmartRef__":true,"id":6978}},"6994":{},"6995":{"_Position":{"__isSmartRef__":true,"id":6996},"renderContextTable":{"__isSmartRef__":true,"id":6997},"_Extent":{"__isSmartRef__":true,"id":6998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7001":{"morph":{"__isSmartRef__":true,"id":6952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7002":{"resizeWidth":true},"7003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7005":{"updateExpanderColor":{"__isSmartRef__":true,"id":7006},"onMouseDown":{"__isSmartRef__":true,"id":7009},"onMouseUp":{"__isSmartRef__":true,"id":7016},"isRoot":{"__isSmartRef__":true,"id":7023},"displayValue":{"__isSmartRef__":true,"id":7026},"update":{"__isSmartRef__":true,"id":7029}},"7006":{"varMapping":{"__isSmartRef__":true,"id":7007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7007":{"this":{"__isSmartRef__":true,"id":6952}},"7008":{},"7009":{"varMapping":{"__isSmartRef__":true,"id":7010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7010":{"this":{"__isSmartRef__":true,"id":6952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7011}},"7011":{"$super":{"__isSmartRef__":true,"id":7012}},"7012":{"varMapping":{"__isSmartRef__":true,"id":7013},"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":7014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7013":{"obj":{"__isSmartRef__":true,"id":6952},"name":"onMouseDown"},"7014":{},"7015":{},"7016":{"varMapping":{"__isSmartRef__":true,"id":7017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7017":{"this":{"__isSmartRef__":true,"id":6952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7018}},"7018":{"$super":{"__isSmartRef__":true,"id":7019}},"7019":{"varMapping":{"__isSmartRef__":true,"id":7020},"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":7021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7020":{"obj":{"__isSmartRef__":true,"id":6952},"name":"onMouseUp"},"7021":{},"7022":{},"7023":{"varMapping":{"__isSmartRef__":true,"id":7024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7024":{"this":{"__isSmartRef__":true,"id":6952}},"7025":{},"7026":{"varMapping":{"__isSmartRef__":true,"id":7027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7027":{"this":{"__isSmartRef__":true,"id":6952}},"7028":{},"7029":{"varMapping":{"__isSmartRef__":true,"id":7030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7030":{"this":{"__isSmartRef__":true,"id":6952}},"7031":{},"7032":{"_Position":{"__isSmartRef__":true,"id":7033},"renderContextTable":{"__isSmartRef__":true,"id":7034},"_Extent":{"__isSmartRef__":true,"id":7035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7038":{"morph":{"__isSmartRef__":true,"id":6951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7039":{"layouter":{"__isSmartRef__":true,"id":7040},"resizeWidth":true},"7040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7042":{"x":0,"y":960,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7044}},"7044":{"varMapping":{"__isSmartRef__":true,"id":7045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7045":{"this":{"__isSmartRef__":true,"id":6951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7046}},"7046":{"$super":{"__isSmartRef__":true,"id":7047}},"7047":{"varMapping":{"__isSmartRef__":true,"id":7048},"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":7049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7048":{"obj":{"__isSmartRef__":true,"id":6951},"name":"getLayoutableSubmorphs"},"7049":{},"7050":{},"7051":{"submorphs":[{"__isSmartRef__":true,"id":7052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7132},"id":245,"renderContextTable":{"__isSmartRef__":true,"id":7137},"eventHandler":{"__isSmartRef__":true,"id":7138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7052":{"submorphs":[{"__isSmartRef__":true,"id":7053},{"__isSmartRef__":true,"id":7078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7095},"id":242,"renderContextTable":{"__isSmartRef__":true,"id":7100},"eventHandler":{"__isSmartRef__":true,"id":7101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7102},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"resizeScreenToWorldBounds","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7053},"text":{"__isSmartRef__":true,"id":7078},"owner":{"__isSmartRef__":true,"id":7051},"_Position":{"__isSmartRef__":true,"id":7103},"priorExtent":{"__isSmartRef__":true,"id":7104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7054},"id":243,"renderContextTable":{"__isSmartRef__":true,"id":7060},"eventHandler":{"__isSmartRef__":true,"id":7061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7054":{"_Position":{"__isSmartRef__":true,"id":7055},"renderContextTable":{"__isSmartRef__":true,"id":7056},"_Extent":{"__isSmartRef__":true,"id":7057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7061":{"morph":{"__isSmartRef__":true,"id":7053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7063":{"onMouseUp":{"__isSmartRef__":true,"id":7064},"toggle":{"__isSmartRef__":true,"id":7071}},"7064":{"varMapping":{"__isSmartRef__":true,"id":7065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7065":{"this":{"__isSmartRef__":true,"id":7053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7066}},"7066":{"$super":{"__isSmartRef__":true,"id":7067}},"7067":{"varMapping":{"__isSmartRef__":true,"id":7068},"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":7069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7068":{"obj":{"__isSmartRef__":true,"id":7053},"name":"onMouseUp"},"7069":{},"7070":{},"7071":{"varMapping":{"__isSmartRef__":true,"id":7072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7072":{"this":{"__isSmartRef__":true,"id":7053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7073}},"7073":{"$super":{"__isSmartRef__":true,"id":7074}},"7074":{"varMapping":{"__isSmartRef__":true,"id":7075},"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":7076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7075":{"obj":{"__isSmartRef__":true,"id":7053},"name":"toggle"},"7076":{},"7077":{},"7078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7079},"id":244,"renderContextTable":{"__isSmartRef__":true,"id":7083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7084},{"__isSmartRef__":true,"id":7086}],"eventHandler":{"__isSmartRef__":true,"id":7088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7089},"priorExtent":{"__isSmartRef__":true,"id":7090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7079":{"_Position":{"__isSmartRef__":true,"id":7080},"renderContextTable":{"__isSmartRef__":true,"id":7081},"_Extent":{"__isSmartRef__":true,"id":7082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7082":{"x":240.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7084":{"style":{"__isSmartRef__":true,"id":7085},"chunkOwner":{"__isSmartRef__":true,"id":7078},"storedString":"resizeScreenToWorldBounds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7086":{"style":{"__isSmartRef__":true,"id":7087},"chunkOwner":{"__isSmartRef__":true,"id":7078},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7088":{"morph":{"__isSmartRef__":true,"id":7078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7090":{"x":232.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7091":{"layoutText":{"__isSmartRef__":true,"id":7092}},"7092":{"varMapping":{"__isSmartRef__":true,"id":7093},"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":7094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7093":{"this":{"__isSmartRef__":true,"id":7078}},"7094":{},"7095":{"_Position":{"__isSmartRef__":true,"id":7096},"renderContextTable":{"__isSmartRef__":true,"id":7097},"_Extent":{"__isSmartRef__":true,"id":7098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7101":{"morph":{"__isSmartRef__":true,"id":7052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7102":{"resizeWidth":true},"7103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7105":{"updateExpanderColor":{"__isSmartRef__":true,"id":7106},"onMouseDown":{"__isSmartRef__":true,"id":7109},"onMouseUp":{"__isSmartRef__":true,"id":7116},"isRoot":{"__isSmartRef__":true,"id":7123},"displayValue":{"__isSmartRef__":true,"id":7126},"update":{"__isSmartRef__":true,"id":7129}},"7106":{"varMapping":{"__isSmartRef__":true,"id":7107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7107":{"this":{"__isSmartRef__":true,"id":7052}},"7108":{},"7109":{"varMapping":{"__isSmartRef__":true,"id":7110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7110":{"this":{"__isSmartRef__":true,"id":7052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7111}},"7111":{"$super":{"__isSmartRef__":true,"id":7112}},"7112":{"varMapping":{"__isSmartRef__":true,"id":7113},"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":7114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7113":{"obj":{"__isSmartRef__":true,"id":7052},"name":"onMouseDown"},"7114":{},"7115":{},"7116":{"varMapping":{"__isSmartRef__":true,"id":7117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7117":{"this":{"__isSmartRef__":true,"id":7052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7118}},"7118":{"$super":{"__isSmartRef__":true,"id":7119}},"7119":{"varMapping":{"__isSmartRef__":true,"id":7120},"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":7121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7120":{"obj":{"__isSmartRef__":true,"id":7052},"name":"onMouseUp"},"7121":{},"7122":{},"7123":{"varMapping":{"__isSmartRef__":true,"id":7124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7124":{"this":{"__isSmartRef__":true,"id":7052}},"7125":{},"7126":{"varMapping":{"__isSmartRef__":true,"id":7127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7127":{"this":{"__isSmartRef__":true,"id":7052}},"7128":{},"7129":{"varMapping":{"__isSmartRef__":true,"id":7130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7130":{"this":{"__isSmartRef__":true,"id":7052}},"7131":{},"7132":{"_Position":{"__isSmartRef__":true,"id":7133},"renderContextTable":{"__isSmartRef__":true,"id":7134},"_Extent":{"__isSmartRef__":true,"id":7135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7138":{"morph":{"__isSmartRef__":true,"id":7051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7139":{"layouter":{"__isSmartRef__":true,"id":7140},"resizeWidth":true},"7140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7142":{"x":0,"y":980,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7144}},"7144":{"varMapping":{"__isSmartRef__":true,"id":7145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7145":{"this":{"__isSmartRef__":true,"id":7051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7146}},"7146":{"$super":{"__isSmartRef__":true,"id":7147}},"7147":{"varMapping":{"__isSmartRef__":true,"id":7148},"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":7149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7148":{"obj":{"__isSmartRef__":true,"id":7051},"name":"getLayoutableSubmorphs"},"7149":{},"7150":{},"7151":{"submorphs":[{"__isSmartRef__":true,"id":7152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7232},"id":249,"renderContextTable":{"__isSmartRef__":true,"id":7237},"eventHandler":{"__isSmartRef__":true,"id":7238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7152":{"submorphs":[{"__isSmartRef__":true,"id":7153},{"__isSmartRef__":true,"id":7178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7195},"id":246,"renderContextTable":{"__isSmartRef__":true,"id":7200},"eventHandler":{"__isSmartRef__":true,"id":7201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7202},"grabbingEnabled":false,"draggingEnabled":false,"data":"http://lively-kernel.org/repository/webwerkstatt/","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"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"rootPath","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7153},"text":{"__isSmartRef__":true,"id":7178},"owner":{"__isSmartRef__":true,"id":7151},"_Position":{"__isSmartRef__":true,"id":7203},"priorExtent":{"__isSmartRef__":true,"id":7204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7154},"id":247,"renderContextTable":{"__isSmartRef__":true,"id":7160},"eventHandler":{"__isSmartRef__":true,"id":7161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7154":{"_Position":{"__isSmartRef__":true,"id":7155},"renderContextTable":{"__isSmartRef__":true,"id":7156},"_Extent":{"__isSmartRef__":true,"id":7157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7161":{"morph":{"__isSmartRef__":true,"id":7153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7163":{"onMouseUp":{"__isSmartRef__":true,"id":7164},"toggle":{"__isSmartRef__":true,"id":7171}},"7164":{"varMapping":{"__isSmartRef__":true,"id":7165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7165":{"this":{"__isSmartRef__":true,"id":7153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7166}},"7166":{"$super":{"__isSmartRef__":true,"id":7167}},"7167":{"varMapping":{"__isSmartRef__":true,"id":7168},"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":7169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7168":{"obj":{"__isSmartRef__":true,"id":7153},"name":"onMouseUp"},"7169":{},"7170":{},"7171":{"varMapping":{"__isSmartRef__":true,"id":7172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7172":{"this":{"__isSmartRef__":true,"id":7153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7173}},"7173":{"$super":{"__isSmartRef__":true,"id":7174}},"7174":{"varMapping":{"__isSmartRef__":true,"id":7175},"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":7176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7175":{"obj":{"__isSmartRef__":true,"id":7153},"name":"toggle"},"7176":{},"7177":{},"7178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7179},"id":248,"renderContextTable":{"__isSmartRef__":true,"id":7183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7184},{"__isSmartRef__":true,"id":7186}],"eventHandler":{"__isSmartRef__":true,"id":7188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7189},"priorExtent":{"__isSmartRef__":true,"id":7190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7179":{"_Position":{"__isSmartRef__":true,"id":7180},"renderContextTable":{"__isSmartRef__":true,"id":7181},"_Extent":{"__isSmartRef__":true,"id":7182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7182":{"x":450.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7184":{"style":{"__isSmartRef__":true,"id":7185},"chunkOwner":{"__isSmartRef__":true,"id":7178},"storedString":"rootPath","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7186":{"style":{"__isSmartRef__":true,"id":7187},"chunkOwner":{"__isSmartRef__":true,"id":7178},"storedString":": http://lively-kernel.org/repository/webwerkstatt/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7188":{"morph":{"__isSmartRef__":true,"id":7178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7190":{"x":442.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7191":{"layoutText":{"__isSmartRef__":true,"id":7192}},"7192":{"varMapping":{"__isSmartRef__":true,"id":7193},"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":7194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7193":{"this":{"__isSmartRef__":true,"id":7178}},"7194":{},"7195":{"_Position":{"__isSmartRef__":true,"id":7196},"renderContextTable":{"__isSmartRef__":true,"id":7197},"_Extent":{"__isSmartRef__":true,"id":7198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7201":{"morph":{"__isSmartRef__":true,"id":7152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7202":{"resizeWidth":true},"7203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7205":{"updateExpanderColor":{"__isSmartRef__":true,"id":7206},"onMouseDown":{"__isSmartRef__":true,"id":7209},"onMouseUp":{"__isSmartRef__":true,"id":7216},"isRoot":{"__isSmartRef__":true,"id":7223},"displayValue":{"__isSmartRef__":true,"id":7226},"update":{"__isSmartRef__":true,"id":7229}},"7206":{"varMapping":{"__isSmartRef__":true,"id":7207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7207":{"this":{"__isSmartRef__":true,"id":7152}},"7208":{},"7209":{"varMapping":{"__isSmartRef__":true,"id":7210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7210":{"this":{"__isSmartRef__":true,"id":7152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7211}},"7211":{"$super":{"__isSmartRef__":true,"id":7212}},"7212":{"varMapping":{"__isSmartRef__":true,"id":7213},"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":7214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7213":{"obj":{"__isSmartRef__":true,"id":7152},"name":"onMouseDown"},"7214":{},"7215":{},"7216":{"varMapping":{"__isSmartRef__":true,"id":7217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7217":{"this":{"__isSmartRef__":true,"id":7152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7218}},"7218":{"$super":{"__isSmartRef__":true,"id":7219}},"7219":{"varMapping":{"__isSmartRef__":true,"id":7220},"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":7221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7220":{"obj":{"__isSmartRef__":true,"id":7152},"name":"onMouseUp"},"7221":{},"7222":{},"7223":{"varMapping":{"__isSmartRef__":true,"id":7224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7224":{"this":{"__isSmartRef__":true,"id":7152}},"7225":{},"7226":{"varMapping":{"__isSmartRef__":true,"id":7227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7227":{"this":{"__isSmartRef__":true,"id":7152}},"7228":{},"7229":{"varMapping":{"__isSmartRef__":true,"id":7230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7230":{"this":{"__isSmartRef__":true,"id":7152}},"7231":{},"7232":{"_Position":{"__isSmartRef__":true,"id":7233},"renderContextTable":{"__isSmartRef__":true,"id":7234},"_Extent":{"__isSmartRef__":true,"id":7235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7238":{"morph":{"__isSmartRef__":true,"id":7151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7239":{"layouter":{"__isSmartRef__":true,"id":7240},"resizeWidth":true},"7240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7242":{"x":0,"y":1000,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7244}},"7244":{"varMapping":{"__isSmartRef__":true,"id":7245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7245":{"this":{"__isSmartRef__":true,"id":7151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7246}},"7246":{"$super":{"__isSmartRef__":true,"id":7247}},"7247":{"varMapping":{"__isSmartRef__":true,"id":7248},"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":7249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7248":{"obj":{"__isSmartRef__":true,"id":7151},"name":"getLayoutableSubmorphs"},"7249":{},"7250":{},"7251":{"submorphs":[{"__isSmartRef__":true,"id":7252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7332},"id":253,"renderContextTable":{"__isSmartRef__":true,"id":7337},"eventHandler":{"__isSmartRef__":true,"id":7338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7252":{"submorphs":[{"__isSmartRef__":true,"id":7253},{"__isSmartRef__":true,"id":7278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7295},"id":250,"renderContextTable":{"__isSmartRef__":true,"id":7300},"eventHandler":{"__isSmartRef__":true,"id":7301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7302},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"selfConnect","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7253},"text":{"__isSmartRef__":true,"id":7278},"owner":{"__isSmartRef__":true,"id":7251},"_Position":{"__isSmartRef__":true,"id":7303},"priorExtent":{"__isSmartRef__":true,"id":7304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7254},"id":251,"renderContextTable":{"__isSmartRef__":true,"id":7260},"eventHandler":{"__isSmartRef__":true,"id":7261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7254":{"_Position":{"__isSmartRef__":true,"id":7255},"renderContextTable":{"__isSmartRef__":true,"id":7256},"_Extent":{"__isSmartRef__":true,"id":7257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7261":{"morph":{"__isSmartRef__":true,"id":7253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7263":{"onMouseUp":{"__isSmartRef__":true,"id":7264},"toggle":{"__isSmartRef__":true,"id":7271}},"7264":{"varMapping":{"__isSmartRef__":true,"id":7265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7265":{"this":{"__isSmartRef__":true,"id":7253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7266}},"7266":{"$super":{"__isSmartRef__":true,"id":7267}},"7267":{"varMapping":{"__isSmartRef__":true,"id":7268},"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":7269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7268":{"obj":{"__isSmartRef__":true,"id":7253},"name":"onMouseUp"},"7269":{},"7270":{},"7271":{"varMapping":{"__isSmartRef__":true,"id":7272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7272":{"this":{"__isSmartRef__":true,"id":7253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7273}},"7273":{"$super":{"__isSmartRef__":true,"id":7274}},"7274":{"varMapping":{"__isSmartRef__":true,"id":7275},"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":7276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7275":{"obj":{"__isSmartRef__":true,"id":7253},"name":"toggle"},"7276":{},"7277":{},"7278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7279},"id":252,"renderContextTable":{"__isSmartRef__":true,"id":7283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7284},{"__isSmartRef__":true,"id":7286}],"eventHandler":{"__isSmartRef__":true,"id":7288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7289},"priorExtent":{"__isSmartRef__":true,"id":7290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7279":{"_Position":{"__isSmartRef__":true,"id":7280},"renderContextTable":{"__isSmartRef__":true,"id":7281},"_Extent":{"__isSmartRef__":true,"id":7282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7282":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7284":{"style":{"__isSmartRef__":true,"id":7285},"chunkOwner":{"__isSmartRef__":true,"id":7278},"storedString":"selfConnect","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7286":{"style":{"__isSmartRef__":true,"id":7287},"chunkOwner":{"__isSmartRef__":true,"id":7278},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7288":{"morph":{"__isSmartRef__":true,"id":7278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7290":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7291":{"layoutText":{"__isSmartRef__":true,"id":7292}},"7292":{"varMapping":{"__isSmartRef__":true,"id":7293},"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":7294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7293":{"this":{"__isSmartRef__":true,"id":7278}},"7294":{},"7295":{"_Position":{"__isSmartRef__":true,"id":7296},"renderContextTable":{"__isSmartRef__":true,"id":7297},"_Extent":{"__isSmartRef__":true,"id":7298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7301":{"morph":{"__isSmartRef__":true,"id":7252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7302":{"resizeWidth":true},"7303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7305":{"updateExpanderColor":{"__isSmartRef__":true,"id":7306},"onMouseDown":{"__isSmartRef__":true,"id":7309},"onMouseUp":{"__isSmartRef__":true,"id":7316},"isRoot":{"__isSmartRef__":true,"id":7323},"displayValue":{"__isSmartRef__":true,"id":7326},"update":{"__isSmartRef__":true,"id":7329}},"7306":{"varMapping":{"__isSmartRef__":true,"id":7307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7307":{"this":{"__isSmartRef__":true,"id":7252}},"7308":{},"7309":{"varMapping":{"__isSmartRef__":true,"id":7310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7310":{"this":{"__isSmartRef__":true,"id":7252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7311}},"7311":{"$super":{"__isSmartRef__":true,"id":7312}},"7312":{"varMapping":{"__isSmartRef__":true,"id":7313},"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":7314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7313":{"obj":{"__isSmartRef__":true,"id":7252},"name":"onMouseDown"},"7314":{},"7315":{},"7316":{"varMapping":{"__isSmartRef__":true,"id":7317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7317":{"this":{"__isSmartRef__":true,"id":7252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7318}},"7318":{"$super":{"__isSmartRef__":true,"id":7319}},"7319":{"varMapping":{"__isSmartRef__":true,"id":7320},"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":7321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7320":{"obj":{"__isSmartRef__":true,"id":7252},"name":"onMouseUp"},"7321":{},"7322":{},"7323":{"varMapping":{"__isSmartRef__":true,"id":7324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7324":{"this":{"__isSmartRef__":true,"id":7252}},"7325":{},"7326":{"varMapping":{"__isSmartRef__":true,"id":7327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7327":{"this":{"__isSmartRef__":true,"id":7252}},"7328":{},"7329":{"varMapping":{"__isSmartRef__":true,"id":7330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7330":{"this":{"__isSmartRef__":true,"id":7252}},"7331":{},"7332":{"_Position":{"__isSmartRef__":true,"id":7333},"renderContextTable":{"__isSmartRef__":true,"id":7334},"_Extent":{"__isSmartRef__":true,"id":7335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7338":{"morph":{"__isSmartRef__":true,"id":7251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7339":{"layouter":{"__isSmartRef__":true,"id":7340},"resizeWidth":true},"7340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7342":{"x":0,"y":1020,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7344}},"7344":{"varMapping":{"__isSmartRef__":true,"id":7345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7345":{"this":{"__isSmartRef__":true,"id":7251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7346}},"7346":{"$super":{"__isSmartRef__":true,"id":7347}},"7347":{"varMapping":{"__isSmartRef__":true,"id":7348},"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":7349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7348":{"obj":{"__isSmartRef__":true,"id":7251},"name":"getLayoutableSubmorphs"},"7349":{},"7350":{},"7351":{"submorphs":[{"__isSmartRef__":true,"id":7352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7432},"id":257,"renderContextTable":{"__isSmartRef__":true,"id":7437},"eventHandler":{"__isSmartRef__":true,"id":7438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7352":{"submorphs":[{"__isSmartRef__":true,"id":7353},{"__isSmartRef__":true,"id":7378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7395},"id":254,"renderContextTable":{"__isSmartRef__":true,"id":7400},"eventHandler":{"__isSmartRef__":true,"id":7401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7402},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"serverInvokedTest","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7353},"text":{"__isSmartRef__":true,"id":7378},"owner":{"__isSmartRef__":true,"id":7351},"_Position":{"__isSmartRef__":true,"id":7403},"priorExtent":{"__isSmartRef__":true,"id":7404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7354},"id":255,"renderContextTable":{"__isSmartRef__":true,"id":7360},"eventHandler":{"__isSmartRef__":true,"id":7361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7354":{"_Position":{"__isSmartRef__":true,"id":7355},"renderContextTable":{"__isSmartRef__":true,"id":7356},"_Extent":{"__isSmartRef__":true,"id":7357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7361":{"morph":{"__isSmartRef__":true,"id":7353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7363":{"onMouseUp":{"__isSmartRef__":true,"id":7364},"toggle":{"__isSmartRef__":true,"id":7371}},"7364":{"varMapping":{"__isSmartRef__":true,"id":7365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7365":{"this":{"__isSmartRef__":true,"id":7353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7366}},"7366":{"$super":{"__isSmartRef__":true,"id":7367}},"7367":{"varMapping":{"__isSmartRef__":true,"id":7368},"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":7369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7368":{"obj":{"__isSmartRef__":true,"id":7353},"name":"onMouseUp"},"7369":{},"7370":{},"7371":{"varMapping":{"__isSmartRef__":true,"id":7372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7372":{"this":{"__isSmartRef__":true,"id":7353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7373}},"7373":{"$super":{"__isSmartRef__":true,"id":7374}},"7374":{"varMapping":{"__isSmartRef__":true,"id":7375},"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":7376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7375":{"obj":{"__isSmartRef__":true,"id":7353},"name":"toggle"},"7376":{},"7377":{},"7378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7379},"id":256,"renderContextTable":{"__isSmartRef__":true,"id":7383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7384},{"__isSmartRef__":true,"id":7386}],"eventHandler":{"__isSmartRef__":true,"id":7388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7389},"priorExtent":{"__isSmartRef__":true,"id":7390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7379":{"_Position":{"__isSmartRef__":true,"id":7380},"renderContextTable":{"__isSmartRef__":true,"id":7381},"_Extent":{"__isSmartRef__":true,"id":7382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7382":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7384":{"style":{"__isSmartRef__":true,"id":7385},"chunkOwner":{"__isSmartRef__":true,"id":7378},"storedString":"serverInvokedTest","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7386":{"style":{"__isSmartRef__":true,"id":7387},"chunkOwner":{"__isSmartRef__":true,"id":7378},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7388":{"morph":{"__isSmartRef__":true,"id":7378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7390":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7391":{"layoutText":{"__isSmartRef__":true,"id":7392}},"7392":{"varMapping":{"__isSmartRef__":true,"id":7393},"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":7394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7393":{"this":{"__isSmartRef__":true,"id":7378}},"7394":{},"7395":{"_Position":{"__isSmartRef__":true,"id":7396},"renderContextTable":{"__isSmartRef__":true,"id":7397},"_Extent":{"__isSmartRef__":true,"id":7398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7401":{"morph":{"__isSmartRef__":true,"id":7352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7402":{"resizeWidth":true},"7403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7405":{"updateExpanderColor":{"__isSmartRef__":true,"id":7406},"onMouseDown":{"__isSmartRef__":true,"id":7409},"onMouseUp":{"__isSmartRef__":true,"id":7416},"isRoot":{"__isSmartRef__":true,"id":7423},"displayValue":{"__isSmartRef__":true,"id":7426},"update":{"__isSmartRef__":true,"id":7429}},"7406":{"varMapping":{"__isSmartRef__":true,"id":7407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7407":{"this":{"__isSmartRef__":true,"id":7352}},"7408":{},"7409":{"varMapping":{"__isSmartRef__":true,"id":7410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7410":{"this":{"__isSmartRef__":true,"id":7352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7411}},"7411":{"$super":{"__isSmartRef__":true,"id":7412}},"7412":{"varMapping":{"__isSmartRef__":true,"id":7413},"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":7414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7413":{"obj":{"__isSmartRef__":true,"id":7352},"name":"onMouseDown"},"7414":{},"7415":{},"7416":{"varMapping":{"__isSmartRef__":true,"id":7417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7417":{"this":{"__isSmartRef__":true,"id":7352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7418}},"7418":{"$super":{"__isSmartRef__":true,"id":7419}},"7419":{"varMapping":{"__isSmartRef__":true,"id":7420},"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":7421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7420":{"obj":{"__isSmartRef__":true,"id":7352},"name":"onMouseUp"},"7421":{},"7422":{},"7423":{"varMapping":{"__isSmartRef__":true,"id":7424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7424":{"this":{"__isSmartRef__":true,"id":7352}},"7425":{},"7426":{"varMapping":{"__isSmartRef__":true,"id":7427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7427":{"this":{"__isSmartRef__":true,"id":7352}},"7428":{},"7429":{"varMapping":{"__isSmartRef__":true,"id":7430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7430":{"this":{"__isSmartRef__":true,"id":7352}},"7431":{},"7432":{"_Position":{"__isSmartRef__":true,"id":7433},"renderContextTable":{"__isSmartRef__":true,"id":7434},"_Extent":{"__isSmartRef__":true,"id":7435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7438":{"morph":{"__isSmartRef__":true,"id":7351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7439":{"layouter":{"__isSmartRef__":true,"id":7440},"resizeWidth":true},"7440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7442":{"x":0,"y":1040,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7444}},"7444":{"varMapping":{"__isSmartRef__":true,"id":7445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7445":{"this":{"__isSmartRef__":true,"id":7351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7446}},"7446":{"$super":{"__isSmartRef__":true,"id":7447}},"7447":{"varMapping":{"__isSmartRef__":true,"id":7448},"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":7449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7448":{"obj":{"__isSmartRef__":true,"id":7351},"name":"getLayoutableSubmorphs"},"7449":{},"7450":{},"7451":{"submorphs":[{"__isSmartRef__":true,"id":7452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7532},"id":261,"renderContextTable":{"__isSmartRef__":true,"id":7537},"eventHandler":{"__isSmartRef__":true,"id":7538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7452":{"submorphs":[{"__isSmartRef__":true,"id":7453},{"__isSmartRef__":true,"id":7478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7495},"id":258,"renderContextTable":{"__isSmartRef__":true,"id":7500},"eventHandler":{"__isSmartRef__":true,"id":7501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7502},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"shiftDragForDup","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7453},"text":{"__isSmartRef__":true,"id":7478},"owner":{"__isSmartRef__":true,"id":7451},"_Position":{"__isSmartRef__":true,"id":7503},"priorExtent":{"__isSmartRef__":true,"id":7504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7454},"id":259,"renderContextTable":{"__isSmartRef__":true,"id":7460},"eventHandler":{"__isSmartRef__":true,"id":7461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7454":{"_Position":{"__isSmartRef__":true,"id":7455},"renderContextTable":{"__isSmartRef__":true,"id":7456},"_Extent":{"__isSmartRef__":true,"id":7457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7461":{"morph":{"__isSmartRef__":true,"id":7453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7463":{"onMouseUp":{"__isSmartRef__":true,"id":7464},"toggle":{"__isSmartRef__":true,"id":7471}},"7464":{"varMapping":{"__isSmartRef__":true,"id":7465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7465":{"this":{"__isSmartRef__":true,"id":7453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7466}},"7466":{"$super":{"__isSmartRef__":true,"id":7467}},"7467":{"varMapping":{"__isSmartRef__":true,"id":7468},"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":7469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7468":{"obj":{"__isSmartRef__":true,"id":7453},"name":"onMouseUp"},"7469":{},"7470":{},"7471":{"varMapping":{"__isSmartRef__":true,"id":7472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7472":{"this":{"__isSmartRef__":true,"id":7453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7473}},"7473":{"$super":{"__isSmartRef__":true,"id":7474}},"7474":{"varMapping":{"__isSmartRef__":true,"id":7475},"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":7476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7475":{"obj":{"__isSmartRef__":true,"id":7453},"name":"toggle"},"7476":{},"7477":{},"7478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7479},"id":260,"renderContextTable":{"__isSmartRef__":true,"id":7483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7484},{"__isSmartRef__":true,"id":7486}],"eventHandler":{"__isSmartRef__":true,"id":7488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7489},"priorExtent":{"__isSmartRef__":true,"id":7490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7479":{"_Position":{"__isSmartRef__":true,"id":7480},"renderContextTable":{"__isSmartRef__":true,"id":7481},"_Extent":{"__isSmartRef__":true,"id":7482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7482":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7484":{"style":{"__isSmartRef__":true,"id":7485},"chunkOwner":{"__isSmartRef__":true,"id":7478},"storedString":"shiftDragForDup","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7486":{"style":{"__isSmartRef__":true,"id":7487},"chunkOwner":{"__isSmartRef__":true,"id":7478},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7488":{"morph":{"__isSmartRef__":true,"id":7478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7490":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7491":{"layoutText":{"__isSmartRef__":true,"id":7492}},"7492":{"varMapping":{"__isSmartRef__":true,"id":7493},"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":7494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7493":{"this":{"__isSmartRef__":true,"id":7478}},"7494":{},"7495":{"_Position":{"__isSmartRef__":true,"id":7496},"renderContextTable":{"__isSmartRef__":true,"id":7497},"_Extent":{"__isSmartRef__":true,"id":7498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7501":{"morph":{"__isSmartRef__":true,"id":7452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7502":{"resizeWidth":true},"7503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7505":{"updateExpanderColor":{"__isSmartRef__":true,"id":7506},"onMouseDown":{"__isSmartRef__":true,"id":7509},"onMouseUp":{"__isSmartRef__":true,"id":7516},"isRoot":{"__isSmartRef__":true,"id":7523},"displayValue":{"__isSmartRef__":true,"id":7526},"update":{"__isSmartRef__":true,"id":7529}},"7506":{"varMapping":{"__isSmartRef__":true,"id":7507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7507":{"this":{"__isSmartRef__":true,"id":7452}},"7508":{},"7509":{"varMapping":{"__isSmartRef__":true,"id":7510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7510":{"this":{"__isSmartRef__":true,"id":7452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7511}},"7511":{"$super":{"__isSmartRef__":true,"id":7512}},"7512":{"varMapping":{"__isSmartRef__":true,"id":7513},"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":7514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7513":{"obj":{"__isSmartRef__":true,"id":7452},"name":"onMouseDown"},"7514":{},"7515":{},"7516":{"varMapping":{"__isSmartRef__":true,"id":7517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7517":{"this":{"__isSmartRef__":true,"id":7452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7518}},"7518":{"$super":{"__isSmartRef__":true,"id":7519}},"7519":{"varMapping":{"__isSmartRef__":true,"id":7520},"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":7521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7520":{"obj":{"__isSmartRef__":true,"id":7452},"name":"onMouseUp"},"7521":{},"7522":{},"7523":{"varMapping":{"__isSmartRef__":true,"id":7524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7524":{"this":{"__isSmartRef__":true,"id":7452}},"7525":{},"7526":{"varMapping":{"__isSmartRef__":true,"id":7527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7527":{"this":{"__isSmartRef__":true,"id":7452}},"7528":{},"7529":{"varMapping":{"__isSmartRef__":true,"id":7530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7530":{"this":{"__isSmartRef__":true,"id":7452}},"7531":{},"7532":{"_Position":{"__isSmartRef__":true,"id":7533},"renderContextTable":{"__isSmartRef__":true,"id":7534},"_Extent":{"__isSmartRef__":true,"id":7535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7538":{"morph":{"__isSmartRef__":true,"id":7451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7539":{"layouter":{"__isSmartRef__":true,"id":7540},"resizeWidth":true},"7540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7542":{"x":0,"y":1060,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7544}},"7544":{"varMapping":{"__isSmartRef__":true,"id":7545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7545":{"this":{"__isSmartRef__":true,"id":7451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7546}},"7546":{"$super":{"__isSmartRef__":true,"id":7547}},"7547":{"varMapping":{"__isSmartRef__":true,"id":7548},"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":7549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7548":{"obj":{"__isSmartRef__":true,"id":7451},"name":"getLayoutableSubmorphs"},"7549":{},"7550":{},"7551":{"submorphs":[{"__isSmartRef__":true,"id":7552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7632},"id":265,"renderContextTable":{"__isSmartRef__":true,"id":7637},"eventHandler":{"__isSmartRef__":true,"id":7638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7552":{"submorphs":[{"__isSmartRef__":true,"id":7553},{"__isSmartRef__":true,"id":7578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7595},"id":262,"renderContextTable":{"__isSmartRef__":true,"id":7600},"eventHandler":{"__isSmartRef__":true,"id":7601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7602},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showAllTyping","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7553},"text":{"__isSmartRef__":true,"id":7578},"owner":{"__isSmartRef__":true,"id":7551},"_Position":{"__isSmartRef__":true,"id":7603},"priorExtent":{"__isSmartRef__":true,"id":7604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7554},"id":263,"renderContextTable":{"__isSmartRef__":true,"id":7560},"eventHandler":{"__isSmartRef__":true,"id":7561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7554":{"_Position":{"__isSmartRef__":true,"id":7555},"renderContextTable":{"__isSmartRef__":true,"id":7556},"_Extent":{"__isSmartRef__":true,"id":7557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7561":{"morph":{"__isSmartRef__":true,"id":7553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7563":{"onMouseUp":{"__isSmartRef__":true,"id":7564},"toggle":{"__isSmartRef__":true,"id":7571}},"7564":{"varMapping":{"__isSmartRef__":true,"id":7565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7565":{"this":{"__isSmartRef__":true,"id":7553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7566}},"7566":{"$super":{"__isSmartRef__":true,"id":7567}},"7567":{"varMapping":{"__isSmartRef__":true,"id":7568},"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":7569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7568":{"obj":{"__isSmartRef__":true,"id":7553},"name":"onMouseUp"},"7569":{},"7570":{},"7571":{"varMapping":{"__isSmartRef__":true,"id":7572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7572":{"this":{"__isSmartRef__":true,"id":7553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7573}},"7573":{"$super":{"__isSmartRef__":true,"id":7574}},"7574":{"varMapping":{"__isSmartRef__":true,"id":7575},"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":7576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7575":{"obj":{"__isSmartRef__":true,"id":7553},"name":"toggle"},"7576":{},"7577":{},"7578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7579},"id":264,"renderContextTable":{"__isSmartRef__":true,"id":7583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7584},{"__isSmartRef__":true,"id":7586}],"eventHandler":{"__isSmartRef__":true,"id":7588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7589},"priorExtent":{"__isSmartRef__":true,"id":7590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7579":{"_Position":{"__isSmartRef__":true,"id":7580},"renderContextTable":{"__isSmartRef__":true,"id":7581},"_Extent":{"__isSmartRef__":true,"id":7582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7582":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7584":{"style":{"__isSmartRef__":true,"id":7585},"chunkOwner":{"__isSmartRef__":true,"id":7578},"storedString":"showAllTyping","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7586":{"style":{"__isSmartRef__":true,"id":7587},"chunkOwner":{"__isSmartRef__":true,"id":7578},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7588":{"morph":{"__isSmartRef__":true,"id":7578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7590":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7591":{"layoutText":{"__isSmartRef__":true,"id":7592}},"7592":{"varMapping":{"__isSmartRef__":true,"id":7593},"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":7594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7593":{"this":{"__isSmartRef__":true,"id":7578}},"7594":{},"7595":{"_Position":{"__isSmartRef__":true,"id":7596},"renderContextTable":{"__isSmartRef__":true,"id":7597},"_Extent":{"__isSmartRef__":true,"id":7598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7601":{"morph":{"__isSmartRef__":true,"id":7552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7602":{"resizeWidth":true},"7603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7605":{"updateExpanderColor":{"__isSmartRef__":true,"id":7606},"onMouseDown":{"__isSmartRef__":true,"id":7609},"onMouseUp":{"__isSmartRef__":true,"id":7616},"isRoot":{"__isSmartRef__":true,"id":7623},"displayValue":{"__isSmartRef__":true,"id":7626},"update":{"__isSmartRef__":true,"id":7629}},"7606":{"varMapping":{"__isSmartRef__":true,"id":7607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7607":{"this":{"__isSmartRef__":true,"id":7552}},"7608":{},"7609":{"varMapping":{"__isSmartRef__":true,"id":7610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7610":{"this":{"__isSmartRef__":true,"id":7552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7611}},"7611":{"$super":{"__isSmartRef__":true,"id":7612}},"7612":{"varMapping":{"__isSmartRef__":true,"id":7613},"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":7614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7613":{"obj":{"__isSmartRef__":true,"id":7552},"name":"onMouseDown"},"7614":{},"7615":{},"7616":{"varMapping":{"__isSmartRef__":true,"id":7617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7617":{"this":{"__isSmartRef__":true,"id":7552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7618}},"7618":{"$super":{"__isSmartRef__":true,"id":7619}},"7619":{"varMapping":{"__isSmartRef__":true,"id":7620},"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":7621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7620":{"obj":{"__isSmartRef__":true,"id":7552},"name":"onMouseUp"},"7621":{},"7622":{},"7623":{"varMapping":{"__isSmartRef__":true,"id":7624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7624":{"this":{"__isSmartRef__":true,"id":7552}},"7625":{},"7626":{"varMapping":{"__isSmartRef__":true,"id":7627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7627":{"this":{"__isSmartRef__":true,"id":7552}},"7628":{},"7629":{"varMapping":{"__isSmartRef__":true,"id":7630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7630":{"this":{"__isSmartRef__":true,"id":7552}},"7631":{},"7632":{"_Position":{"__isSmartRef__":true,"id":7633},"renderContextTable":{"__isSmartRef__":true,"id":7634},"_Extent":{"__isSmartRef__":true,"id":7635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7638":{"morph":{"__isSmartRef__":true,"id":7551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7639":{"layouter":{"__isSmartRef__":true,"id":7640},"resizeWidth":true},"7640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7642":{"x":0,"y":1080,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7644}},"7644":{"varMapping":{"__isSmartRef__":true,"id":7645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7645":{"this":{"__isSmartRef__":true,"id":7551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7646}},"7646":{"$super":{"__isSmartRef__":true,"id":7647}},"7647":{"varMapping":{"__isSmartRef__":true,"id":7648},"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":7649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7648":{"obj":{"__isSmartRef__":true,"id":7551},"name":"getLayoutableSubmorphs"},"7649":{},"7650":{},"7651":{"submorphs":[{"__isSmartRef__":true,"id":7652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7732},"id":269,"renderContextTable":{"__isSmartRef__":true,"id":7737},"eventHandler":{"__isSmartRef__":true,"id":7738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7652":{"submorphs":[{"__isSmartRef__":true,"id":7653},{"__isSmartRef__":true,"id":7678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7695},"id":266,"renderContextTable":{"__isSmartRef__":true,"id":7700},"eventHandler":{"__isSmartRef__":true,"id":7701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7702},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showBitmap","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7653},"text":{"__isSmartRef__":true,"id":7678},"owner":{"__isSmartRef__":true,"id":7651},"_Position":{"__isSmartRef__":true,"id":7703},"priorExtent":{"__isSmartRef__":true,"id":7704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7654},"id":267,"renderContextTable":{"__isSmartRef__":true,"id":7660},"eventHandler":{"__isSmartRef__":true,"id":7661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7654":{"_Position":{"__isSmartRef__":true,"id":7655},"renderContextTable":{"__isSmartRef__":true,"id":7656},"_Extent":{"__isSmartRef__":true,"id":7657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7661":{"morph":{"__isSmartRef__":true,"id":7653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7663":{"onMouseUp":{"__isSmartRef__":true,"id":7664},"toggle":{"__isSmartRef__":true,"id":7671}},"7664":{"varMapping":{"__isSmartRef__":true,"id":7665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7665":{"this":{"__isSmartRef__":true,"id":7653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7666}},"7666":{"$super":{"__isSmartRef__":true,"id":7667}},"7667":{"varMapping":{"__isSmartRef__":true,"id":7668},"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":7669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7668":{"obj":{"__isSmartRef__":true,"id":7653},"name":"onMouseUp"},"7669":{},"7670":{},"7671":{"varMapping":{"__isSmartRef__":true,"id":7672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7672":{"this":{"__isSmartRef__":true,"id":7653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7673}},"7673":{"$super":{"__isSmartRef__":true,"id":7674}},"7674":{"varMapping":{"__isSmartRef__":true,"id":7675},"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":7676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7675":{"obj":{"__isSmartRef__":true,"id":7653},"name":"toggle"},"7676":{},"7677":{},"7678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7679},"id":268,"renderContextTable":{"__isSmartRef__":true,"id":7683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7684},{"__isSmartRef__":true,"id":7686}],"eventHandler":{"__isSmartRef__":true,"id":7688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7689},"priorExtent":{"__isSmartRef__":true,"id":7690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7679":{"_Position":{"__isSmartRef__":true,"id":7680},"renderContextTable":{"__isSmartRef__":true,"id":7681},"_Extent":{"__isSmartRef__":true,"id":7682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7682":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7684":{"style":{"__isSmartRef__":true,"id":7685},"chunkOwner":{"__isSmartRef__":true,"id":7678},"storedString":"showBitmap","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7686":{"style":{"__isSmartRef__":true,"id":7687},"chunkOwner":{"__isSmartRef__":true,"id":7678},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7688":{"morph":{"__isSmartRef__":true,"id":7678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7690":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7691":{"layoutText":{"__isSmartRef__":true,"id":7692}},"7692":{"varMapping":{"__isSmartRef__":true,"id":7693},"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":7694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7693":{"this":{"__isSmartRef__":true,"id":7678}},"7694":{},"7695":{"_Position":{"__isSmartRef__":true,"id":7696},"renderContextTable":{"__isSmartRef__":true,"id":7697},"_Extent":{"__isSmartRef__":true,"id":7698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7701":{"morph":{"__isSmartRef__":true,"id":7652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7702":{"resizeWidth":true},"7703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7705":{"updateExpanderColor":{"__isSmartRef__":true,"id":7706},"onMouseDown":{"__isSmartRef__":true,"id":7709},"onMouseUp":{"__isSmartRef__":true,"id":7716},"isRoot":{"__isSmartRef__":true,"id":7723},"displayValue":{"__isSmartRef__":true,"id":7726},"update":{"__isSmartRef__":true,"id":7729}},"7706":{"varMapping":{"__isSmartRef__":true,"id":7707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7707":{"this":{"__isSmartRef__":true,"id":7652}},"7708":{},"7709":{"varMapping":{"__isSmartRef__":true,"id":7710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7710":{"this":{"__isSmartRef__":true,"id":7652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7711}},"7711":{"$super":{"__isSmartRef__":true,"id":7712}},"7712":{"varMapping":{"__isSmartRef__":true,"id":7713},"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":7714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7713":{"obj":{"__isSmartRef__":true,"id":7652},"name":"onMouseDown"},"7714":{},"7715":{},"7716":{"varMapping":{"__isSmartRef__":true,"id":7717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7717":{"this":{"__isSmartRef__":true,"id":7652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7718}},"7718":{"$super":{"__isSmartRef__":true,"id":7719}},"7719":{"varMapping":{"__isSmartRef__":true,"id":7720},"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":7721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7720":{"obj":{"__isSmartRef__":true,"id":7652},"name":"onMouseUp"},"7721":{},"7722":{},"7723":{"varMapping":{"__isSmartRef__":true,"id":7724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7724":{"this":{"__isSmartRef__":true,"id":7652}},"7725":{},"7726":{"varMapping":{"__isSmartRef__":true,"id":7727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7727":{"this":{"__isSmartRef__":true,"id":7652}},"7728":{},"7729":{"varMapping":{"__isSmartRef__":true,"id":7730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7730":{"this":{"__isSmartRef__":true,"id":7652}},"7731":{},"7732":{"_Position":{"__isSmartRef__":true,"id":7733},"renderContextTable":{"__isSmartRef__":true,"id":7734},"_Extent":{"__isSmartRef__":true,"id":7735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7738":{"morph":{"__isSmartRef__":true,"id":7651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7739":{"layouter":{"__isSmartRef__":true,"id":7740},"resizeWidth":true},"7740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7742":{"x":0,"y":1100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7744}},"7744":{"varMapping":{"__isSmartRef__":true,"id":7745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7745":{"this":{"__isSmartRef__":true,"id":7651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7746}},"7746":{"$super":{"__isSmartRef__":true,"id":7747}},"7747":{"varMapping":{"__isSmartRef__":true,"id":7748},"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":7749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7748":{"obj":{"__isSmartRef__":true,"id":7651},"name":"getLayoutableSubmorphs"},"7749":{},"7750":{},"7751":{"submorphs":[{"__isSmartRef__":true,"id":7752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7832},"id":273,"renderContextTable":{"__isSmartRef__":true,"id":7837},"eventHandler":{"__isSmartRef__":true,"id":7838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7752":{"submorphs":[{"__isSmartRef__":true,"id":7753},{"__isSmartRef__":true,"id":7778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7795},"id":270,"renderContextTable":{"__isSmartRef__":true,"id":7800},"eventHandler":{"__isSmartRef__":true,"id":7801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7802},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showClock","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7753},"text":{"__isSmartRef__":true,"id":7778},"owner":{"__isSmartRef__":true,"id":7751},"_Position":{"__isSmartRef__":true,"id":7803},"priorExtent":{"__isSmartRef__":true,"id":7804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7754},"id":271,"renderContextTable":{"__isSmartRef__":true,"id":7760},"eventHandler":{"__isSmartRef__":true,"id":7761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7754":{"_Position":{"__isSmartRef__":true,"id":7755},"renderContextTable":{"__isSmartRef__":true,"id":7756},"_Extent":{"__isSmartRef__":true,"id":7757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7761":{"morph":{"__isSmartRef__":true,"id":7753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7763":{"onMouseUp":{"__isSmartRef__":true,"id":7764},"toggle":{"__isSmartRef__":true,"id":7771}},"7764":{"varMapping":{"__isSmartRef__":true,"id":7765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7765":{"this":{"__isSmartRef__":true,"id":7753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7766}},"7766":{"$super":{"__isSmartRef__":true,"id":7767}},"7767":{"varMapping":{"__isSmartRef__":true,"id":7768},"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":7769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7768":{"obj":{"__isSmartRef__":true,"id":7753},"name":"onMouseUp"},"7769":{},"7770":{},"7771":{"varMapping":{"__isSmartRef__":true,"id":7772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7772":{"this":{"__isSmartRef__":true,"id":7753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7773}},"7773":{"$super":{"__isSmartRef__":true,"id":7774}},"7774":{"varMapping":{"__isSmartRef__":true,"id":7775},"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":7776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7775":{"obj":{"__isSmartRef__":true,"id":7753},"name":"toggle"},"7776":{},"7777":{},"7778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7779},"id":272,"renderContextTable":{"__isSmartRef__":true,"id":7783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7784},{"__isSmartRef__":true,"id":7786}],"eventHandler":{"__isSmartRef__":true,"id":7788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7789},"priorExtent":{"__isSmartRef__":true,"id":7790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7779":{"_Position":{"__isSmartRef__":true,"id":7780},"renderContextTable":{"__isSmartRef__":true,"id":7781},"_Extent":{"__isSmartRef__":true,"id":7782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7782":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7784":{"style":{"__isSmartRef__":true,"id":7785},"chunkOwner":{"__isSmartRef__":true,"id":7778},"storedString":"showClock","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7786":{"style":{"__isSmartRef__":true,"id":7787},"chunkOwner":{"__isSmartRef__":true,"id":7778},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7788":{"morph":{"__isSmartRef__":true,"id":7778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7790":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7791":{"layoutText":{"__isSmartRef__":true,"id":7792}},"7792":{"varMapping":{"__isSmartRef__":true,"id":7793},"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":7794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7793":{"this":{"__isSmartRef__":true,"id":7778}},"7794":{},"7795":{"_Position":{"__isSmartRef__":true,"id":7796},"renderContextTable":{"__isSmartRef__":true,"id":7797},"_Extent":{"__isSmartRef__":true,"id":7798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7801":{"morph":{"__isSmartRef__":true,"id":7752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7802":{"resizeWidth":true},"7803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7805":{"updateExpanderColor":{"__isSmartRef__":true,"id":7806},"onMouseDown":{"__isSmartRef__":true,"id":7809},"onMouseUp":{"__isSmartRef__":true,"id":7816},"isRoot":{"__isSmartRef__":true,"id":7823},"displayValue":{"__isSmartRef__":true,"id":7826},"update":{"__isSmartRef__":true,"id":7829}},"7806":{"varMapping":{"__isSmartRef__":true,"id":7807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7807":{"this":{"__isSmartRef__":true,"id":7752}},"7808":{},"7809":{"varMapping":{"__isSmartRef__":true,"id":7810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7810":{"this":{"__isSmartRef__":true,"id":7752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7811}},"7811":{"$super":{"__isSmartRef__":true,"id":7812}},"7812":{"varMapping":{"__isSmartRef__":true,"id":7813},"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":7814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7813":{"obj":{"__isSmartRef__":true,"id":7752},"name":"onMouseDown"},"7814":{},"7815":{},"7816":{"varMapping":{"__isSmartRef__":true,"id":7817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7817":{"this":{"__isSmartRef__":true,"id":7752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7818}},"7818":{"$super":{"__isSmartRef__":true,"id":7819}},"7819":{"varMapping":{"__isSmartRef__":true,"id":7820},"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":7821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7820":{"obj":{"__isSmartRef__":true,"id":7752},"name":"onMouseUp"},"7821":{},"7822":{},"7823":{"varMapping":{"__isSmartRef__":true,"id":7824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7824":{"this":{"__isSmartRef__":true,"id":7752}},"7825":{},"7826":{"varMapping":{"__isSmartRef__":true,"id":7827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7827":{"this":{"__isSmartRef__":true,"id":7752}},"7828":{},"7829":{"varMapping":{"__isSmartRef__":true,"id":7830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7830":{"this":{"__isSmartRef__":true,"id":7752}},"7831":{},"7832":{"_Position":{"__isSmartRef__":true,"id":7833},"renderContextTable":{"__isSmartRef__":true,"id":7834},"_Extent":{"__isSmartRef__":true,"id":7835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7838":{"morph":{"__isSmartRef__":true,"id":7751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7839":{"layouter":{"__isSmartRef__":true,"id":7840},"resizeWidth":true},"7840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7842":{"x":0,"y":1120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7844}},"7844":{"varMapping":{"__isSmartRef__":true,"id":7845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7845":{"this":{"__isSmartRef__":true,"id":7751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7846}},"7846":{"$super":{"__isSmartRef__":true,"id":7847}},"7847":{"varMapping":{"__isSmartRef__":true,"id":7848},"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":7849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7848":{"obj":{"__isSmartRef__":true,"id":7751},"name":"getLayoutableSubmorphs"},"7849":{},"7850":{},"7851":{"submorphs":[{"__isSmartRef__":true,"id":7852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7932},"id":277,"renderContextTable":{"__isSmartRef__":true,"id":7937},"eventHandler":{"__isSmartRef__":true,"id":7938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":7942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7852":{"submorphs":[{"__isSmartRef__":true,"id":7853},{"__isSmartRef__":true,"id":7878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7895},"id":274,"renderContextTable":{"__isSmartRef__":true,"id":7900},"eventHandler":{"__isSmartRef__":true,"id":7901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7902},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showCurveExample","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7853},"text":{"__isSmartRef__":true,"id":7878},"owner":{"__isSmartRef__":true,"id":7851},"_Position":{"__isSmartRef__":true,"id":7903},"priorExtent":{"__isSmartRef__":true,"id":7904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7854},"id":275,"renderContextTable":{"__isSmartRef__":true,"id":7860},"eventHandler":{"__isSmartRef__":true,"id":7861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7854":{"_Position":{"__isSmartRef__":true,"id":7855},"renderContextTable":{"__isSmartRef__":true,"id":7856},"_Extent":{"__isSmartRef__":true,"id":7857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7861":{"morph":{"__isSmartRef__":true,"id":7853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7863":{"onMouseUp":{"__isSmartRef__":true,"id":7864},"toggle":{"__isSmartRef__":true,"id":7871}},"7864":{"varMapping":{"__isSmartRef__":true,"id":7865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7865":{"this":{"__isSmartRef__":true,"id":7853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7866}},"7866":{"$super":{"__isSmartRef__":true,"id":7867}},"7867":{"varMapping":{"__isSmartRef__":true,"id":7868},"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":7869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7868":{"obj":{"__isSmartRef__":true,"id":7853},"name":"onMouseUp"},"7869":{},"7870":{},"7871":{"varMapping":{"__isSmartRef__":true,"id":7872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7872":{"this":{"__isSmartRef__":true,"id":7853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7873}},"7873":{"$super":{"__isSmartRef__":true,"id":7874}},"7874":{"varMapping":{"__isSmartRef__":true,"id":7875},"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":7876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7875":{"obj":{"__isSmartRef__":true,"id":7853},"name":"toggle"},"7876":{},"7877":{},"7878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7879},"id":276,"renderContextTable":{"__isSmartRef__":true,"id":7883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7884},{"__isSmartRef__":true,"id":7886}],"eventHandler":{"__isSmartRef__":true,"id":7888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7889},"priorExtent":{"__isSmartRef__":true,"id":7890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7879":{"_Position":{"__isSmartRef__":true,"id":7880},"renderContextTable":{"__isSmartRef__":true,"id":7881},"_Extent":{"__isSmartRef__":true,"id":7882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7882":{"x":180.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7884":{"style":{"__isSmartRef__":true,"id":7885},"chunkOwner":{"__isSmartRef__":true,"id":7878},"storedString":"showCurveExample","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7886":{"style":{"__isSmartRef__":true,"id":7887},"chunkOwner":{"__isSmartRef__":true,"id":7878},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7888":{"morph":{"__isSmartRef__":true,"id":7878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7890":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7891":{"layoutText":{"__isSmartRef__":true,"id":7892}},"7892":{"varMapping":{"__isSmartRef__":true,"id":7893},"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":7894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7893":{"this":{"__isSmartRef__":true,"id":7878}},"7894":{},"7895":{"_Position":{"__isSmartRef__":true,"id":7896},"renderContextTable":{"__isSmartRef__":true,"id":7897},"_Extent":{"__isSmartRef__":true,"id":7898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7901":{"morph":{"__isSmartRef__":true,"id":7852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7902":{"resizeWidth":true},"7903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7905":{"updateExpanderColor":{"__isSmartRef__":true,"id":7906},"onMouseDown":{"__isSmartRef__":true,"id":7909},"onMouseUp":{"__isSmartRef__":true,"id":7916},"isRoot":{"__isSmartRef__":true,"id":7923},"displayValue":{"__isSmartRef__":true,"id":7926},"update":{"__isSmartRef__":true,"id":7929}},"7906":{"varMapping":{"__isSmartRef__":true,"id":7907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7907":{"this":{"__isSmartRef__":true,"id":7852}},"7908":{},"7909":{"varMapping":{"__isSmartRef__":true,"id":7910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7910":{"this":{"__isSmartRef__":true,"id":7852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7911}},"7911":{"$super":{"__isSmartRef__":true,"id":7912}},"7912":{"varMapping":{"__isSmartRef__":true,"id":7913},"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":7914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7913":{"obj":{"__isSmartRef__":true,"id":7852},"name":"onMouseDown"},"7914":{},"7915":{},"7916":{"varMapping":{"__isSmartRef__":true,"id":7917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7917":{"this":{"__isSmartRef__":true,"id":7852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7918}},"7918":{"$super":{"__isSmartRef__":true,"id":7919}},"7919":{"varMapping":{"__isSmartRef__":true,"id":7920},"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":7921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7920":{"obj":{"__isSmartRef__":true,"id":7852},"name":"onMouseUp"},"7921":{},"7922":{},"7923":{"varMapping":{"__isSmartRef__":true,"id":7924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7924":{"this":{"__isSmartRef__":true,"id":7852}},"7925":{},"7926":{"varMapping":{"__isSmartRef__":true,"id":7927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":7928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7927":{"this":{"__isSmartRef__":true,"id":7852}},"7928":{},"7929":{"varMapping":{"__isSmartRef__":true,"id":7930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7930":{"this":{"__isSmartRef__":true,"id":7852}},"7931":{},"7932":{"_Position":{"__isSmartRef__":true,"id":7933},"renderContextTable":{"__isSmartRef__":true,"id":7934},"_Extent":{"__isSmartRef__":true,"id":7935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7938":{"morph":{"__isSmartRef__":true,"id":7851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7939":{"layouter":{"__isSmartRef__":true,"id":7940},"resizeWidth":true},"7940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7942":{"x":0,"y":1140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7944}},"7944":{"varMapping":{"__isSmartRef__":true,"id":7945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7945":{"this":{"__isSmartRef__":true,"id":7851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7946}},"7946":{"$super":{"__isSmartRef__":true,"id":7947}},"7947":{"varMapping":{"__isSmartRef__":true,"id":7948},"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":7949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7948":{"obj":{"__isSmartRef__":true,"id":7851},"name":"getLayoutableSubmorphs"},"7949":{},"7950":{},"7951":{"submorphs":[{"__isSmartRef__":true,"id":7952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8032},"id":281,"renderContextTable":{"__isSmartRef__":true,"id":8037},"eventHandler":{"__isSmartRef__":true,"id":8038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7952":{"submorphs":[{"__isSmartRef__":true,"id":7953},{"__isSmartRef__":true,"id":7978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7995},"id":278,"renderContextTable":{"__isSmartRef__":true,"id":8000},"eventHandler":{"__isSmartRef__":true,"id":8001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8002},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showDeveloperWorld","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":7953},"text":{"__isSmartRef__":true,"id":7978},"owner":{"__isSmartRef__":true,"id":7951},"_Position":{"__isSmartRef__":true,"id":8003},"priorExtent":{"__isSmartRef__":true,"id":8004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7954},"id":279,"renderContextTable":{"__isSmartRef__":true,"id":7960},"eventHandler":{"__isSmartRef__":true,"id":7961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7954":{"_Position":{"__isSmartRef__":true,"id":7955},"renderContextTable":{"__isSmartRef__":true,"id":7956},"_Extent":{"__isSmartRef__":true,"id":7957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":7959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7961":{"morph":{"__isSmartRef__":true,"id":7953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7963":{"onMouseUp":{"__isSmartRef__":true,"id":7964},"toggle":{"__isSmartRef__":true,"id":7971}},"7964":{"varMapping":{"__isSmartRef__":true,"id":7965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":7970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7965":{"this":{"__isSmartRef__":true,"id":7953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7966}},"7966":{"$super":{"__isSmartRef__":true,"id":7967}},"7967":{"varMapping":{"__isSmartRef__":true,"id":7968},"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":7969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7968":{"obj":{"__isSmartRef__":true,"id":7953},"name":"onMouseUp"},"7969":{},"7970":{},"7971":{"varMapping":{"__isSmartRef__":true,"id":7972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":7977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7972":{"this":{"__isSmartRef__":true,"id":7953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7973}},"7973":{"$super":{"__isSmartRef__":true,"id":7974}},"7974":{"varMapping":{"__isSmartRef__":true,"id":7975},"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":7976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7975":{"obj":{"__isSmartRef__":true,"id":7953},"name":"toggle"},"7976":{},"7977":{},"7978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7979},"id":280,"renderContextTable":{"__isSmartRef__":true,"id":7983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7984},{"__isSmartRef__":true,"id":7986}],"eventHandler":{"__isSmartRef__":true,"id":7988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7989},"priorExtent":{"__isSmartRef__":true,"id":7990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7979":{"_Position":{"__isSmartRef__":true,"id":7980},"renderContextTable":{"__isSmartRef__":true,"id":7981},"_Extent":{"__isSmartRef__":true,"id":7982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7982":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7984":{"style":{"__isSmartRef__":true,"id":7985},"chunkOwner":{"__isSmartRef__":true,"id":7978},"storedString":"showDeveloperWorld","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7986":{"style":{"__isSmartRef__":true,"id":7987},"chunkOwner":{"__isSmartRef__":true,"id":7978},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7988":{"morph":{"__isSmartRef__":true,"id":7978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7990":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7991":{"layoutText":{"__isSmartRef__":true,"id":7992}},"7992":{"varMapping":{"__isSmartRef__":true,"id":7993},"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":7994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7993":{"this":{"__isSmartRef__":true,"id":7978}},"7994":{},"7995":{"_Position":{"__isSmartRef__":true,"id":7996},"renderContextTable":{"__isSmartRef__":true,"id":7997},"_Extent":{"__isSmartRef__":true,"id":7998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8001":{"morph":{"__isSmartRef__":true,"id":7952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8002":{"resizeWidth":true},"8003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8005":{"updateExpanderColor":{"__isSmartRef__":true,"id":8006},"onMouseDown":{"__isSmartRef__":true,"id":8009},"onMouseUp":{"__isSmartRef__":true,"id":8016},"isRoot":{"__isSmartRef__":true,"id":8023},"displayValue":{"__isSmartRef__":true,"id":8026},"update":{"__isSmartRef__":true,"id":8029}},"8006":{"varMapping":{"__isSmartRef__":true,"id":8007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8007":{"this":{"__isSmartRef__":true,"id":7952}},"8008":{},"8009":{"varMapping":{"__isSmartRef__":true,"id":8010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8010":{"this":{"__isSmartRef__":true,"id":7952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8011}},"8011":{"$super":{"__isSmartRef__":true,"id":8012}},"8012":{"varMapping":{"__isSmartRef__":true,"id":8013},"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":8014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8013":{"obj":{"__isSmartRef__":true,"id":7952},"name":"onMouseDown"},"8014":{},"8015":{},"8016":{"varMapping":{"__isSmartRef__":true,"id":8017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8017":{"this":{"__isSmartRef__":true,"id":7952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8018}},"8018":{"$super":{"__isSmartRef__":true,"id":8019}},"8019":{"varMapping":{"__isSmartRef__":true,"id":8020},"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":8021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8020":{"obj":{"__isSmartRef__":true,"id":7952},"name":"onMouseUp"},"8021":{},"8022":{},"8023":{"varMapping":{"__isSmartRef__":true,"id":8024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8024":{"this":{"__isSmartRef__":true,"id":7952}},"8025":{},"8026":{"varMapping":{"__isSmartRef__":true,"id":8027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8027":{"this":{"__isSmartRef__":true,"id":7952}},"8028":{},"8029":{"varMapping":{"__isSmartRef__":true,"id":8030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8030":{"this":{"__isSmartRef__":true,"id":7952}},"8031":{},"8032":{"_Position":{"__isSmartRef__":true,"id":8033},"renderContextTable":{"__isSmartRef__":true,"id":8034},"_Extent":{"__isSmartRef__":true,"id":8035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8038":{"morph":{"__isSmartRef__":true,"id":7951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8039":{"layouter":{"__isSmartRef__":true,"id":8040},"resizeWidth":true},"8040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8042":{"x":0,"y":1160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8044}},"8044":{"varMapping":{"__isSmartRef__":true,"id":8045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8045":{"this":{"__isSmartRef__":true,"id":7951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8046}},"8046":{"$super":{"__isSmartRef__":true,"id":8047}},"8047":{"varMapping":{"__isSmartRef__":true,"id":8048},"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":8049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8048":{"obj":{"__isSmartRef__":true,"id":7951},"name":"getLayoutableSubmorphs"},"8049":{},"8050":{},"8051":{"submorphs":[{"__isSmartRef__":true,"id":8052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8132},"id":285,"renderContextTable":{"__isSmartRef__":true,"id":8137},"eventHandler":{"__isSmartRef__":true,"id":8138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8052":{"submorphs":[{"__isSmartRef__":true,"id":8053},{"__isSmartRef__":true,"id":8078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8095},"id":282,"renderContextTable":{"__isSmartRef__":true,"id":8100},"eventHandler":{"__isSmartRef__":true,"id":8101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8102},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showFabrikComponentBox","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8053},"text":{"__isSmartRef__":true,"id":8078},"owner":{"__isSmartRef__":true,"id":8051},"_Position":{"__isSmartRef__":true,"id":8103},"priorExtent":{"__isSmartRef__":true,"id":8104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8054},"id":283,"renderContextTable":{"__isSmartRef__":true,"id":8060},"eventHandler":{"__isSmartRef__":true,"id":8061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8054":{"_Position":{"__isSmartRef__":true,"id":8055},"renderContextTable":{"__isSmartRef__":true,"id":8056},"_Extent":{"__isSmartRef__":true,"id":8057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8061":{"morph":{"__isSmartRef__":true,"id":8053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8063":{"onMouseUp":{"__isSmartRef__":true,"id":8064},"toggle":{"__isSmartRef__":true,"id":8071}},"8064":{"varMapping":{"__isSmartRef__":true,"id":8065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8065":{"this":{"__isSmartRef__":true,"id":8053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8066}},"8066":{"$super":{"__isSmartRef__":true,"id":8067}},"8067":{"varMapping":{"__isSmartRef__":true,"id":8068},"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":8069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8068":{"obj":{"__isSmartRef__":true,"id":8053},"name":"onMouseUp"},"8069":{},"8070":{},"8071":{"varMapping":{"__isSmartRef__":true,"id":8072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8072":{"this":{"__isSmartRef__":true,"id":8053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8073}},"8073":{"$super":{"__isSmartRef__":true,"id":8074}},"8074":{"varMapping":{"__isSmartRef__":true,"id":8075},"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":8076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8075":{"obj":{"__isSmartRef__":true,"id":8053},"name":"toggle"},"8076":{},"8077":{},"8078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8079},"id":284,"renderContextTable":{"__isSmartRef__":true,"id":8083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8084},{"__isSmartRef__":true,"id":8086}],"eventHandler":{"__isSmartRef__":true,"id":8088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8089},"priorExtent":{"__isSmartRef__":true,"id":8090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8079":{"_Position":{"__isSmartRef__":true,"id":8080},"renderContextTable":{"__isSmartRef__":true,"id":8081},"_Extent":{"__isSmartRef__":true,"id":8082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8082":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8084":{"style":{"__isSmartRef__":true,"id":8085},"chunkOwner":{"__isSmartRef__":true,"id":8078},"storedString":"showFabrikComponentBox","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8086":{"style":{"__isSmartRef__":true,"id":8087},"chunkOwner":{"__isSmartRef__":true,"id":8078},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8088":{"morph":{"__isSmartRef__":true,"id":8078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8090":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8091":{"layoutText":{"__isSmartRef__":true,"id":8092}},"8092":{"varMapping":{"__isSmartRef__":true,"id":8093},"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":8094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8093":{"this":{"__isSmartRef__":true,"id":8078}},"8094":{},"8095":{"_Position":{"__isSmartRef__":true,"id":8096},"renderContextTable":{"__isSmartRef__":true,"id":8097},"_Extent":{"__isSmartRef__":true,"id":8098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8101":{"morph":{"__isSmartRef__":true,"id":8052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8102":{"resizeWidth":true},"8103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8105":{"updateExpanderColor":{"__isSmartRef__":true,"id":8106},"onMouseDown":{"__isSmartRef__":true,"id":8109},"onMouseUp":{"__isSmartRef__":true,"id":8116},"isRoot":{"__isSmartRef__":true,"id":8123},"displayValue":{"__isSmartRef__":true,"id":8126},"update":{"__isSmartRef__":true,"id":8129}},"8106":{"varMapping":{"__isSmartRef__":true,"id":8107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8107":{"this":{"__isSmartRef__":true,"id":8052}},"8108":{},"8109":{"varMapping":{"__isSmartRef__":true,"id":8110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8110":{"this":{"__isSmartRef__":true,"id":8052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8111}},"8111":{"$super":{"__isSmartRef__":true,"id":8112}},"8112":{"varMapping":{"__isSmartRef__":true,"id":8113},"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":8114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8113":{"obj":{"__isSmartRef__":true,"id":8052},"name":"onMouseDown"},"8114":{},"8115":{},"8116":{"varMapping":{"__isSmartRef__":true,"id":8117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8117":{"this":{"__isSmartRef__":true,"id":8052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8118}},"8118":{"$super":{"__isSmartRef__":true,"id":8119}},"8119":{"varMapping":{"__isSmartRef__":true,"id":8120},"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":8121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8120":{"obj":{"__isSmartRef__":true,"id":8052},"name":"onMouseUp"},"8121":{},"8122":{},"8123":{"varMapping":{"__isSmartRef__":true,"id":8124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8124":{"this":{"__isSmartRef__":true,"id":8052}},"8125":{},"8126":{"varMapping":{"__isSmartRef__":true,"id":8127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8127":{"this":{"__isSmartRef__":true,"id":8052}},"8128":{},"8129":{"varMapping":{"__isSmartRef__":true,"id":8130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8130":{"this":{"__isSmartRef__":true,"id":8052}},"8131":{},"8132":{"_Position":{"__isSmartRef__":true,"id":8133},"renderContextTable":{"__isSmartRef__":true,"id":8134},"_Extent":{"__isSmartRef__":true,"id":8135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8138":{"morph":{"__isSmartRef__":true,"id":8051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8139":{"layouter":{"__isSmartRef__":true,"id":8140},"resizeWidth":true},"8140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8142":{"x":0,"y":1180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8144}},"8144":{"varMapping":{"__isSmartRef__":true,"id":8145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8145":{"this":{"__isSmartRef__":true,"id":8051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8146}},"8146":{"$super":{"__isSmartRef__":true,"id":8147}},"8147":{"varMapping":{"__isSmartRef__":true,"id":8148},"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":8149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8148":{"obj":{"__isSmartRef__":true,"id":8051},"name":"getLayoutableSubmorphs"},"8149":{},"8150":{},"8151":{"submorphs":[{"__isSmartRef__":true,"id":8152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8232},"id":289,"renderContextTable":{"__isSmartRef__":true,"id":8237},"eventHandler":{"__isSmartRef__":true,"id":8238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8152":{"submorphs":[{"__isSmartRef__":true,"id":8153},{"__isSmartRef__":true,"id":8178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8195},"id":286,"renderContextTable":{"__isSmartRef__":true,"id":8200},"eventHandler":{"__isSmartRef__":true,"id":8201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8202},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showFabrikWeatherWidgetExample","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8153},"text":{"__isSmartRef__":true,"id":8178},"owner":{"__isSmartRef__":true,"id":8151},"_Position":{"__isSmartRef__":true,"id":8203},"priorExtent":{"__isSmartRef__":true,"id":8204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8154},"id":287,"renderContextTable":{"__isSmartRef__":true,"id":8160},"eventHandler":{"__isSmartRef__":true,"id":8161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8154":{"_Position":{"__isSmartRef__":true,"id":8155},"renderContextTable":{"__isSmartRef__":true,"id":8156},"_Extent":{"__isSmartRef__":true,"id":8157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8161":{"morph":{"__isSmartRef__":true,"id":8153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8163":{"onMouseUp":{"__isSmartRef__":true,"id":8164},"toggle":{"__isSmartRef__":true,"id":8171}},"8164":{"varMapping":{"__isSmartRef__":true,"id":8165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8165":{"this":{"__isSmartRef__":true,"id":8153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8166}},"8166":{"$super":{"__isSmartRef__":true,"id":8167}},"8167":{"varMapping":{"__isSmartRef__":true,"id":8168},"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":8169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8168":{"obj":{"__isSmartRef__":true,"id":8153},"name":"onMouseUp"},"8169":{},"8170":{},"8171":{"varMapping":{"__isSmartRef__":true,"id":8172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8172":{"this":{"__isSmartRef__":true,"id":8153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8173}},"8173":{"$super":{"__isSmartRef__":true,"id":8174}},"8174":{"varMapping":{"__isSmartRef__":true,"id":8175},"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":8176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8175":{"obj":{"__isSmartRef__":true,"id":8153},"name":"toggle"},"8176":{},"8177":{},"8178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8179},"id":288,"renderContextTable":{"__isSmartRef__":true,"id":8183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8184},{"__isSmartRef__":true,"id":8186}],"eventHandler":{"__isSmartRef__":true,"id":8188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8189},"priorExtent":{"__isSmartRef__":true,"id":8190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8179":{"_Position":{"__isSmartRef__":true,"id":8180},"renderContextTable":{"__isSmartRef__":true,"id":8181},"_Extent":{"__isSmartRef__":true,"id":8182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":285.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8184":{"style":{"__isSmartRef__":true,"id":8185},"chunkOwner":{"__isSmartRef__":true,"id":8178},"storedString":"showFabrikWeatherWidgetExample","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8186":{"style":{"__isSmartRef__":true,"id":8187},"chunkOwner":{"__isSmartRef__":true,"id":8178},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8188":{"morph":{"__isSmartRef__":true,"id":8178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8190":{"x":277.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8191":{"layoutText":{"__isSmartRef__":true,"id":8192}},"8192":{"varMapping":{"__isSmartRef__":true,"id":8193},"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":8194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8193":{"this":{"__isSmartRef__":true,"id":8178}},"8194":{},"8195":{"_Position":{"__isSmartRef__":true,"id":8196},"renderContextTable":{"__isSmartRef__":true,"id":8197},"_Extent":{"__isSmartRef__":true,"id":8198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8201":{"morph":{"__isSmartRef__":true,"id":8152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8202":{"resizeWidth":true},"8203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8205":{"updateExpanderColor":{"__isSmartRef__":true,"id":8206},"onMouseDown":{"__isSmartRef__":true,"id":8209},"onMouseUp":{"__isSmartRef__":true,"id":8216},"isRoot":{"__isSmartRef__":true,"id":8223},"displayValue":{"__isSmartRef__":true,"id":8226},"update":{"__isSmartRef__":true,"id":8229}},"8206":{"varMapping":{"__isSmartRef__":true,"id":8207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8207":{"this":{"__isSmartRef__":true,"id":8152}},"8208":{},"8209":{"varMapping":{"__isSmartRef__":true,"id":8210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8210":{"this":{"__isSmartRef__":true,"id":8152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8211}},"8211":{"$super":{"__isSmartRef__":true,"id":8212}},"8212":{"varMapping":{"__isSmartRef__":true,"id":8213},"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":8214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8213":{"obj":{"__isSmartRef__":true,"id":8152},"name":"onMouseDown"},"8214":{},"8215":{},"8216":{"varMapping":{"__isSmartRef__":true,"id":8217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8217":{"this":{"__isSmartRef__":true,"id":8152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8218}},"8218":{"$super":{"__isSmartRef__":true,"id":8219}},"8219":{"varMapping":{"__isSmartRef__":true,"id":8220},"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":8221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8220":{"obj":{"__isSmartRef__":true,"id":8152},"name":"onMouseUp"},"8221":{},"8222":{},"8223":{"varMapping":{"__isSmartRef__":true,"id":8224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8224":{"this":{"__isSmartRef__":true,"id":8152}},"8225":{},"8226":{"varMapping":{"__isSmartRef__":true,"id":8227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8227":{"this":{"__isSmartRef__":true,"id":8152}},"8228":{},"8229":{"varMapping":{"__isSmartRef__":true,"id":8230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8230":{"this":{"__isSmartRef__":true,"id":8152}},"8231":{},"8232":{"_Position":{"__isSmartRef__":true,"id":8233},"renderContextTable":{"__isSmartRef__":true,"id":8234},"_Extent":{"__isSmartRef__":true,"id":8235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8238":{"morph":{"__isSmartRef__":true,"id":8151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8239":{"layouter":{"__isSmartRef__":true,"id":8240},"resizeWidth":true},"8240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8242":{"x":0,"y":1200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8244}},"8244":{"varMapping":{"__isSmartRef__":true,"id":8245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8245":{"this":{"__isSmartRef__":true,"id":8151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8246}},"8246":{"$super":{"__isSmartRef__":true,"id":8247}},"8247":{"varMapping":{"__isSmartRef__":true,"id":8248},"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":8249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8248":{"obj":{"__isSmartRef__":true,"id":8151},"name":"getLayoutableSubmorphs"},"8249":{},"8250":{},"8251":{"submorphs":[{"__isSmartRef__":true,"id":8252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8332},"id":293,"renderContextTable":{"__isSmartRef__":true,"id":8337},"eventHandler":{"__isSmartRef__":true,"id":8338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8252":{"submorphs":[{"__isSmartRef__":true,"id":8253},{"__isSmartRef__":true,"id":8278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8295},"id":290,"renderContextTable":{"__isSmartRef__":true,"id":8300},"eventHandler":{"__isSmartRef__":true,"id":8301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8302},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showFahrenheitCelsiusExample","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8253},"text":{"__isSmartRef__":true,"id":8278},"owner":{"__isSmartRef__":true,"id":8251},"_Position":{"__isSmartRef__":true,"id":8303},"priorExtent":{"__isSmartRef__":true,"id":8304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8254},"id":291,"renderContextTable":{"__isSmartRef__":true,"id":8260},"eventHandler":{"__isSmartRef__":true,"id":8261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8254":{"_Position":{"__isSmartRef__":true,"id":8255},"renderContextTable":{"__isSmartRef__":true,"id":8256},"_Extent":{"__isSmartRef__":true,"id":8257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8261":{"morph":{"__isSmartRef__":true,"id":8253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8263":{"onMouseUp":{"__isSmartRef__":true,"id":8264},"toggle":{"__isSmartRef__":true,"id":8271}},"8264":{"varMapping":{"__isSmartRef__":true,"id":8265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8265":{"this":{"__isSmartRef__":true,"id":8253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8266}},"8266":{"$super":{"__isSmartRef__":true,"id":8267}},"8267":{"varMapping":{"__isSmartRef__":true,"id":8268},"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":8269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8268":{"obj":{"__isSmartRef__":true,"id":8253},"name":"onMouseUp"},"8269":{},"8270":{},"8271":{"varMapping":{"__isSmartRef__":true,"id":8272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8272":{"this":{"__isSmartRef__":true,"id":8253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8273}},"8273":{"$super":{"__isSmartRef__":true,"id":8274}},"8274":{"varMapping":{"__isSmartRef__":true,"id":8275},"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":8276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8275":{"obj":{"__isSmartRef__":true,"id":8253},"name":"toggle"},"8276":{},"8277":{},"8278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8279},"id":292,"renderContextTable":{"__isSmartRef__":true,"id":8283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8284},{"__isSmartRef__":true,"id":8286}],"eventHandler":{"__isSmartRef__":true,"id":8288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8289},"priorExtent":{"__isSmartRef__":true,"id":8290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8279":{"_Position":{"__isSmartRef__":true,"id":8280},"renderContextTable":{"__isSmartRef__":true,"id":8281},"_Extent":{"__isSmartRef__":true,"id":8282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8282":{"x":270.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8284":{"style":{"__isSmartRef__":true,"id":8285},"chunkOwner":{"__isSmartRef__":true,"id":8278},"storedString":"showFahrenheitCelsiusExample","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8286":{"style":{"__isSmartRef__":true,"id":8287},"chunkOwner":{"__isSmartRef__":true,"id":8278},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8288":{"morph":{"__isSmartRef__":true,"id":8278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8290":{"x":262.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8291":{"layoutText":{"__isSmartRef__":true,"id":8292}},"8292":{"varMapping":{"__isSmartRef__":true,"id":8293},"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":8294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8293":{"this":{"__isSmartRef__":true,"id":8278}},"8294":{},"8295":{"_Position":{"__isSmartRef__":true,"id":8296},"renderContextTable":{"__isSmartRef__":true,"id":8297},"_Extent":{"__isSmartRef__":true,"id":8298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8301":{"morph":{"__isSmartRef__":true,"id":8252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8302":{"resizeWidth":true},"8303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8305":{"updateExpanderColor":{"__isSmartRef__":true,"id":8306},"onMouseDown":{"__isSmartRef__":true,"id":8309},"onMouseUp":{"__isSmartRef__":true,"id":8316},"isRoot":{"__isSmartRef__":true,"id":8323},"displayValue":{"__isSmartRef__":true,"id":8326},"update":{"__isSmartRef__":true,"id":8329}},"8306":{"varMapping":{"__isSmartRef__":true,"id":8307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8307":{"this":{"__isSmartRef__":true,"id":8252}},"8308":{},"8309":{"varMapping":{"__isSmartRef__":true,"id":8310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8310":{"this":{"__isSmartRef__":true,"id":8252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8311}},"8311":{"$super":{"__isSmartRef__":true,"id":8312}},"8312":{"varMapping":{"__isSmartRef__":true,"id":8313},"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":8314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8313":{"obj":{"__isSmartRef__":true,"id":8252},"name":"onMouseDown"},"8314":{},"8315":{},"8316":{"varMapping":{"__isSmartRef__":true,"id":8317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8317":{"this":{"__isSmartRef__":true,"id":8252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8318}},"8318":{"$super":{"__isSmartRef__":true,"id":8319}},"8319":{"varMapping":{"__isSmartRef__":true,"id":8320},"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":8321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8320":{"obj":{"__isSmartRef__":true,"id":8252},"name":"onMouseUp"},"8321":{},"8322":{},"8323":{"varMapping":{"__isSmartRef__":true,"id":8324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8324":{"this":{"__isSmartRef__":true,"id":8252}},"8325":{},"8326":{"varMapping":{"__isSmartRef__":true,"id":8327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8327":{"this":{"__isSmartRef__":true,"id":8252}},"8328":{},"8329":{"varMapping":{"__isSmartRef__":true,"id":8330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8330":{"this":{"__isSmartRef__":true,"id":8252}},"8331":{},"8332":{"_Position":{"__isSmartRef__":true,"id":8333},"renderContextTable":{"__isSmartRef__":true,"id":8334},"_Extent":{"__isSmartRef__":true,"id":8335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8338":{"morph":{"__isSmartRef__":true,"id":8251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8339":{"layouter":{"__isSmartRef__":true,"id":8340},"resizeWidth":true},"8340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8342":{"x":0,"y":1220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8344}},"8344":{"varMapping":{"__isSmartRef__":true,"id":8345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8345":{"this":{"__isSmartRef__":true,"id":8251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8346}},"8346":{"$super":{"__isSmartRef__":true,"id":8347}},"8347":{"varMapping":{"__isSmartRef__":true,"id":8348},"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":8349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8348":{"obj":{"__isSmartRef__":true,"id":8251},"name":"getLayoutableSubmorphs"},"8349":{},"8350":{},"8351":{"submorphs":[{"__isSmartRef__":true,"id":8352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8432},"id":297,"renderContextTable":{"__isSmartRef__":true,"id":8437},"eventHandler":{"__isSmartRef__":true,"id":8438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8352":{"submorphs":[{"__isSmartRef__":true,"id":8353},{"__isSmartRef__":true,"id":8378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8395},"id":294,"renderContextTable":{"__isSmartRef__":true,"id":8400},"eventHandler":{"__isSmartRef__":true,"id":8401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8402},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showGrabHalo","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8353},"text":{"__isSmartRef__":true,"id":8378},"owner":{"__isSmartRef__":true,"id":8351},"_Position":{"__isSmartRef__":true,"id":8403},"priorExtent":{"__isSmartRef__":true,"id":8404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8354},"id":295,"renderContextTable":{"__isSmartRef__":true,"id":8360},"eventHandler":{"__isSmartRef__":true,"id":8361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8354":{"_Position":{"__isSmartRef__":true,"id":8355},"renderContextTable":{"__isSmartRef__":true,"id":8356},"_Extent":{"__isSmartRef__":true,"id":8357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8361":{"morph":{"__isSmartRef__":true,"id":8353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8363":{"onMouseUp":{"__isSmartRef__":true,"id":8364},"toggle":{"__isSmartRef__":true,"id":8371}},"8364":{"varMapping":{"__isSmartRef__":true,"id":8365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8365":{"this":{"__isSmartRef__":true,"id":8353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8366}},"8366":{"$super":{"__isSmartRef__":true,"id":8367}},"8367":{"varMapping":{"__isSmartRef__":true,"id":8368},"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":8369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8368":{"obj":{"__isSmartRef__":true,"id":8353},"name":"onMouseUp"},"8369":{},"8370":{},"8371":{"varMapping":{"__isSmartRef__":true,"id":8372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8372":{"this":{"__isSmartRef__":true,"id":8353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8373}},"8373":{"$super":{"__isSmartRef__":true,"id":8374}},"8374":{"varMapping":{"__isSmartRef__":true,"id":8375},"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":8376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8375":{"obj":{"__isSmartRef__":true,"id":8353},"name":"toggle"},"8376":{},"8377":{},"8378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8379},"id":296,"renderContextTable":{"__isSmartRef__":true,"id":8383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8384},{"__isSmartRef__":true,"id":8386}],"eventHandler":{"__isSmartRef__":true,"id":8388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8389},"priorExtent":{"__isSmartRef__":true,"id":8390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8379":{"_Position":{"__isSmartRef__":true,"id":8380},"renderContextTable":{"__isSmartRef__":true,"id":8381},"_Extent":{"__isSmartRef__":true,"id":8382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8382":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8384":{"style":{"__isSmartRef__":true,"id":8385},"chunkOwner":{"__isSmartRef__":true,"id":8378},"storedString":"showGrabHalo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8386":{"style":{"__isSmartRef__":true,"id":8387},"chunkOwner":{"__isSmartRef__":true,"id":8378},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8388":{"morph":{"__isSmartRef__":true,"id":8378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8390":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8391":{"layoutText":{"__isSmartRef__":true,"id":8392}},"8392":{"varMapping":{"__isSmartRef__":true,"id":8393},"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":8394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8393":{"this":{"__isSmartRef__":true,"id":8378}},"8394":{},"8395":{"_Position":{"__isSmartRef__":true,"id":8396},"renderContextTable":{"__isSmartRef__":true,"id":8397},"_Extent":{"__isSmartRef__":true,"id":8398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8401":{"morph":{"__isSmartRef__":true,"id":8352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8402":{"resizeWidth":true},"8403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8405":{"updateExpanderColor":{"__isSmartRef__":true,"id":8406},"onMouseDown":{"__isSmartRef__":true,"id":8409},"onMouseUp":{"__isSmartRef__":true,"id":8416},"isRoot":{"__isSmartRef__":true,"id":8423},"displayValue":{"__isSmartRef__":true,"id":8426},"update":{"__isSmartRef__":true,"id":8429}},"8406":{"varMapping":{"__isSmartRef__":true,"id":8407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8407":{"this":{"__isSmartRef__":true,"id":8352}},"8408":{},"8409":{"varMapping":{"__isSmartRef__":true,"id":8410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8410":{"this":{"__isSmartRef__":true,"id":8352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8411}},"8411":{"$super":{"__isSmartRef__":true,"id":8412}},"8412":{"varMapping":{"__isSmartRef__":true,"id":8413},"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":8414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8413":{"obj":{"__isSmartRef__":true,"id":8352},"name":"onMouseDown"},"8414":{},"8415":{},"8416":{"varMapping":{"__isSmartRef__":true,"id":8417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8417":{"this":{"__isSmartRef__":true,"id":8352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8418}},"8418":{"$super":{"__isSmartRef__":true,"id":8419}},"8419":{"varMapping":{"__isSmartRef__":true,"id":8420},"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":8421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8420":{"obj":{"__isSmartRef__":true,"id":8352},"name":"onMouseUp"},"8421":{},"8422":{},"8423":{"varMapping":{"__isSmartRef__":true,"id":8424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8424":{"this":{"__isSmartRef__":true,"id":8352}},"8425":{},"8426":{"varMapping":{"__isSmartRef__":true,"id":8427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8427":{"this":{"__isSmartRef__":true,"id":8352}},"8428":{},"8429":{"varMapping":{"__isSmartRef__":true,"id":8430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8430":{"this":{"__isSmartRef__":true,"id":8352}},"8431":{},"8432":{"_Position":{"__isSmartRef__":true,"id":8433},"renderContextTable":{"__isSmartRef__":true,"id":8434},"_Extent":{"__isSmartRef__":true,"id":8435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8438":{"morph":{"__isSmartRef__":true,"id":8351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8439":{"layouter":{"__isSmartRef__":true,"id":8440},"resizeWidth":true},"8440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8442":{"x":0,"y":1240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8444}},"8444":{"varMapping":{"__isSmartRef__":true,"id":8445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8445":{"this":{"__isSmartRef__":true,"id":8351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8446}},"8446":{"$super":{"__isSmartRef__":true,"id":8447}},"8447":{"varMapping":{"__isSmartRef__":true,"id":8448},"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":8449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8448":{"obj":{"__isSmartRef__":true,"id":8351},"name":"getLayoutableSubmorphs"},"8449":{},"8450":{},"8451":{"submorphs":[{"__isSmartRef__":true,"id":8452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8532},"id":301,"renderContextTable":{"__isSmartRef__":true,"id":8537},"eventHandler":{"__isSmartRef__":true,"id":8538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8452":{"submorphs":[{"__isSmartRef__":true,"id":8453},{"__isSmartRef__":true,"id":8478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8495},"id":298,"renderContextTable":{"__isSmartRef__":true,"id":8500},"eventHandler":{"__isSmartRef__":true,"id":8501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8502},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showGridDemo","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8453},"text":{"__isSmartRef__":true,"id":8478},"owner":{"__isSmartRef__":true,"id":8451},"_Position":{"__isSmartRef__":true,"id":8503},"priorExtent":{"__isSmartRef__":true,"id":8504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8454},"id":299,"renderContextTable":{"__isSmartRef__":true,"id":8460},"eventHandler":{"__isSmartRef__":true,"id":8461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8454":{"_Position":{"__isSmartRef__":true,"id":8455},"renderContextTable":{"__isSmartRef__":true,"id":8456},"_Extent":{"__isSmartRef__":true,"id":8457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8461":{"morph":{"__isSmartRef__":true,"id":8453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8463":{"onMouseUp":{"__isSmartRef__":true,"id":8464},"toggle":{"__isSmartRef__":true,"id":8471}},"8464":{"varMapping":{"__isSmartRef__":true,"id":8465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8465":{"this":{"__isSmartRef__":true,"id":8453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8466}},"8466":{"$super":{"__isSmartRef__":true,"id":8467}},"8467":{"varMapping":{"__isSmartRef__":true,"id":8468},"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":8469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8468":{"obj":{"__isSmartRef__":true,"id":8453},"name":"onMouseUp"},"8469":{},"8470":{},"8471":{"varMapping":{"__isSmartRef__":true,"id":8472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8472":{"this":{"__isSmartRef__":true,"id":8453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8473}},"8473":{"$super":{"__isSmartRef__":true,"id":8474}},"8474":{"varMapping":{"__isSmartRef__":true,"id":8475},"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":8476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8475":{"obj":{"__isSmartRef__":true,"id":8453},"name":"toggle"},"8476":{},"8477":{},"8478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8479},"id":300,"renderContextTable":{"__isSmartRef__":true,"id":8483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8484},{"__isSmartRef__":true,"id":8486}],"eventHandler":{"__isSmartRef__":true,"id":8488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8489},"priorExtent":{"__isSmartRef__":true,"id":8490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8479":{"_Position":{"__isSmartRef__":true,"id":8480},"renderContextTable":{"__isSmartRef__":true,"id":8481},"_Extent":{"__isSmartRef__":true,"id":8482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8482":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8484":{"style":{"__isSmartRef__":true,"id":8485},"chunkOwner":{"__isSmartRef__":true,"id":8478},"storedString":"showGridDemo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8486":{"style":{"__isSmartRef__":true,"id":8487},"chunkOwner":{"__isSmartRef__":true,"id":8478},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8488":{"morph":{"__isSmartRef__":true,"id":8478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8490":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8491":{"layoutText":{"__isSmartRef__":true,"id":8492}},"8492":{"varMapping":{"__isSmartRef__":true,"id":8493},"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":8494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8493":{"this":{"__isSmartRef__":true,"id":8478}},"8494":{},"8495":{"_Position":{"__isSmartRef__":true,"id":8496},"renderContextTable":{"__isSmartRef__":true,"id":8497},"_Extent":{"__isSmartRef__":true,"id":8498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8501":{"morph":{"__isSmartRef__":true,"id":8452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8502":{"resizeWidth":true},"8503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8505":{"updateExpanderColor":{"__isSmartRef__":true,"id":8506},"onMouseDown":{"__isSmartRef__":true,"id":8509},"onMouseUp":{"__isSmartRef__":true,"id":8516},"isRoot":{"__isSmartRef__":true,"id":8523},"displayValue":{"__isSmartRef__":true,"id":8526},"update":{"__isSmartRef__":true,"id":8529}},"8506":{"varMapping":{"__isSmartRef__":true,"id":8507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8507":{"this":{"__isSmartRef__":true,"id":8452}},"8508":{},"8509":{"varMapping":{"__isSmartRef__":true,"id":8510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8510":{"this":{"__isSmartRef__":true,"id":8452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8511}},"8511":{"$super":{"__isSmartRef__":true,"id":8512}},"8512":{"varMapping":{"__isSmartRef__":true,"id":8513},"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":8514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8513":{"obj":{"__isSmartRef__":true,"id":8452},"name":"onMouseDown"},"8514":{},"8515":{},"8516":{"varMapping":{"__isSmartRef__":true,"id":8517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8517":{"this":{"__isSmartRef__":true,"id":8452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8518}},"8518":{"$super":{"__isSmartRef__":true,"id":8519}},"8519":{"varMapping":{"__isSmartRef__":true,"id":8520},"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":8521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8520":{"obj":{"__isSmartRef__":true,"id":8452},"name":"onMouseUp"},"8521":{},"8522":{},"8523":{"varMapping":{"__isSmartRef__":true,"id":8524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8524":{"this":{"__isSmartRef__":true,"id":8452}},"8525":{},"8526":{"varMapping":{"__isSmartRef__":true,"id":8527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8527":{"this":{"__isSmartRef__":true,"id":8452}},"8528":{},"8529":{"varMapping":{"__isSmartRef__":true,"id":8530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8530":{"this":{"__isSmartRef__":true,"id":8452}},"8531":{},"8532":{"_Position":{"__isSmartRef__":true,"id":8533},"renderContextTable":{"__isSmartRef__":true,"id":8534},"_Extent":{"__isSmartRef__":true,"id":8535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8538":{"morph":{"__isSmartRef__":true,"id":8451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8539":{"layouter":{"__isSmartRef__":true,"id":8540},"resizeWidth":true},"8540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8542":{"x":0,"y":1260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8544}},"8544":{"varMapping":{"__isSmartRef__":true,"id":8545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8545":{"this":{"__isSmartRef__":true,"id":8451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8546}},"8546":{"$super":{"__isSmartRef__":true,"id":8547}},"8547":{"varMapping":{"__isSmartRef__":true,"id":8548},"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":8549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8548":{"obj":{"__isSmartRef__":true,"id":8451},"name":"getLayoutableSubmorphs"},"8549":{},"8550":{},"8551":{"submorphs":[{"__isSmartRef__":true,"id":8552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8632},"id":305,"renderContextTable":{"__isSmartRef__":true,"id":8637},"eventHandler":{"__isSmartRef__":true,"id":8638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8552":{"submorphs":[{"__isSmartRef__":true,"id":8553},{"__isSmartRef__":true,"id":8578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8595},"id":302,"renderContextTable":{"__isSmartRef__":true,"id":8600},"eventHandler":{"__isSmartRef__":true,"id":8601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8602},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showHilbertFun","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8553},"text":{"__isSmartRef__":true,"id":8578},"owner":{"__isSmartRef__":true,"id":8551},"_Position":{"__isSmartRef__":true,"id":8603},"priorExtent":{"__isSmartRef__":true,"id":8604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8554},"id":303,"renderContextTable":{"__isSmartRef__":true,"id":8560},"eventHandler":{"__isSmartRef__":true,"id":8561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8554":{"_Position":{"__isSmartRef__":true,"id":8555},"renderContextTable":{"__isSmartRef__":true,"id":8556},"_Extent":{"__isSmartRef__":true,"id":8557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8561":{"morph":{"__isSmartRef__":true,"id":8553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8563":{"onMouseUp":{"__isSmartRef__":true,"id":8564},"toggle":{"__isSmartRef__":true,"id":8571}},"8564":{"varMapping":{"__isSmartRef__":true,"id":8565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8565":{"this":{"__isSmartRef__":true,"id":8553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8566}},"8566":{"$super":{"__isSmartRef__":true,"id":8567}},"8567":{"varMapping":{"__isSmartRef__":true,"id":8568},"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":8569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8568":{"obj":{"__isSmartRef__":true,"id":8553},"name":"onMouseUp"},"8569":{},"8570":{},"8571":{"varMapping":{"__isSmartRef__":true,"id":8572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8572":{"this":{"__isSmartRef__":true,"id":8553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8573}},"8573":{"$super":{"__isSmartRef__":true,"id":8574}},"8574":{"varMapping":{"__isSmartRef__":true,"id":8575},"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":8576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8575":{"obj":{"__isSmartRef__":true,"id":8553},"name":"toggle"},"8576":{},"8577":{},"8578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8579},"id":304,"renderContextTable":{"__isSmartRef__":true,"id":8583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8584},{"__isSmartRef__":true,"id":8586}],"eventHandler":{"__isSmartRef__":true,"id":8588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8589},"priorExtent":{"__isSmartRef__":true,"id":8590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8579":{"_Position":{"__isSmartRef__":true,"id":8580},"renderContextTable":{"__isSmartRef__":true,"id":8581},"_Extent":{"__isSmartRef__":true,"id":8582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8582":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8584":{"style":{"__isSmartRef__":true,"id":8585},"chunkOwner":{"__isSmartRef__":true,"id":8578},"storedString":"showHilbertFun","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8586":{"style":{"__isSmartRef__":true,"id":8587},"chunkOwner":{"__isSmartRef__":true,"id":8578},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8588":{"morph":{"__isSmartRef__":true,"id":8578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8590":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8591":{"layoutText":{"__isSmartRef__":true,"id":8592}},"8592":{"varMapping":{"__isSmartRef__":true,"id":8593},"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":8594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8593":{"this":{"__isSmartRef__":true,"id":8578}},"8594":{},"8595":{"_Position":{"__isSmartRef__":true,"id":8596},"renderContextTable":{"__isSmartRef__":true,"id":8597},"_Extent":{"__isSmartRef__":true,"id":8598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8601":{"morph":{"__isSmartRef__":true,"id":8552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8602":{"resizeWidth":true},"8603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8605":{"updateExpanderColor":{"__isSmartRef__":true,"id":8606},"onMouseDown":{"__isSmartRef__":true,"id":8609},"onMouseUp":{"__isSmartRef__":true,"id":8616},"isRoot":{"__isSmartRef__":true,"id":8623},"displayValue":{"__isSmartRef__":true,"id":8626},"update":{"__isSmartRef__":true,"id":8629}},"8606":{"varMapping":{"__isSmartRef__":true,"id":8607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8607":{"this":{"__isSmartRef__":true,"id":8552}},"8608":{},"8609":{"varMapping":{"__isSmartRef__":true,"id":8610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8610":{"this":{"__isSmartRef__":true,"id":8552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8611}},"8611":{"$super":{"__isSmartRef__":true,"id":8612}},"8612":{"varMapping":{"__isSmartRef__":true,"id":8613},"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":8614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8613":{"obj":{"__isSmartRef__":true,"id":8552},"name":"onMouseDown"},"8614":{},"8615":{},"8616":{"varMapping":{"__isSmartRef__":true,"id":8617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8617":{"this":{"__isSmartRef__":true,"id":8552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8618}},"8618":{"$super":{"__isSmartRef__":true,"id":8619}},"8619":{"varMapping":{"__isSmartRef__":true,"id":8620},"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":8621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8620":{"obj":{"__isSmartRef__":true,"id":8552},"name":"onMouseUp"},"8621":{},"8622":{},"8623":{"varMapping":{"__isSmartRef__":true,"id":8624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8624":{"this":{"__isSmartRef__":true,"id":8552}},"8625":{},"8626":{"varMapping":{"__isSmartRef__":true,"id":8627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8627":{"this":{"__isSmartRef__":true,"id":8552}},"8628":{},"8629":{"varMapping":{"__isSmartRef__":true,"id":8630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8630":{"this":{"__isSmartRef__":true,"id":8552}},"8631":{},"8632":{"_Position":{"__isSmartRef__":true,"id":8633},"renderContextTable":{"__isSmartRef__":true,"id":8634},"_Extent":{"__isSmartRef__":true,"id":8635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8638":{"morph":{"__isSmartRef__":true,"id":8551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8639":{"layouter":{"__isSmartRef__":true,"id":8640},"resizeWidth":true},"8640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8642":{"x":0,"y":1280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8644}},"8644":{"varMapping":{"__isSmartRef__":true,"id":8645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8645":{"this":{"__isSmartRef__":true,"id":8551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8646}},"8646":{"$super":{"__isSmartRef__":true,"id":8647}},"8647":{"varMapping":{"__isSmartRef__":true,"id":8648},"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":8649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8648":{"obj":{"__isSmartRef__":true,"id":8551},"name":"getLayoutableSubmorphs"},"8649":{},"8650":{},"8651":{"submorphs":[{"__isSmartRef__":true,"id":8652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8732},"id":309,"renderContextTable":{"__isSmartRef__":true,"id":8737},"eventHandler":{"__isSmartRef__":true,"id":8738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8652":{"submorphs":[{"__isSmartRef__":true,"id":8653},{"__isSmartRef__":true,"id":8678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8695},"id":306,"renderContextTable":{"__isSmartRef__":true,"id":8700},"eventHandler":{"__isSmartRef__":true,"id":8701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8702},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showInnerWorld","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8653},"text":{"__isSmartRef__":true,"id":8678},"owner":{"__isSmartRef__":true,"id":8651},"_Position":{"__isSmartRef__":true,"id":8703},"priorExtent":{"__isSmartRef__":true,"id":8704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8654},"id":307,"renderContextTable":{"__isSmartRef__":true,"id":8660},"eventHandler":{"__isSmartRef__":true,"id":8661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8654":{"_Position":{"__isSmartRef__":true,"id":8655},"renderContextTable":{"__isSmartRef__":true,"id":8656},"_Extent":{"__isSmartRef__":true,"id":8657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8661":{"morph":{"__isSmartRef__":true,"id":8653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8663":{"onMouseUp":{"__isSmartRef__":true,"id":8664},"toggle":{"__isSmartRef__":true,"id":8671}},"8664":{"varMapping":{"__isSmartRef__":true,"id":8665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8665":{"this":{"__isSmartRef__":true,"id":8653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8666}},"8666":{"$super":{"__isSmartRef__":true,"id":8667}},"8667":{"varMapping":{"__isSmartRef__":true,"id":8668},"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":8669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8668":{"obj":{"__isSmartRef__":true,"id":8653},"name":"onMouseUp"},"8669":{},"8670":{},"8671":{"varMapping":{"__isSmartRef__":true,"id":8672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8672":{"this":{"__isSmartRef__":true,"id":8653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8673}},"8673":{"$super":{"__isSmartRef__":true,"id":8674}},"8674":{"varMapping":{"__isSmartRef__":true,"id":8675},"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":8676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8675":{"obj":{"__isSmartRef__":true,"id":8653},"name":"toggle"},"8676":{},"8677":{},"8678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8679},"id":308,"renderContextTable":{"__isSmartRef__":true,"id":8683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8684},{"__isSmartRef__":true,"id":8686}],"eventHandler":{"__isSmartRef__":true,"id":8688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8689},"priorExtent":{"__isSmartRef__":true,"id":8690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8679":{"_Position":{"__isSmartRef__":true,"id":8680},"renderContextTable":{"__isSmartRef__":true,"id":8681},"_Extent":{"__isSmartRef__":true,"id":8682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8682":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8684":{"style":{"__isSmartRef__":true,"id":8685},"chunkOwner":{"__isSmartRef__":true,"id":8678},"storedString":"showInnerWorld","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8686":{"style":{"__isSmartRef__":true,"id":8687},"chunkOwner":{"__isSmartRef__":true,"id":8678},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8688":{"morph":{"__isSmartRef__":true,"id":8678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8690":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8691":{"layoutText":{"__isSmartRef__":true,"id":8692}},"8692":{"varMapping":{"__isSmartRef__":true,"id":8693},"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":8694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8693":{"this":{"__isSmartRef__":true,"id":8678}},"8694":{},"8695":{"_Position":{"__isSmartRef__":true,"id":8696},"renderContextTable":{"__isSmartRef__":true,"id":8697},"_Extent":{"__isSmartRef__":true,"id":8698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8701":{"morph":{"__isSmartRef__":true,"id":8652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8702":{"resizeWidth":true},"8703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8705":{"updateExpanderColor":{"__isSmartRef__":true,"id":8706},"onMouseDown":{"__isSmartRef__":true,"id":8709},"onMouseUp":{"__isSmartRef__":true,"id":8716},"isRoot":{"__isSmartRef__":true,"id":8723},"displayValue":{"__isSmartRef__":true,"id":8726},"update":{"__isSmartRef__":true,"id":8729}},"8706":{"varMapping":{"__isSmartRef__":true,"id":8707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8707":{"this":{"__isSmartRef__":true,"id":8652}},"8708":{},"8709":{"varMapping":{"__isSmartRef__":true,"id":8710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8710":{"this":{"__isSmartRef__":true,"id":8652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8711}},"8711":{"$super":{"__isSmartRef__":true,"id":8712}},"8712":{"varMapping":{"__isSmartRef__":true,"id":8713},"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":8714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8713":{"obj":{"__isSmartRef__":true,"id":8652},"name":"onMouseDown"},"8714":{},"8715":{},"8716":{"varMapping":{"__isSmartRef__":true,"id":8717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8717":{"this":{"__isSmartRef__":true,"id":8652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8718}},"8718":{"$super":{"__isSmartRef__":true,"id":8719}},"8719":{"varMapping":{"__isSmartRef__":true,"id":8720},"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":8721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8720":{"obj":{"__isSmartRef__":true,"id":8652},"name":"onMouseUp"},"8721":{},"8722":{},"8723":{"varMapping":{"__isSmartRef__":true,"id":8724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8724":{"this":{"__isSmartRef__":true,"id":8652}},"8725":{},"8726":{"varMapping":{"__isSmartRef__":true,"id":8727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8727":{"this":{"__isSmartRef__":true,"id":8652}},"8728":{},"8729":{"varMapping":{"__isSmartRef__":true,"id":8730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8730":{"this":{"__isSmartRef__":true,"id":8652}},"8731":{},"8732":{"_Position":{"__isSmartRef__":true,"id":8733},"renderContextTable":{"__isSmartRef__":true,"id":8734},"_Extent":{"__isSmartRef__":true,"id":8735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8738":{"morph":{"__isSmartRef__":true,"id":8651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8739":{"layouter":{"__isSmartRef__":true,"id":8740},"resizeWidth":true},"8740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8742":{"x":0,"y":1300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8744}},"8744":{"varMapping":{"__isSmartRef__":true,"id":8745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8745":{"this":{"__isSmartRef__":true,"id":8651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8746}},"8746":{"$super":{"__isSmartRef__":true,"id":8747}},"8747":{"varMapping":{"__isSmartRef__":true,"id":8748},"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":8749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8748":{"obj":{"__isSmartRef__":true,"id":8651},"name":"getLayoutableSubmorphs"},"8749":{},"8750":{},"8751":{"submorphs":[{"__isSmartRef__":true,"id":8752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8832},"id":313,"renderContextTable":{"__isSmartRef__":true,"id":8837},"eventHandler":{"__isSmartRef__":true,"id":8838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8752":{"submorphs":[{"__isSmartRef__":true,"id":8753},{"__isSmartRef__":true,"id":8778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8795},"id":310,"renderContextTable":{"__isSmartRef__":true,"id":8800},"eventHandler":{"__isSmartRef__":true,"id":8801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8802},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showKaleidoscope","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8753},"text":{"__isSmartRef__":true,"id":8778},"owner":{"__isSmartRef__":true,"id":8751},"_Position":{"__isSmartRef__":true,"id":8803},"priorExtent":{"__isSmartRef__":true,"id":8804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8754},"id":311,"renderContextTable":{"__isSmartRef__":true,"id":8760},"eventHandler":{"__isSmartRef__":true,"id":8761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8754":{"_Position":{"__isSmartRef__":true,"id":8755},"renderContextTable":{"__isSmartRef__":true,"id":8756},"_Extent":{"__isSmartRef__":true,"id":8757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8761":{"morph":{"__isSmartRef__":true,"id":8753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8763":{"onMouseUp":{"__isSmartRef__":true,"id":8764},"toggle":{"__isSmartRef__":true,"id":8771}},"8764":{"varMapping":{"__isSmartRef__":true,"id":8765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8765":{"this":{"__isSmartRef__":true,"id":8753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8766}},"8766":{"$super":{"__isSmartRef__":true,"id":8767}},"8767":{"varMapping":{"__isSmartRef__":true,"id":8768},"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":8769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8768":{"obj":{"__isSmartRef__":true,"id":8753},"name":"onMouseUp"},"8769":{},"8770":{},"8771":{"varMapping":{"__isSmartRef__":true,"id":8772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8772":{"this":{"__isSmartRef__":true,"id":8753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8773}},"8773":{"$super":{"__isSmartRef__":true,"id":8774}},"8774":{"varMapping":{"__isSmartRef__":true,"id":8775},"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":8776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8775":{"obj":{"__isSmartRef__":true,"id":8753},"name":"toggle"},"8776":{},"8777":{},"8778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8779},"id":312,"renderContextTable":{"__isSmartRef__":true,"id":8783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8784},{"__isSmartRef__":true,"id":8786}],"eventHandler":{"__isSmartRef__":true,"id":8788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8789},"priorExtent":{"__isSmartRef__":true,"id":8790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8779":{"_Position":{"__isSmartRef__":true,"id":8780},"renderContextTable":{"__isSmartRef__":true,"id":8781},"_Extent":{"__isSmartRef__":true,"id":8782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8782":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8784":{"style":{"__isSmartRef__":true,"id":8785},"chunkOwner":{"__isSmartRef__":true,"id":8778},"storedString":"showKaleidoscope","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8786":{"style":{"__isSmartRef__":true,"id":8787},"chunkOwner":{"__isSmartRef__":true,"id":8778},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8788":{"morph":{"__isSmartRef__":true,"id":8778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8790":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8791":{"layoutText":{"__isSmartRef__":true,"id":8792}},"8792":{"varMapping":{"__isSmartRef__":true,"id":8793},"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":8794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8793":{"this":{"__isSmartRef__":true,"id":8778}},"8794":{},"8795":{"_Position":{"__isSmartRef__":true,"id":8796},"renderContextTable":{"__isSmartRef__":true,"id":8797},"_Extent":{"__isSmartRef__":true,"id":8798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8801":{"morph":{"__isSmartRef__":true,"id":8752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8802":{"resizeWidth":true},"8803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8805":{"updateExpanderColor":{"__isSmartRef__":true,"id":8806},"onMouseDown":{"__isSmartRef__":true,"id":8809},"onMouseUp":{"__isSmartRef__":true,"id":8816},"isRoot":{"__isSmartRef__":true,"id":8823},"displayValue":{"__isSmartRef__":true,"id":8826},"update":{"__isSmartRef__":true,"id":8829}},"8806":{"varMapping":{"__isSmartRef__":true,"id":8807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8807":{"this":{"__isSmartRef__":true,"id":8752}},"8808":{},"8809":{"varMapping":{"__isSmartRef__":true,"id":8810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8810":{"this":{"__isSmartRef__":true,"id":8752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8811}},"8811":{"$super":{"__isSmartRef__":true,"id":8812}},"8812":{"varMapping":{"__isSmartRef__":true,"id":8813},"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":8814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8813":{"obj":{"__isSmartRef__":true,"id":8752},"name":"onMouseDown"},"8814":{},"8815":{},"8816":{"varMapping":{"__isSmartRef__":true,"id":8817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8817":{"this":{"__isSmartRef__":true,"id":8752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8818}},"8818":{"$super":{"__isSmartRef__":true,"id":8819}},"8819":{"varMapping":{"__isSmartRef__":true,"id":8820},"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":8821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8820":{"obj":{"__isSmartRef__":true,"id":8752},"name":"onMouseUp"},"8821":{},"8822":{},"8823":{"varMapping":{"__isSmartRef__":true,"id":8824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8824":{"this":{"__isSmartRef__":true,"id":8752}},"8825":{},"8826":{"varMapping":{"__isSmartRef__":true,"id":8827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8827":{"this":{"__isSmartRef__":true,"id":8752}},"8828":{},"8829":{"varMapping":{"__isSmartRef__":true,"id":8830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8830":{"this":{"__isSmartRef__":true,"id":8752}},"8831":{},"8832":{"_Position":{"__isSmartRef__":true,"id":8833},"renderContextTable":{"__isSmartRef__":true,"id":8834},"_Extent":{"__isSmartRef__":true,"id":8835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8838":{"morph":{"__isSmartRef__":true,"id":8751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8839":{"layouter":{"__isSmartRef__":true,"id":8840},"resizeWidth":true},"8840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8842":{"x":0,"y":1320,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8844}},"8844":{"varMapping":{"__isSmartRef__":true,"id":8845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8845":{"this":{"__isSmartRef__":true,"id":8751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8846}},"8846":{"$super":{"__isSmartRef__":true,"id":8847}},"8847":{"varMapping":{"__isSmartRef__":true,"id":8848},"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":8849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8848":{"obj":{"__isSmartRef__":true,"id":8751},"name":"getLayoutableSubmorphs"},"8849":{},"8850":{},"8851":{"submorphs":[{"__isSmartRef__":true,"id":8852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8932},"id":317,"renderContextTable":{"__isSmartRef__":true,"id":8937},"eventHandler":{"__isSmartRef__":true,"id":8938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":8942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8852":{"submorphs":[{"__isSmartRef__":true,"id":8853},{"__isSmartRef__":true,"id":8878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8895},"id":314,"renderContextTable":{"__isSmartRef__":true,"id":8900},"eventHandler":{"__isSmartRef__":true,"id":8901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8902},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showLivelyConsole","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8853},"text":{"__isSmartRef__":true,"id":8878},"owner":{"__isSmartRef__":true,"id":8851},"_Position":{"__isSmartRef__":true,"id":8903},"priorExtent":{"__isSmartRef__":true,"id":8904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8854},"id":315,"renderContextTable":{"__isSmartRef__":true,"id":8860},"eventHandler":{"__isSmartRef__":true,"id":8861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8854":{"_Position":{"__isSmartRef__":true,"id":8855},"renderContextTable":{"__isSmartRef__":true,"id":8856},"_Extent":{"__isSmartRef__":true,"id":8857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8861":{"morph":{"__isSmartRef__":true,"id":8853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8863":{"onMouseUp":{"__isSmartRef__":true,"id":8864},"toggle":{"__isSmartRef__":true,"id":8871}},"8864":{"varMapping":{"__isSmartRef__":true,"id":8865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8865":{"this":{"__isSmartRef__":true,"id":8853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8866}},"8866":{"$super":{"__isSmartRef__":true,"id":8867}},"8867":{"varMapping":{"__isSmartRef__":true,"id":8868},"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":8869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8868":{"obj":{"__isSmartRef__":true,"id":8853},"name":"onMouseUp"},"8869":{},"8870":{},"8871":{"varMapping":{"__isSmartRef__":true,"id":8872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8872":{"this":{"__isSmartRef__":true,"id":8853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8873}},"8873":{"$super":{"__isSmartRef__":true,"id":8874}},"8874":{"varMapping":{"__isSmartRef__":true,"id":8875},"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":8876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8875":{"obj":{"__isSmartRef__":true,"id":8853},"name":"toggle"},"8876":{},"8877":{},"8878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8879},"id":316,"renderContextTable":{"__isSmartRef__":true,"id":8883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8884},{"__isSmartRef__":true,"id":8886}],"eventHandler":{"__isSmartRef__":true,"id":8888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8889},"priorExtent":{"__isSmartRef__":true,"id":8890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8879":{"_Position":{"__isSmartRef__":true,"id":8880},"renderContextTable":{"__isSmartRef__":true,"id":8881},"_Extent":{"__isSmartRef__":true,"id":8882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8882":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8884":{"style":{"__isSmartRef__":true,"id":8885},"chunkOwner":{"__isSmartRef__":true,"id":8878},"storedString":"showLivelyConsole","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8886":{"style":{"__isSmartRef__":true,"id":8887},"chunkOwner":{"__isSmartRef__":true,"id":8878},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8888":{"morph":{"__isSmartRef__":true,"id":8878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8890":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8891":{"layoutText":{"__isSmartRef__":true,"id":8892}},"8892":{"varMapping":{"__isSmartRef__":true,"id":8893},"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":8894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8893":{"this":{"__isSmartRef__":true,"id":8878}},"8894":{},"8895":{"_Position":{"__isSmartRef__":true,"id":8896},"renderContextTable":{"__isSmartRef__":true,"id":8897},"_Extent":{"__isSmartRef__":true,"id":8898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8901":{"morph":{"__isSmartRef__":true,"id":8852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8902":{"resizeWidth":true},"8903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8905":{"updateExpanderColor":{"__isSmartRef__":true,"id":8906},"onMouseDown":{"__isSmartRef__":true,"id":8909},"onMouseUp":{"__isSmartRef__":true,"id":8916},"isRoot":{"__isSmartRef__":true,"id":8923},"displayValue":{"__isSmartRef__":true,"id":8926},"update":{"__isSmartRef__":true,"id":8929}},"8906":{"varMapping":{"__isSmartRef__":true,"id":8907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8907":{"this":{"__isSmartRef__":true,"id":8852}},"8908":{},"8909":{"varMapping":{"__isSmartRef__":true,"id":8910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8910":{"this":{"__isSmartRef__":true,"id":8852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8911}},"8911":{"$super":{"__isSmartRef__":true,"id":8912}},"8912":{"varMapping":{"__isSmartRef__":true,"id":8913},"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":8914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8913":{"obj":{"__isSmartRef__":true,"id":8852},"name":"onMouseDown"},"8914":{},"8915":{},"8916":{"varMapping":{"__isSmartRef__":true,"id":8917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8917":{"this":{"__isSmartRef__":true,"id":8852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8918}},"8918":{"$super":{"__isSmartRef__":true,"id":8919}},"8919":{"varMapping":{"__isSmartRef__":true,"id":8920},"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":8921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8920":{"obj":{"__isSmartRef__":true,"id":8852},"name":"onMouseUp"},"8921":{},"8922":{},"8923":{"varMapping":{"__isSmartRef__":true,"id":8924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8924":{"this":{"__isSmartRef__":true,"id":8852}},"8925":{},"8926":{"varMapping":{"__isSmartRef__":true,"id":8927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":8928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8927":{"this":{"__isSmartRef__":true,"id":8852}},"8928":{},"8929":{"varMapping":{"__isSmartRef__":true,"id":8930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8930":{"this":{"__isSmartRef__":true,"id":8852}},"8931":{},"8932":{"_Position":{"__isSmartRef__":true,"id":8933},"renderContextTable":{"__isSmartRef__":true,"id":8934},"_Extent":{"__isSmartRef__":true,"id":8935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8938":{"morph":{"__isSmartRef__":true,"id":8851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8939":{"layouter":{"__isSmartRef__":true,"id":8940},"resizeWidth":true},"8940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8942":{"x":0,"y":1340,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8944}},"8944":{"varMapping":{"__isSmartRef__":true,"id":8945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8945":{"this":{"__isSmartRef__":true,"id":8851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8946}},"8946":{"$super":{"__isSmartRef__":true,"id":8947}},"8947":{"varMapping":{"__isSmartRef__":true,"id":8948},"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":8949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8948":{"obj":{"__isSmartRef__":true,"id":8851},"name":"getLayoutableSubmorphs"},"8949":{},"8950":{},"8951":{"submorphs":[{"__isSmartRef__":true,"id":8952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9032},"id":321,"renderContextTable":{"__isSmartRef__":true,"id":9037},"eventHandler":{"__isSmartRef__":true,"id":9038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8952":{"submorphs":[{"__isSmartRef__":true,"id":8953},{"__isSmartRef__":true,"id":8978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8995},"id":318,"renderContextTable":{"__isSmartRef__":true,"id":9000},"eventHandler":{"__isSmartRef__":true,"id":9001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9002},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showMap","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":8953},"text":{"__isSmartRef__":true,"id":8978},"owner":{"__isSmartRef__":true,"id":8951},"_Position":{"__isSmartRef__":true,"id":9003},"priorExtent":{"__isSmartRef__":true,"id":9004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8954},"id":319,"renderContextTable":{"__isSmartRef__":true,"id":8960},"eventHandler":{"__isSmartRef__":true,"id":8961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8954":{"_Position":{"__isSmartRef__":true,"id":8955},"renderContextTable":{"__isSmartRef__":true,"id":8956},"_Extent":{"__isSmartRef__":true,"id":8957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":8959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8961":{"morph":{"__isSmartRef__":true,"id":8953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8963":{"onMouseUp":{"__isSmartRef__":true,"id":8964},"toggle":{"__isSmartRef__":true,"id":8971}},"8964":{"varMapping":{"__isSmartRef__":true,"id":8965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":8970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8965":{"this":{"__isSmartRef__":true,"id":8953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8966}},"8966":{"$super":{"__isSmartRef__":true,"id":8967}},"8967":{"varMapping":{"__isSmartRef__":true,"id":8968},"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":8969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8968":{"obj":{"__isSmartRef__":true,"id":8953},"name":"onMouseUp"},"8969":{},"8970":{},"8971":{"varMapping":{"__isSmartRef__":true,"id":8972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":8977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8972":{"this":{"__isSmartRef__":true,"id":8953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8973}},"8973":{"$super":{"__isSmartRef__":true,"id":8974}},"8974":{"varMapping":{"__isSmartRef__":true,"id":8975},"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":8976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8975":{"obj":{"__isSmartRef__":true,"id":8953},"name":"toggle"},"8976":{},"8977":{},"8978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8979},"id":320,"renderContextTable":{"__isSmartRef__":true,"id":8983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8984},{"__isSmartRef__":true,"id":8986}],"eventHandler":{"__isSmartRef__":true,"id":8988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8989},"priorExtent":{"__isSmartRef__":true,"id":8990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8979":{"_Position":{"__isSmartRef__":true,"id":8980},"renderContextTable":{"__isSmartRef__":true,"id":8981},"_Extent":{"__isSmartRef__":true,"id":8982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8982":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8984":{"style":{"__isSmartRef__":true,"id":8985},"chunkOwner":{"__isSmartRef__":true,"id":8978},"storedString":"showMap","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8986":{"style":{"__isSmartRef__":true,"id":8987},"chunkOwner":{"__isSmartRef__":true,"id":8978},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8988":{"morph":{"__isSmartRef__":true,"id":8978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8990":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8991":{"layoutText":{"__isSmartRef__":true,"id":8992}},"8992":{"varMapping":{"__isSmartRef__":true,"id":8993},"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":8994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8993":{"this":{"__isSmartRef__":true,"id":8978}},"8994":{},"8995":{"_Position":{"__isSmartRef__":true,"id":8996},"renderContextTable":{"__isSmartRef__":true,"id":8997},"_Extent":{"__isSmartRef__":true,"id":8998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9001":{"morph":{"__isSmartRef__":true,"id":8952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9002":{"resizeWidth":true},"9003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9005":{"updateExpanderColor":{"__isSmartRef__":true,"id":9006},"onMouseDown":{"__isSmartRef__":true,"id":9009},"onMouseUp":{"__isSmartRef__":true,"id":9016},"isRoot":{"__isSmartRef__":true,"id":9023},"displayValue":{"__isSmartRef__":true,"id":9026},"update":{"__isSmartRef__":true,"id":9029}},"9006":{"varMapping":{"__isSmartRef__":true,"id":9007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9007":{"this":{"__isSmartRef__":true,"id":8952}},"9008":{},"9009":{"varMapping":{"__isSmartRef__":true,"id":9010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9010":{"this":{"__isSmartRef__":true,"id":8952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9011}},"9011":{"$super":{"__isSmartRef__":true,"id":9012}},"9012":{"varMapping":{"__isSmartRef__":true,"id":9013},"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":9014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9013":{"obj":{"__isSmartRef__":true,"id":8952},"name":"onMouseDown"},"9014":{},"9015":{},"9016":{"varMapping":{"__isSmartRef__":true,"id":9017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9017":{"this":{"__isSmartRef__":true,"id":8952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9018}},"9018":{"$super":{"__isSmartRef__":true,"id":9019}},"9019":{"varMapping":{"__isSmartRef__":true,"id":9020},"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":9021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9020":{"obj":{"__isSmartRef__":true,"id":8952},"name":"onMouseUp"},"9021":{},"9022":{},"9023":{"varMapping":{"__isSmartRef__":true,"id":9024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9024":{"this":{"__isSmartRef__":true,"id":8952}},"9025":{},"9026":{"varMapping":{"__isSmartRef__":true,"id":9027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9027":{"this":{"__isSmartRef__":true,"id":8952}},"9028":{},"9029":{"varMapping":{"__isSmartRef__":true,"id":9030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9030":{"this":{"__isSmartRef__":true,"id":8952}},"9031":{},"9032":{"_Position":{"__isSmartRef__":true,"id":9033},"renderContextTable":{"__isSmartRef__":true,"id":9034},"_Extent":{"__isSmartRef__":true,"id":9035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9038":{"morph":{"__isSmartRef__":true,"id":8951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9039":{"layouter":{"__isSmartRef__":true,"id":9040},"resizeWidth":true},"9040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9042":{"x":0,"y":1360,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9044}},"9044":{"varMapping":{"__isSmartRef__":true,"id":9045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9045":{"this":{"__isSmartRef__":true,"id":8951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9046}},"9046":{"$super":{"__isSmartRef__":true,"id":9047}},"9047":{"varMapping":{"__isSmartRef__":true,"id":9048},"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":9049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9048":{"obj":{"__isSmartRef__":true,"id":8951},"name":"getLayoutableSubmorphs"},"9049":{},"9050":{},"9051":{"submorphs":[{"__isSmartRef__":true,"id":9052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9132},"id":325,"renderContextTable":{"__isSmartRef__":true,"id":9137},"eventHandler":{"__isSmartRef__":true,"id":9138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9052":{"submorphs":[{"__isSmartRef__":true,"id":9053},{"__isSmartRef__":true,"id":9078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9095},"id":322,"renderContextTable":{"__isSmartRef__":true,"id":9100},"eventHandler":{"__isSmartRef__":true,"id":9101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9102},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showModuleDefStack","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9053},"text":{"__isSmartRef__":true,"id":9078},"owner":{"__isSmartRef__":true,"id":9051},"_Position":{"__isSmartRef__":true,"id":9103},"priorExtent":{"__isSmartRef__":true,"id":9104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9054},"id":323,"renderContextTable":{"__isSmartRef__":true,"id":9060},"eventHandler":{"__isSmartRef__":true,"id":9061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9054":{"_Position":{"__isSmartRef__":true,"id":9055},"renderContextTable":{"__isSmartRef__":true,"id":9056},"_Extent":{"__isSmartRef__":true,"id":9057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9061":{"morph":{"__isSmartRef__":true,"id":9053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9063":{"onMouseUp":{"__isSmartRef__":true,"id":9064},"toggle":{"__isSmartRef__":true,"id":9071}},"9064":{"varMapping":{"__isSmartRef__":true,"id":9065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9065":{"this":{"__isSmartRef__":true,"id":9053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9066}},"9066":{"$super":{"__isSmartRef__":true,"id":9067}},"9067":{"varMapping":{"__isSmartRef__":true,"id":9068},"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":9069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9068":{"obj":{"__isSmartRef__":true,"id":9053},"name":"onMouseUp"},"9069":{},"9070":{},"9071":{"varMapping":{"__isSmartRef__":true,"id":9072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9072":{"this":{"__isSmartRef__":true,"id":9053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9073}},"9073":{"$super":{"__isSmartRef__":true,"id":9074}},"9074":{"varMapping":{"__isSmartRef__":true,"id":9075},"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":9076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9075":{"obj":{"__isSmartRef__":true,"id":9053},"name":"toggle"},"9076":{},"9077":{},"9078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9079},"id":324,"renderContextTable":{"__isSmartRef__":true,"id":9083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9084},{"__isSmartRef__":true,"id":9086}],"eventHandler":{"__isSmartRef__":true,"id":9088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9089},"priorExtent":{"__isSmartRef__":true,"id":9090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9079":{"_Position":{"__isSmartRef__":true,"id":9080},"renderContextTable":{"__isSmartRef__":true,"id":9081},"_Extent":{"__isSmartRef__":true,"id":9082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9082":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9084":{"style":{"__isSmartRef__":true,"id":9085},"chunkOwner":{"__isSmartRef__":true,"id":9078},"storedString":"showModuleDefStack","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9086":{"style":{"__isSmartRef__":true,"id":9087},"chunkOwner":{"__isSmartRef__":true,"id":9078},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9088":{"morph":{"__isSmartRef__":true,"id":9078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9090":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9091":{"layoutText":{"__isSmartRef__":true,"id":9092}},"9092":{"varMapping":{"__isSmartRef__":true,"id":9093},"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":9094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9093":{"this":{"__isSmartRef__":true,"id":9078}},"9094":{},"9095":{"_Position":{"__isSmartRef__":true,"id":9096},"renderContextTable":{"__isSmartRef__":true,"id":9097},"_Extent":{"__isSmartRef__":true,"id":9098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9101":{"morph":{"__isSmartRef__":true,"id":9052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9102":{"resizeWidth":true},"9103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9105":{"updateExpanderColor":{"__isSmartRef__":true,"id":9106},"onMouseDown":{"__isSmartRef__":true,"id":9109},"onMouseUp":{"__isSmartRef__":true,"id":9116},"isRoot":{"__isSmartRef__":true,"id":9123},"displayValue":{"__isSmartRef__":true,"id":9126},"update":{"__isSmartRef__":true,"id":9129}},"9106":{"varMapping":{"__isSmartRef__":true,"id":9107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9107":{"this":{"__isSmartRef__":true,"id":9052}},"9108":{},"9109":{"varMapping":{"__isSmartRef__":true,"id":9110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9110":{"this":{"__isSmartRef__":true,"id":9052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9111}},"9111":{"$super":{"__isSmartRef__":true,"id":9112}},"9112":{"varMapping":{"__isSmartRef__":true,"id":9113},"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":9114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9113":{"obj":{"__isSmartRef__":true,"id":9052},"name":"onMouseDown"},"9114":{},"9115":{},"9116":{"varMapping":{"__isSmartRef__":true,"id":9117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9117":{"this":{"__isSmartRef__":true,"id":9052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9118}},"9118":{"$super":{"__isSmartRef__":true,"id":9119}},"9119":{"varMapping":{"__isSmartRef__":true,"id":9120},"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":9121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9120":{"obj":{"__isSmartRef__":true,"id":9052},"name":"onMouseUp"},"9121":{},"9122":{},"9123":{"varMapping":{"__isSmartRef__":true,"id":9124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9124":{"this":{"__isSmartRef__":true,"id":9052}},"9125":{},"9126":{"varMapping":{"__isSmartRef__":true,"id":9127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9127":{"this":{"__isSmartRef__":true,"id":9052}},"9128":{},"9129":{"varMapping":{"__isSmartRef__":true,"id":9130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9130":{"this":{"__isSmartRef__":true,"id":9052}},"9131":{},"9132":{"_Position":{"__isSmartRef__":true,"id":9133},"renderContextTable":{"__isSmartRef__":true,"id":9134},"_Extent":{"__isSmartRef__":true,"id":9135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9138":{"morph":{"__isSmartRef__":true,"id":9051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9139":{"layouter":{"__isSmartRef__":true,"id":9140},"resizeWidth":true},"9140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9142":{"x":0,"y":1380,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9144}},"9144":{"varMapping":{"__isSmartRef__":true,"id":9145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9145":{"this":{"__isSmartRef__":true,"id":9051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9146}},"9146":{"$super":{"__isSmartRef__":true,"id":9147}},"9147":{"varMapping":{"__isSmartRef__":true,"id":9148},"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":9149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9148":{"obj":{"__isSmartRef__":true,"id":9051},"name":"getLayoutableSubmorphs"},"9149":{},"9150":{},"9151":{"submorphs":[{"__isSmartRef__":true,"id":9152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9232},"id":329,"renderContextTable":{"__isSmartRef__":true,"id":9237},"eventHandler":{"__isSmartRef__":true,"id":9238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9152":{"submorphs":[{"__isSmartRef__":true,"id":9153},{"__isSmartRef__":true,"id":9178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9195},"id":326,"renderContextTable":{"__isSmartRef__":true,"id":9200},"eventHandler":{"__isSmartRef__":true,"id":9201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9202},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showMostTyping","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9153},"text":{"__isSmartRef__":true,"id":9178},"owner":{"__isSmartRef__":true,"id":9151},"_Position":{"__isSmartRef__":true,"id":9203},"priorExtent":{"__isSmartRef__":true,"id":9204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9154},"id":327,"renderContextTable":{"__isSmartRef__":true,"id":9160},"eventHandler":{"__isSmartRef__":true,"id":9161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9154":{"_Position":{"__isSmartRef__":true,"id":9155},"renderContextTable":{"__isSmartRef__":true,"id":9156},"_Extent":{"__isSmartRef__":true,"id":9157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9161":{"morph":{"__isSmartRef__":true,"id":9153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9163":{"onMouseUp":{"__isSmartRef__":true,"id":9164},"toggle":{"__isSmartRef__":true,"id":9171}},"9164":{"varMapping":{"__isSmartRef__":true,"id":9165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9165":{"this":{"__isSmartRef__":true,"id":9153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9166}},"9166":{"$super":{"__isSmartRef__":true,"id":9167}},"9167":{"varMapping":{"__isSmartRef__":true,"id":9168},"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":9169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9168":{"obj":{"__isSmartRef__":true,"id":9153},"name":"onMouseUp"},"9169":{},"9170":{},"9171":{"varMapping":{"__isSmartRef__":true,"id":9172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9172":{"this":{"__isSmartRef__":true,"id":9153},"__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 alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9175":{"obj":{"__isSmartRef__":true,"id":9153},"name":"toggle"},"9176":{},"9177":{},"9178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9179},"id":328,"renderContextTable":{"__isSmartRef__":true,"id":9183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9184},{"__isSmartRef__":true,"id":9186}],"eventHandler":{"__isSmartRef__":true,"id":9188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9189},"priorExtent":{"__isSmartRef__":true,"id":9190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9179":{"_Position":{"__isSmartRef__":true,"id":9180},"renderContextTable":{"__isSmartRef__":true,"id":9181},"_Extent":{"__isSmartRef__":true,"id":9182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9182":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9184":{"style":{"__isSmartRef__":true,"id":9185},"chunkOwner":{"__isSmartRef__":true,"id":9178},"storedString":"showMostTyping","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9186":{"style":{"__isSmartRef__":true,"id":9187},"chunkOwner":{"__isSmartRef__":true,"id":9178},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9188":{"morph":{"__isSmartRef__":true,"id":9178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9190":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9191":{"layoutText":{"__isSmartRef__":true,"id":9192}},"9192":{"varMapping":{"__isSmartRef__":true,"id":9193},"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":9194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9193":{"this":{"__isSmartRef__":true,"id":9178}},"9194":{},"9195":{"_Position":{"__isSmartRef__":true,"id":9196},"renderContextTable":{"__isSmartRef__":true,"id":9197},"_Extent":{"__isSmartRef__":true,"id":9198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9201":{"morph":{"__isSmartRef__":true,"id":9152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9202":{"resizeWidth":true},"9203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9205":{"updateExpanderColor":{"__isSmartRef__":true,"id":9206},"onMouseDown":{"__isSmartRef__":true,"id":9209},"onMouseUp":{"__isSmartRef__":true,"id":9216},"isRoot":{"__isSmartRef__":true,"id":9223},"displayValue":{"__isSmartRef__":true,"id":9226},"update":{"__isSmartRef__":true,"id":9229}},"9206":{"varMapping":{"__isSmartRef__":true,"id":9207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9207":{"this":{"__isSmartRef__":true,"id":9152}},"9208":{},"9209":{"varMapping":{"__isSmartRef__":true,"id":9210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9210":{"this":{"__isSmartRef__":true,"id":9152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9211}},"9211":{"$super":{"__isSmartRef__":true,"id":9212}},"9212":{"varMapping":{"__isSmartRef__":true,"id":9213},"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":9214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9213":{"obj":{"__isSmartRef__":true,"id":9152},"name":"onMouseDown"},"9214":{},"9215":{},"9216":{"varMapping":{"__isSmartRef__":true,"id":9217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9217":{"this":{"__isSmartRef__":true,"id":9152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9218}},"9218":{"$super":{"__isSmartRef__":true,"id":9219}},"9219":{"varMapping":{"__isSmartRef__":true,"id":9220},"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":9221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9220":{"obj":{"__isSmartRef__":true,"id":9152},"name":"onMouseUp"},"9221":{},"9222":{},"9223":{"varMapping":{"__isSmartRef__":true,"id":9224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9224":{"this":{"__isSmartRef__":true,"id":9152}},"9225":{},"9226":{"varMapping":{"__isSmartRef__":true,"id":9227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9227":{"this":{"__isSmartRef__":true,"id":9152}},"9228":{},"9229":{"varMapping":{"__isSmartRef__":true,"id":9230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9230":{"this":{"__isSmartRef__":true,"id":9152}},"9231":{},"9232":{"_Position":{"__isSmartRef__":true,"id":9233},"renderContextTable":{"__isSmartRef__":true,"id":9234},"_Extent":{"__isSmartRef__":true,"id":9235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9238":{"morph":{"__isSmartRef__":true,"id":9151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9239":{"layouter":{"__isSmartRef__":true,"id":9240},"resizeWidth":true},"9240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9242":{"x":0,"y":1400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9244}},"9244":{"varMapping":{"__isSmartRef__":true,"id":9245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9245":{"this":{"__isSmartRef__":true,"id":9151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9246}},"9246":{"$super":{"__isSmartRef__":true,"id":9247}},"9247":{"varMapping":{"__isSmartRef__":true,"id":9248},"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":9249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9248":{"obj":{"__isSmartRef__":true,"id":9151},"name":"getLayoutableSubmorphs"},"9249":{},"9250":{},"9251":{"submorphs":[{"__isSmartRef__":true,"id":9252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9332},"id":333,"renderContextTable":{"__isSmartRef__":true,"id":9337},"eventHandler":{"__isSmartRef__":true,"id":9338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9252":{"submorphs":[{"__isSmartRef__":true,"id":9253},{"__isSmartRef__":true,"id":9278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9295},"id":330,"renderContextTable":{"__isSmartRef__":true,"id":9300},"eventHandler":{"__isSmartRef__":true,"id":9301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9302},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showNetworkExamples","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9253},"text":{"__isSmartRef__":true,"id":9278},"owner":{"__isSmartRef__":true,"id":9251},"_Position":{"__isSmartRef__":true,"id":9303},"priorExtent":{"__isSmartRef__":true,"id":9304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9254},"id":331,"renderContextTable":{"__isSmartRef__":true,"id":9260},"eventHandler":{"__isSmartRef__":true,"id":9261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9254":{"_Position":{"__isSmartRef__":true,"id":9255},"renderContextTable":{"__isSmartRef__":true,"id":9256},"_Extent":{"__isSmartRef__":true,"id":9257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9261":{"morph":{"__isSmartRef__":true,"id":9253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9263":{"onMouseUp":{"__isSmartRef__":true,"id":9264},"toggle":{"__isSmartRef__":true,"id":9271}},"9264":{"varMapping":{"__isSmartRef__":true,"id":9265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9265":{"this":{"__isSmartRef__":true,"id":9253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9266}},"9266":{"$super":{"__isSmartRef__":true,"id":9267}},"9267":{"varMapping":{"__isSmartRef__":true,"id":9268},"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":9269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9268":{"obj":{"__isSmartRef__":true,"id":9253},"name":"onMouseUp"},"9269":{},"9270":{},"9271":{"varMapping":{"__isSmartRef__":true,"id":9272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9272":{"this":{"__isSmartRef__":true,"id":9253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9273}},"9273":{"$super":{"__isSmartRef__":true,"id":9274}},"9274":{"varMapping":{"__isSmartRef__":true,"id":9275},"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":9276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9275":{"obj":{"__isSmartRef__":true,"id":9253},"name":"toggle"},"9276":{},"9277":{},"9278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9279},"id":332,"renderContextTable":{"__isSmartRef__":true,"id":9283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9284},{"__isSmartRef__":true,"id":9286}],"eventHandler":{"__isSmartRef__":true,"id":9288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9289},"priorExtent":{"__isSmartRef__":true,"id":9290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9279":{"_Position":{"__isSmartRef__":true,"id":9280},"renderContextTable":{"__isSmartRef__":true,"id":9281},"_Extent":{"__isSmartRef__":true,"id":9282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9282":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9284":{"style":{"__isSmartRef__":true,"id":9285},"chunkOwner":{"__isSmartRef__":true,"id":9278},"storedString":"showNetworkExamples","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9286":{"style":{"__isSmartRef__":true,"id":9287},"chunkOwner":{"__isSmartRef__":true,"id":9278},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9288":{"morph":{"__isSmartRef__":true,"id":9278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9290":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9291":{"layoutText":{"__isSmartRef__":true,"id":9292}},"9292":{"varMapping":{"__isSmartRef__":true,"id":9293},"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":9294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9293":{"this":{"__isSmartRef__":true,"id":9278}},"9294":{},"9295":{"_Position":{"__isSmartRef__":true,"id":9296},"renderContextTable":{"__isSmartRef__":true,"id":9297},"_Extent":{"__isSmartRef__":true,"id":9298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9301":{"morph":{"__isSmartRef__":true,"id":9252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9302":{"resizeWidth":true},"9303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9305":{"updateExpanderColor":{"__isSmartRef__":true,"id":9306},"onMouseDown":{"__isSmartRef__":true,"id":9309},"onMouseUp":{"__isSmartRef__":true,"id":9316},"isRoot":{"__isSmartRef__":true,"id":9323},"displayValue":{"__isSmartRef__":true,"id":9326},"update":{"__isSmartRef__":true,"id":9329}},"9306":{"varMapping":{"__isSmartRef__":true,"id":9307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9307":{"this":{"__isSmartRef__":true,"id":9252}},"9308":{},"9309":{"varMapping":{"__isSmartRef__":true,"id":9310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9310":{"this":{"__isSmartRef__":true,"id":9252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9311}},"9311":{"$super":{"__isSmartRef__":true,"id":9312}},"9312":{"varMapping":{"__isSmartRef__":true,"id":9313},"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":9314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9313":{"obj":{"__isSmartRef__":true,"id":9252},"name":"onMouseDown"},"9314":{},"9315":{},"9316":{"varMapping":{"__isSmartRef__":true,"id":9317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9317":{"this":{"__isSmartRef__":true,"id":9252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9318}},"9318":{"$super":{"__isSmartRef__":true,"id":9319}},"9319":{"varMapping":{"__isSmartRef__":true,"id":9320},"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":9321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9320":{"obj":{"__isSmartRef__":true,"id":9252},"name":"onMouseUp"},"9321":{},"9322":{},"9323":{"varMapping":{"__isSmartRef__":true,"id":9324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9324":{"this":{"__isSmartRef__":true,"id":9252}},"9325":{},"9326":{"varMapping":{"__isSmartRef__":true,"id":9327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9327":{"this":{"__isSmartRef__":true,"id":9252}},"9328":{},"9329":{"varMapping":{"__isSmartRef__":true,"id":9330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9330":{"this":{"__isSmartRef__":true,"id":9252}},"9331":{},"9332":{"_Position":{"__isSmartRef__":true,"id":9333},"renderContextTable":{"__isSmartRef__":true,"id":9334},"_Extent":{"__isSmartRef__":true,"id":9335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9338":{"morph":{"__isSmartRef__":true,"id":9251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9339":{"layouter":{"__isSmartRef__":true,"id":9340},"resizeWidth":true},"9340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9342":{"x":0,"y":1420,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9344}},"9344":{"varMapping":{"__isSmartRef__":true,"id":9345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9345":{"this":{"__isSmartRef__":true,"id":9251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9346}},"9346":{"$super":{"__isSmartRef__":true,"id":9347}},"9347":{"varMapping":{"__isSmartRef__":true,"id":9348},"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":9349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9348":{"obj":{"__isSmartRef__":true,"id":9251},"name":"getLayoutableSubmorphs"},"9349":{},"9350":{},"9351":{"submorphs":[{"__isSmartRef__":true,"id":9352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9432},"id":337,"renderContextTable":{"__isSmartRef__":true,"id":9437},"eventHandler":{"__isSmartRef__":true,"id":9438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9352":{"submorphs":[{"__isSmartRef__":true,"id":9353},{"__isSmartRef__":true,"id":9378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9395},"id":334,"renderContextTable":{"__isSmartRef__":true,"id":9400},"eventHandler":{"__isSmartRef__":true,"id":9401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9402},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showPageNumber","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9353},"text":{"__isSmartRef__":true,"id":9378},"owner":{"__isSmartRef__":true,"id":9351},"_Position":{"__isSmartRef__":true,"id":9403},"priorExtent":{"__isSmartRef__":true,"id":9404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9354},"id":335,"renderContextTable":{"__isSmartRef__":true,"id":9360},"eventHandler":{"__isSmartRef__":true,"id":9361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9354":{"_Position":{"__isSmartRef__":true,"id":9355},"renderContextTable":{"__isSmartRef__":true,"id":9356},"_Extent":{"__isSmartRef__":true,"id":9357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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":9353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9363":{"onMouseUp":{"__isSmartRef__":true,"id":9364},"toggle":{"__isSmartRef__":true,"id":9371}},"9364":{"varMapping":{"__isSmartRef__":true,"id":9365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9365":{"this":{"__isSmartRef__":true,"id":9353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9366}},"9366":{"$super":{"__isSmartRef__":true,"id":9367}},"9367":{"varMapping":{"__isSmartRef__":true,"id":9368},"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":9369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9368":{"obj":{"__isSmartRef__":true,"id":9353},"name":"onMouseUp"},"9369":{},"9370":{},"9371":{"varMapping":{"__isSmartRef__":true,"id":9372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9372":{"this":{"__isSmartRef__":true,"id":9353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9373}},"9373":{"$super":{"__isSmartRef__":true,"id":9374}},"9374":{"varMapping":{"__isSmartRef__":true,"id":9375},"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":9376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9375":{"obj":{"__isSmartRef__":true,"id":9353},"name":"toggle"},"9376":{},"9377":{},"9378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9379},"id":336,"renderContextTable":{"__isSmartRef__":true,"id":9383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9384},{"__isSmartRef__":true,"id":9386}],"eventHandler":{"__isSmartRef__":true,"id":9388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9389},"priorExtent":{"__isSmartRef__":true,"id":9390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9379":{"_Position":{"__isSmartRef__":true,"id":9380},"renderContextTable":{"__isSmartRef__":true,"id":9381},"_Extent":{"__isSmartRef__":true,"id":9382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9382":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9384":{"style":{"__isSmartRef__":true,"id":9385},"chunkOwner":{"__isSmartRef__":true,"id":9378},"storedString":"showPageNumber","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9386":{"style":{"__isSmartRef__":true,"id":9387},"chunkOwner":{"__isSmartRef__":true,"id":9378},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9388":{"morph":{"__isSmartRef__":true,"id":9378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9390":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9391":{"layoutText":{"__isSmartRef__":true,"id":9392}},"9392":{"varMapping":{"__isSmartRef__":true,"id":9393},"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":9394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9393":{"this":{"__isSmartRef__":true,"id":9378}},"9394":{},"9395":{"_Position":{"__isSmartRef__":true,"id":9396},"renderContextTable":{"__isSmartRef__":true,"id":9397},"_Extent":{"__isSmartRef__":true,"id":9398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9401":{"morph":{"__isSmartRef__":true,"id":9352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9402":{"resizeWidth":true},"9403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9405":{"updateExpanderColor":{"__isSmartRef__":true,"id":9406},"onMouseDown":{"__isSmartRef__":true,"id":9409},"onMouseUp":{"__isSmartRef__":true,"id":9416},"isRoot":{"__isSmartRef__":true,"id":9423},"displayValue":{"__isSmartRef__":true,"id":9426},"update":{"__isSmartRef__":true,"id":9429}},"9406":{"varMapping":{"__isSmartRef__":true,"id":9407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9407":{"this":{"__isSmartRef__":true,"id":9352}},"9408":{},"9409":{"varMapping":{"__isSmartRef__":true,"id":9410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9410":{"this":{"__isSmartRef__":true,"id":9352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9411}},"9411":{"$super":{"__isSmartRef__":true,"id":9412}},"9412":{"varMapping":{"__isSmartRef__":true,"id":9413},"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":9414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9413":{"obj":{"__isSmartRef__":true,"id":9352},"name":"onMouseDown"},"9414":{},"9415":{},"9416":{"varMapping":{"__isSmartRef__":true,"id":9417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9417":{"this":{"__isSmartRef__":true,"id":9352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9418}},"9418":{"$super":{"__isSmartRef__":true,"id":9419}},"9419":{"varMapping":{"__isSmartRef__":true,"id":9420},"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":9421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9420":{"obj":{"__isSmartRef__":true,"id":9352},"name":"onMouseUp"},"9421":{},"9422":{},"9423":{"varMapping":{"__isSmartRef__":true,"id":9424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9424":{"this":{"__isSmartRef__":true,"id":9352}},"9425":{},"9426":{"varMapping":{"__isSmartRef__":true,"id":9427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9427":{"this":{"__isSmartRef__":true,"id":9352}},"9428":{},"9429":{"varMapping":{"__isSmartRef__":true,"id":9430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9430":{"this":{"__isSmartRef__":true,"id":9352}},"9431":{},"9432":{"_Position":{"__isSmartRef__":true,"id":9433},"renderContextTable":{"__isSmartRef__":true,"id":9434},"_Extent":{"__isSmartRef__":true,"id":9435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9438":{"morph":{"__isSmartRef__":true,"id":9351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9439":{"layouter":{"__isSmartRef__":true,"id":9440},"resizeWidth":true},"9440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9442":{"x":0,"y":1440,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9444}},"9444":{"varMapping":{"__isSmartRef__":true,"id":9445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9445":{"this":{"__isSmartRef__":true,"id":9351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9446}},"9446":{"$super":{"__isSmartRef__":true,"id":9447}},"9447":{"varMapping":{"__isSmartRef__":true,"id":9448},"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":9449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9448":{"obj":{"__isSmartRef__":true,"id":9351},"name":"getLayoutableSubmorphs"},"9449":{},"9450":{},"9451":{"submorphs":[{"__isSmartRef__":true,"id":9452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9532},"id":341,"renderContextTable":{"__isSmartRef__":true,"id":9537},"eventHandler":{"__isSmartRef__":true,"id":9538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9452":{"submorphs":[{"__isSmartRef__":true,"id":9453},{"__isSmartRef__":true,"id":9478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9495},"id":338,"renderContextTable":{"__isSmartRef__":true,"id":9500},"eventHandler":{"__isSmartRef__":true,"id":9501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9502},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showPenScript","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9453},"text":{"__isSmartRef__":true,"id":9478},"owner":{"__isSmartRef__":true,"id":9451},"_Position":{"__isSmartRef__":true,"id":9503},"priorExtent":{"__isSmartRef__":true,"id":9504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9454},"id":339,"renderContextTable":{"__isSmartRef__":true,"id":9460},"eventHandler":{"__isSmartRef__":true,"id":9461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9454":{"_Position":{"__isSmartRef__":true,"id":9455},"renderContextTable":{"__isSmartRef__":true,"id":9456},"_Extent":{"__isSmartRef__":true,"id":9457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9461":{"morph":{"__isSmartRef__":true,"id":9453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9463":{"onMouseUp":{"__isSmartRef__":true,"id":9464},"toggle":{"__isSmartRef__":true,"id":9471}},"9464":{"varMapping":{"__isSmartRef__":true,"id":9465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9465":{"this":{"__isSmartRef__":true,"id":9453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9466}},"9466":{"$super":{"__isSmartRef__":true,"id":9467}},"9467":{"varMapping":{"__isSmartRef__":true,"id":9468},"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":9469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9468":{"obj":{"__isSmartRef__":true,"id":9453},"name":"onMouseUp"},"9469":{},"9470":{},"9471":{"varMapping":{"__isSmartRef__":true,"id":9472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9472":{"this":{"__isSmartRef__":true,"id":9453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9473}},"9473":{"$super":{"__isSmartRef__":true,"id":9474}},"9474":{"varMapping":{"__isSmartRef__":true,"id":9475},"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":9476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9475":{"obj":{"__isSmartRef__":true,"id":9453},"name":"toggle"},"9476":{},"9477":{},"9478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9479},"id":340,"renderContextTable":{"__isSmartRef__":true,"id":9483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9484},{"__isSmartRef__":true,"id":9486}],"eventHandler":{"__isSmartRef__":true,"id":9488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9489},"priorExtent":{"__isSmartRef__":true,"id":9490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9479":{"_Position":{"__isSmartRef__":true,"id":9480},"renderContextTable":{"__isSmartRef__":true,"id":9481},"_Extent":{"__isSmartRef__":true,"id":9482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9482":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9484":{"style":{"__isSmartRef__":true,"id":9485},"chunkOwner":{"__isSmartRef__":true,"id":9478},"storedString":"showPenScript","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9486":{"style":{"__isSmartRef__":true,"id":9487},"chunkOwner":{"__isSmartRef__":true,"id":9478},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9488":{"morph":{"__isSmartRef__":true,"id":9478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9490":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9491":{"layoutText":{"__isSmartRef__":true,"id":9492}},"9492":{"varMapping":{"__isSmartRef__":true,"id":9493},"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":9494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9493":{"this":{"__isSmartRef__":true,"id":9478}},"9494":{},"9495":{"_Position":{"__isSmartRef__":true,"id":9496},"renderContextTable":{"__isSmartRef__":true,"id":9497},"_Extent":{"__isSmartRef__":true,"id":9498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9501":{"morph":{"__isSmartRef__":true,"id":9452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9502":{"resizeWidth":true},"9503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9505":{"updateExpanderColor":{"__isSmartRef__":true,"id":9506},"onMouseDown":{"__isSmartRef__":true,"id":9509},"onMouseUp":{"__isSmartRef__":true,"id":9516},"isRoot":{"__isSmartRef__":true,"id":9523},"displayValue":{"__isSmartRef__":true,"id":9526},"update":{"__isSmartRef__":true,"id":9529}},"9506":{"varMapping":{"__isSmartRef__":true,"id":9507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9507":{"this":{"__isSmartRef__":true,"id":9452}},"9508":{},"9509":{"varMapping":{"__isSmartRef__":true,"id":9510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9510":{"this":{"__isSmartRef__":true,"id":9452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9511}},"9511":{"$super":{"__isSmartRef__":true,"id":9512}},"9512":{"varMapping":{"__isSmartRef__":true,"id":9513},"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":9514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9513":{"obj":{"__isSmartRef__":true,"id":9452},"name":"onMouseDown"},"9514":{},"9515":{},"9516":{"varMapping":{"__isSmartRef__":true,"id":9517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9517":{"this":{"__isSmartRef__":true,"id":9452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9518}},"9518":{"$super":{"__isSmartRef__":true,"id":9519}},"9519":{"varMapping":{"__isSmartRef__":true,"id":9520},"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":9521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9520":{"obj":{"__isSmartRef__":true,"id":9452},"name":"onMouseUp"},"9521":{},"9522":{},"9523":{"varMapping":{"__isSmartRef__":true,"id":9524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9524":{"this":{"__isSmartRef__":true,"id":9452}},"9525":{},"9526":{"varMapping":{"__isSmartRef__":true,"id":9527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9527":{"this":{"__isSmartRef__":true,"id":9452}},"9528":{},"9529":{"varMapping":{"__isSmartRef__":true,"id":9530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9530":{"this":{"__isSmartRef__":true,"id":9452}},"9531":{},"9532":{"_Position":{"__isSmartRef__":true,"id":9533},"renderContextTable":{"__isSmartRef__":true,"id":9534},"_Extent":{"__isSmartRef__":true,"id":9535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9538":{"morph":{"__isSmartRef__":true,"id":9451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9539":{"layouter":{"__isSmartRef__":true,"id":9540},"resizeWidth":true},"9540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9542":{"x":0,"y":1460,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9544}},"9544":{"varMapping":{"__isSmartRef__":true,"id":9545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9545":{"this":{"__isSmartRef__":true,"id":9451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9546}},"9546":{"$super":{"__isSmartRef__":true,"id":9547}},"9547":{"varMapping":{"__isSmartRef__":true,"id":9548},"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":9549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9548":{"obj":{"__isSmartRef__":true,"id":9451},"name":"getLayoutableSubmorphs"},"9549":{},"9550":{},"9551":{"submorphs":[{"__isSmartRef__":true,"id":9552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9632},"id":345,"renderContextTable":{"__isSmartRef__":true,"id":9637},"eventHandler":{"__isSmartRef__":true,"id":9638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9552":{"submorphs":[{"__isSmartRef__":true,"id":9553},{"__isSmartRef__":true,"id":9578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9595},"id":342,"renderContextTable":{"__isSmartRef__":true,"id":9600},"eventHandler":{"__isSmartRef__":true,"id":9601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9602},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showSampleMorphs","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9553},"text":{"__isSmartRef__":true,"id":9578},"owner":{"__isSmartRef__":true,"id":9551},"_Position":{"__isSmartRef__":true,"id":9603},"priorExtent":{"__isSmartRef__":true,"id":9604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9554},"id":343,"renderContextTable":{"__isSmartRef__":true,"id":9560},"eventHandler":{"__isSmartRef__":true,"id":9561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9554":{"_Position":{"__isSmartRef__":true,"id":9555},"renderContextTable":{"__isSmartRef__":true,"id":9556},"_Extent":{"__isSmartRef__":true,"id":9557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9561":{"morph":{"__isSmartRef__":true,"id":9553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9563":{"onMouseUp":{"__isSmartRef__":true,"id":9564},"toggle":{"__isSmartRef__":true,"id":9571}},"9564":{"varMapping":{"__isSmartRef__":true,"id":9565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9565":{"this":{"__isSmartRef__":true,"id":9553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9566}},"9566":{"$super":{"__isSmartRef__":true,"id":9567}},"9567":{"varMapping":{"__isSmartRef__":true,"id":9568},"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":9569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9568":{"obj":{"__isSmartRef__":true,"id":9553},"name":"onMouseUp"},"9569":{},"9570":{},"9571":{"varMapping":{"__isSmartRef__":true,"id":9572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9572":{"this":{"__isSmartRef__":true,"id":9553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9573}},"9573":{"$super":{"__isSmartRef__":true,"id":9574}},"9574":{"varMapping":{"__isSmartRef__":true,"id":9575},"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":9576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9575":{"obj":{"__isSmartRef__":true,"id":9553},"name":"toggle"},"9576":{},"9577":{},"9578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9579},"id":344,"renderContextTable":{"__isSmartRef__":true,"id":9583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9584},{"__isSmartRef__":true,"id":9586}],"eventHandler":{"__isSmartRef__":true,"id":9588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9589},"priorExtent":{"__isSmartRef__":true,"id":9590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9579":{"_Position":{"__isSmartRef__":true,"id":9580},"renderContextTable":{"__isSmartRef__":true,"id":9581},"_Extent":{"__isSmartRef__":true,"id":9582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9582":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9584":{"style":{"__isSmartRef__":true,"id":9585},"chunkOwner":{"__isSmartRef__":true,"id":9578},"storedString":"showSampleMorphs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9586":{"style":{"__isSmartRef__":true,"id":9587},"chunkOwner":{"__isSmartRef__":true,"id":9578},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9588":{"morph":{"__isSmartRef__":true,"id":9578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9590":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9591":{"layoutText":{"__isSmartRef__":true,"id":9592}},"9592":{"varMapping":{"__isSmartRef__":true,"id":9593},"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":9594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9593":{"this":{"__isSmartRef__":true,"id":9578}},"9594":{},"9595":{"_Position":{"__isSmartRef__":true,"id":9596},"renderContextTable":{"__isSmartRef__":true,"id":9597},"_Extent":{"__isSmartRef__":true,"id":9598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9601":{"morph":{"__isSmartRef__":true,"id":9552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9602":{"resizeWidth":true},"9603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9605":{"updateExpanderColor":{"__isSmartRef__":true,"id":9606},"onMouseDown":{"__isSmartRef__":true,"id":9609},"onMouseUp":{"__isSmartRef__":true,"id":9616},"isRoot":{"__isSmartRef__":true,"id":9623},"displayValue":{"__isSmartRef__":true,"id":9626},"update":{"__isSmartRef__":true,"id":9629}},"9606":{"varMapping":{"__isSmartRef__":true,"id":9607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9607":{"this":{"__isSmartRef__":true,"id":9552}},"9608":{},"9609":{"varMapping":{"__isSmartRef__":true,"id":9610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9610":{"this":{"__isSmartRef__":true,"id":9552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9611}},"9611":{"$super":{"__isSmartRef__":true,"id":9612}},"9612":{"varMapping":{"__isSmartRef__":true,"id":9613},"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":9614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9613":{"obj":{"__isSmartRef__":true,"id":9552},"name":"onMouseDown"},"9614":{},"9615":{},"9616":{"varMapping":{"__isSmartRef__":true,"id":9617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9617":{"this":{"__isSmartRef__":true,"id":9552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9618}},"9618":{"$super":{"__isSmartRef__":true,"id":9619}},"9619":{"varMapping":{"__isSmartRef__":true,"id":9620},"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":9621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9620":{"obj":{"__isSmartRef__":true,"id":9552},"name":"onMouseUp"},"9621":{},"9622":{},"9623":{"varMapping":{"__isSmartRef__":true,"id":9624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9624":{"this":{"__isSmartRef__":true,"id":9552}},"9625":{},"9626":{"varMapping":{"__isSmartRef__":true,"id":9627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9627":{"this":{"__isSmartRef__":true,"id":9552}},"9628":{},"9629":{"varMapping":{"__isSmartRef__":true,"id":9630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9630":{"this":{"__isSmartRef__":true,"id":9552}},"9631":{},"9632":{"_Position":{"__isSmartRef__":true,"id":9633},"renderContextTable":{"__isSmartRef__":true,"id":9634},"_Extent":{"__isSmartRef__":true,"id":9635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9638":{"morph":{"__isSmartRef__":true,"id":9551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9639":{"layouter":{"__isSmartRef__":true,"id":9640},"resizeWidth":true},"9640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9642":{"x":0,"y":1480,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9644}},"9644":{"varMapping":{"__isSmartRef__":true,"id":9645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9645":{"this":{"__isSmartRef__":true,"id":9551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9646}},"9646":{"$super":{"__isSmartRef__":true,"id":9647}},"9647":{"varMapping":{"__isSmartRef__":true,"id":9648},"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":9649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9648":{"obj":{"__isSmartRef__":true,"id":9551},"name":"getLayoutableSubmorphs"},"9649":{},"9650":{},"9651":{"submorphs":[{"__isSmartRef__":true,"id":9652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9732},"id":349,"renderContextTable":{"__isSmartRef__":true,"id":9737},"eventHandler":{"__isSmartRef__":true,"id":9738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9652":{"submorphs":[{"__isSmartRef__":true,"id":9653},{"__isSmartRef__":true,"id":9678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9695},"id":346,"renderContextTable":{"__isSmartRef__":true,"id":9700},"eventHandler":{"__isSmartRef__":true,"id":9701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9702},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showSlideWorld","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9653},"text":{"__isSmartRef__":true,"id":9678},"owner":{"__isSmartRef__":true,"id":9651},"_Position":{"__isSmartRef__":true,"id":9703},"priorExtent":{"__isSmartRef__":true,"id":9704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9654},"id":347,"renderContextTable":{"__isSmartRef__":true,"id":9660},"eventHandler":{"__isSmartRef__":true,"id":9661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9654":{"_Position":{"__isSmartRef__":true,"id":9655},"renderContextTable":{"__isSmartRef__":true,"id":9656},"_Extent":{"__isSmartRef__":true,"id":9657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9661":{"morph":{"__isSmartRef__":true,"id":9653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9663":{"onMouseUp":{"__isSmartRef__":true,"id":9664},"toggle":{"__isSmartRef__":true,"id":9671}},"9664":{"varMapping":{"__isSmartRef__":true,"id":9665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9665":{"this":{"__isSmartRef__":true,"id":9653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9666}},"9666":{"$super":{"__isSmartRef__":true,"id":9667}},"9667":{"varMapping":{"__isSmartRef__":true,"id":9668},"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":9669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9668":{"obj":{"__isSmartRef__":true,"id":9653},"name":"onMouseUp"},"9669":{},"9670":{},"9671":{"varMapping":{"__isSmartRef__":true,"id":9672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9672":{"this":{"__isSmartRef__":true,"id":9653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9673}},"9673":{"$super":{"__isSmartRef__":true,"id":9674}},"9674":{"varMapping":{"__isSmartRef__":true,"id":9675},"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":9676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9675":{"obj":{"__isSmartRef__":true,"id":9653},"name":"toggle"},"9676":{},"9677":{},"9678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9679},"id":348,"renderContextTable":{"__isSmartRef__":true,"id":9683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9684},{"__isSmartRef__":true,"id":9686}],"eventHandler":{"__isSmartRef__":true,"id":9688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9689},"priorExtent":{"__isSmartRef__":true,"id":9690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9679":{"_Position":{"__isSmartRef__":true,"id":9680},"renderContextTable":{"__isSmartRef__":true,"id":9681},"_Extent":{"__isSmartRef__":true,"id":9682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9682":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9684":{"style":{"__isSmartRef__":true,"id":9685},"chunkOwner":{"__isSmartRef__":true,"id":9678},"storedString":"showSlideWorld","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9686":{"style":{"__isSmartRef__":true,"id":9687},"chunkOwner":{"__isSmartRef__":true,"id":9678},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9688":{"morph":{"__isSmartRef__":true,"id":9678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9690":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9691":{"layoutText":{"__isSmartRef__":true,"id":9692}},"9692":{"varMapping":{"__isSmartRef__":true,"id":9693},"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":9694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9693":{"this":{"__isSmartRef__":true,"id":9678}},"9694":{},"9695":{"_Position":{"__isSmartRef__":true,"id":9696},"renderContextTable":{"__isSmartRef__":true,"id":9697},"_Extent":{"__isSmartRef__":true,"id":9698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9701":{"morph":{"__isSmartRef__":true,"id":9652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9702":{"resizeWidth":true},"9703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9705":{"updateExpanderColor":{"__isSmartRef__":true,"id":9706},"onMouseDown":{"__isSmartRef__":true,"id":9709},"onMouseUp":{"__isSmartRef__":true,"id":9716},"isRoot":{"__isSmartRef__":true,"id":9723},"displayValue":{"__isSmartRef__":true,"id":9726},"update":{"__isSmartRef__":true,"id":9729}},"9706":{"varMapping":{"__isSmartRef__":true,"id":9707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9707":{"this":{"__isSmartRef__":true,"id":9652}},"9708":{},"9709":{"varMapping":{"__isSmartRef__":true,"id":9710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9710":{"this":{"__isSmartRef__":true,"id":9652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9711}},"9711":{"$super":{"__isSmartRef__":true,"id":9712}},"9712":{"varMapping":{"__isSmartRef__":true,"id":9713},"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":9714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9713":{"obj":{"__isSmartRef__":true,"id":9652},"name":"onMouseDown"},"9714":{},"9715":{},"9716":{"varMapping":{"__isSmartRef__":true,"id":9717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9717":{"this":{"__isSmartRef__":true,"id":9652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9718}},"9718":{"$super":{"__isSmartRef__":true,"id":9719}},"9719":{"varMapping":{"__isSmartRef__":true,"id":9720},"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":9721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9720":{"obj":{"__isSmartRef__":true,"id":9652},"name":"onMouseUp"},"9721":{},"9722":{},"9723":{"varMapping":{"__isSmartRef__":true,"id":9724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9724":{"this":{"__isSmartRef__":true,"id":9652}},"9725":{},"9726":{"varMapping":{"__isSmartRef__":true,"id":9727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9727":{"this":{"__isSmartRef__":true,"id":9652}},"9728":{},"9729":{"varMapping":{"__isSmartRef__":true,"id":9730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9730":{"this":{"__isSmartRef__":true,"id":9652}},"9731":{},"9732":{"_Position":{"__isSmartRef__":true,"id":9733},"renderContextTable":{"__isSmartRef__":true,"id":9734},"_Extent":{"__isSmartRef__":true,"id":9735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9738":{"morph":{"__isSmartRef__":true,"id":9651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9739":{"layouter":{"__isSmartRef__":true,"id":9740},"resizeWidth":true},"9740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9742":{"x":0,"y":1500,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9744}},"9744":{"varMapping":{"__isSmartRef__":true,"id":9745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9745":{"this":{"__isSmartRef__":true,"id":9651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9746}},"9746":{"$super":{"__isSmartRef__":true,"id":9747}},"9747":{"varMapping":{"__isSmartRef__":true,"id":9748},"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":9749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9748":{"obj":{"__isSmartRef__":true,"id":9651},"name":"getLayoutableSubmorphs"},"9749":{},"9750":{},"9751":{"submorphs":[{"__isSmartRef__":true,"id":9752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9832},"id":353,"renderContextTable":{"__isSmartRef__":true,"id":9837},"eventHandler":{"__isSmartRef__":true,"id":9838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9752":{"submorphs":[{"__isSmartRef__":true,"id":9753},{"__isSmartRef__":true,"id":9778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9795},"id":350,"renderContextTable":{"__isSmartRef__":true,"id":9800},"eventHandler":{"__isSmartRef__":true,"id":9801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9802},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showStar","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9753},"text":{"__isSmartRef__":true,"id":9778},"owner":{"__isSmartRef__":true,"id":9751},"_Position":{"__isSmartRef__":true,"id":9803},"priorExtent":{"__isSmartRef__":true,"id":9804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9754},"id":351,"renderContextTable":{"__isSmartRef__":true,"id":9760},"eventHandler":{"__isSmartRef__":true,"id":9761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9754":{"_Position":{"__isSmartRef__":true,"id":9755},"renderContextTable":{"__isSmartRef__":true,"id":9756},"_Extent":{"__isSmartRef__":true,"id":9757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9761":{"morph":{"__isSmartRef__":true,"id":9753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9763":{"onMouseUp":{"__isSmartRef__":true,"id":9764},"toggle":{"__isSmartRef__":true,"id":9771}},"9764":{"varMapping":{"__isSmartRef__":true,"id":9765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9765":{"this":{"__isSmartRef__":true,"id":9753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9766}},"9766":{"$super":{"__isSmartRef__":true,"id":9767}},"9767":{"varMapping":{"__isSmartRef__":true,"id":9768},"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":9769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9768":{"obj":{"__isSmartRef__":true,"id":9753},"name":"onMouseUp"},"9769":{},"9770":{},"9771":{"varMapping":{"__isSmartRef__":true,"id":9772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9772":{"this":{"__isSmartRef__":true,"id":9753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9773}},"9773":{"$super":{"__isSmartRef__":true,"id":9774}},"9774":{"varMapping":{"__isSmartRef__":true,"id":9775},"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":9776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9775":{"obj":{"__isSmartRef__":true,"id":9753},"name":"toggle"},"9776":{},"9777":{},"9778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9779},"id":352,"renderContextTable":{"__isSmartRef__":true,"id":9783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9784},{"__isSmartRef__":true,"id":9786}],"eventHandler":{"__isSmartRef__":true,"id":9788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9789},"priorExtent":{"__isSmartRef__":true,"id":9790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9779":{"_Position":{"__isSmartRef__":true,"id":9780},"renderContextTable":{"__isSmartRef__":true,"id":9781},"_Extent":{"__isSmartRef__":true,"id":9782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9782":{"x":113,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9784":{"style":{"__isSmartRef__":true,"id":9785},"chunkOwner":{"__isSmartRef__":true,"id":9778},"storedString":"showStar","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9786":{"style":{"__isSmartRef__":true,"id":9787},"chunkOwner":{"__isSmartRef__":true,"id":9778},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9788":{"morph":{"__isSmartRef__":true,"id":9778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9790":{"x":105,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9791":{"layoutText":{"__isSmartRef__":true,"id":9792}},"9792":{"varMapping":{"__isSmartRef__":true,"id":9793},"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":9794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9793":{"this":{"__isSmartRef__":true,"id":9778}},"9794":{},"9795":{"_Position":{"__isSmartRef__":true,"id":9796},"renderContextTable":{"__isSmartRef__":true,"id":9797},"_Extent":{"__isSmartRef__":true,"id":9798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9801":{"morph":{"__isSmartRef__":true,"id":9752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9802":{"resizeWidth":true},"9803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9805":{"updateExpanderColor":{"__isSmartRef__":true,"id":9806},"onMouseDown":{"__isSmartRef__":true,"id":9809},"onMouseUp":{"__isSmartRef__":true,"id":9816},"isRoot":{"__isSmartRef__":true,"id":9823},"displayValue":{"__isSmartRef__":true,"id":9826},"update":{"__isSmartRef__":true,"id":9829}},"9806":{"varMapping":{"__isSmartRef__":true,"id":9807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9807":{"this":{"__isSmartRef__":true,"id":9752}},"9808":{},"9809":{"varMapping":{"__isSmartRef__":true,"id":9810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9810":{"this":{"__isSmartRef__":true,"id":9752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9811}},"9811":{"$super":{"__isSmartRef__":true,"id":9812}},"9812":{"varMapping":{"__isSmartRef__":true,"id":9813},"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":9814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9813":{"obj":{"__isSmartRef__":true,"id":9752},"name":"onMouseDown"},"9814":{},"9815":{},"9816":{"varMapping":{"__isSmartRef__":true,"id":9817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9817":{"this":{"__isSmartRef__":true,"id":9752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9818}},"9818":{"$super":{"__isSmartRef__":true,"id":9819}},"9819":{"varMapping":{"__isSmartRef__":true,"id":9820},"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":9821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9820":{"obj":{"__isSmartRef__":true,"id":9752},"name":"onMouseUp"},"9821":{},"9822":{},"9823":{"varMapping":{"__isSmartRef__":true,"id":9824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9824":{"this":{"__isSmartRef__":true,"id":9752}},"9825":{},"9826":{"varMapping":{"__isSmartRef__":true,"id":9827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9827":{"this":{"__isSmartRef__":true,"id":9752}},"9828":{},"9829":{"varMapping":{"__isSmartRef__":true,"id":9830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9830":{"this":{"__isSmartRef__":true,"id":9752}},"9831":{},"9832":{"_Position":{"__isSmartRef__":true,"id":9833},"renderContextTable":{"__isSmartRef__":true,"id":9834},"_Extent":{"__isSmartRef__":true,"id":9835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9838":{"morph":{"__isSmartRef__":true,"id":9751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9839":{"layouter":{"__isSmartRef__":true,"id":9840},"resizeWidth":true},"9840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9842":{"x":0,"y":1520,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9844}},"9844":{"varMapping":{"__isSmartRef__":true,"id":9845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9845":{"this":{"__isSmartRef__":true,"id":9751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9846}},"9846":{"$super":{"__isSmartRef__":true,"id":9847}},"9847":{"varMapping":{"__isSmartRef__":true,"id":9848},"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":9849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9848":{"obj":{"__isSmartRef__":true,"id":9751},"name":"getLayoutableSubmorphs"},"9849":{},"9850":{},"9851":{"submorphs":[{"__isSmartRef__":true,"id":9852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9932},"id":357,"renderContextTable":{"__isSmartRef__":true,"id":9937},"eventHandler":{"__isSmartRef__":true,"id":9938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":9942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9852":{"submorphs":[{"__isSmartRef__":true,"id":9853},{"__isSmartRef__":true,"id":9878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9895},"id":354,"renderContextTable":{"__isSmartRef__":true,"id":9900},"eventHandler":{"__isSmartRef__":true,"id":9901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9902},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showSystemBrowser","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9853},"text":{"__isSmartRef__":true,"id":9878},"owner":{"__isSmartRef__":true,"id":9851},"_Position":{"__isSmartRef__":true,"id":9903},"priorExtent":{"__isSmartRef__":true,"id":9904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9854},"id":355,"renderContextTable":{"__isSmartRef__":true,"id":9860},"eventHandler":{"__isSmartRef__":true,"id":9861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9854":{"_Position":{"__isSmartRef__":true,"id":9855},"renderContextTable":{"__isSmartRef__":true,"id":9856},"_Extent":{"__isSmartRef__":true,"id":9857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9861":{"morph":{"__isSmartRef__":true,"id":9853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9863":{"onMouseUp":{"__isSmartRef__":true,"id":9864},"toggle":{"__isSmartRef__":true,"id":9871}},"9864":{"varMapping":{"__isSmartRef__":true,"id":9865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9865":{"this":{"__isSmartRef__":true,"id":9853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9866}},"9866":{"$super":{"__isSmartRef__":true,"id":9867}},"9867":{"varMapping":{"__isSmartRef__":true,"id":9868},"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":9869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9868":{"obj":{"__isSmartRef__":true,"id":9853},"name":"onMouseUp"},"9869":{},"9870":{},"9871":{"varMapping":{"__isSmartRef__":true,"id":9872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9872":{"this":{"__isSmartRef__":true,"id":9853},"__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 alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9875":{"obj":{"__isSmartRef__":true,"id":9853},"name":"toggle"},"9876":{},"9877":{},"9878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9879},"id":356,"renderContextTable":{"__isSmartRef__":true,"id":9883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9884},{"__isSmartRef__":true,"id":9886}],"eventHandler":{"__isSmartRef__":true,"id":9888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9889},"priorExtent":{"__isSmartRef__":true,"id":9890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9879":{"_Position":{"__isSmartRef__":true,"id":9880},"renderContextTable":{"__isSmartRef__":true,"id":9881},"_Extent":{"__isSmartRef__":true,"id":9882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9882":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9884":{"style":{"__isSmartRef__":true,"id":9885},"chunkOwner":{"__isSmartRef__":true,"id":9878},"storedString":"showSystemBrowser","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9886":{"style":{"__isSmartRef__":true,"id":9887},"chunkOwner":{"__isSmartRef__":true,"id":9878},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9888":{"morph":{"__isSmartRef__":true,"id":9878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9890":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9891":{"layoutText":{"__isSmartRef__":true,"id":9892}},"9892":{"varMapping":{"__isSmartRef__":true,"id":9893},"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":9894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9893":{"this":{"__isSmartRef__":true,"id":9878}},"9894":{},"9895":{"_Position":{"__isSmartRef__":true,"id":9896},"renderContextTable":{"__isSmartRef__":true,"id":9897},"_Extent":{"__isSmartRef__":true,"id":9898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9901":{"morph":{"__isSmartRef__":true,"id":9852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9902":{"resizeWidth":true},"9903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9905":{"updateExpanderColor":{"__isSmartRef__":true,"id":9906},"onMouseDown":{"__isSmartRef__":true,"id":9909},"onMouseUp":{"__isSmartRef__":true,"id":9916},"isRoot":{"__isSmartRef__":true,"id":9923},"displayValue":{"__isSmartRef__":true,"id":9926},"update":{"__isSmartRef__":true,"id":9929}},"9906":{"varMapping":{"__isSmartRef__":true,"id":9907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":9908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9907":{"this":{"__isSmartRef__":true,"id":9852}},"9908":{},"9909":{"varMapping":{"__isSmartRef__":true,"id":9910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9910":{"this":{"__isSmartRef__":true,"id":9852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9911}},"9911":{"$super":{"__isSmartRef__":true,"id":9912}},"9912":{"varMapping":{"__isSmartRef__":true,"id":9913},"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":9914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9913":{"obj":{"__isSmartRef__":true,"id":9852},"name":"onMouseDown"},"9914":{},"9915":{},"9916":{"varMapping":{"__isSmartRef__":true,"id":9917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9917":{"this":{"__isSmartRef__":true,"id":9852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9918}},"9918":{"$super":{"__isSmartRef__":true,"id":9919}},"9919":{"varMapping":{"__isSmartRef__":true,"id":9920},"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":9921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9920":{"obj":{"__isSmartRef__":true,"id":9852},"name":"onMouseUp"},"9921":{},"9922":{},"9923":{"varMapping":{"__isSmartRef__":true,"id":9924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9924":{"this":{"__isSmartRef__":true,"id":9852}},"9925":{},"9926":{"varMapping":{"__isSmartRef__":true,"id":9927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":9928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9927":{"this":{"__isSmartRef__":true,"id":9852}},"9928":{},"9929":{"varMapping":{"__isSmartRef__":true,"id":9930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9930":{"this":{"__isSmartRef__":true,"id":9852}},"9931":{},"9932":{"_Position":{"__isSmartRef__":true,"id":9933},"renderContextTable":{"__isSmartRef__":true,"id":9934},"_Extent":{"__isSmartRef__":true,"id":9935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9938":{"morph":{"__isSmartRef__":true,"id":9851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9939":{"layouter":{"__isSmartRef__":true,"id":9940},"resizeWidth":true},"9940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9942":{"x":0,"y":1540,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9944}},"9944":{"varMapping":{"__isSmartRef__":true,"id":9945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9945":{"this":{"__isSmartRef__":true,"id":9851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9946}},"9946":{"$super":{"__isSmartRef__":true,"id":9947}},"9947":{"varMapping":{"__isSmartRef__":true,"id":9948},"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":9949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9948":{"obj":{"__isSmartRef__":true,"id":9851},"name":"getLayoutableSubmorphs"},"9949":{},"9950":{},"9951":{"submorphs":[{"__isSmartRef__":true,"id":9952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10032},"id":361,"renderContextTable":{"__isSmartRef__":true,"id":10037},"eventHandler":{"__isSmartRef__":true,"id":10038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9952":{"submorphs":[{"__isSmartRef__":true,"id":9953},{"__isSmartRef__":true,"id":9978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9995},"id":358,"renderContextTable":{"__isSmartRef__":true,"id":10000},"eventHandler":{"__isSmartRef__":true,"id":10001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10002},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showTester","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":9953},"text":{"__isSmartRef__":true,"id":9978},"owner":{"__isSmartRef__":true,"id":9951},"_Position":{"__isSmartRef__":true,"id":10003},"priorExtent":{"__isSmartRef__":true,"id":10004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9954},"id":359,"renderContextTable":{"__isSmartRef__":true,"id":9960},"eventHandler":{"__isSmartRef__":true,"id":9961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9954":{"_Position":{"__isSmartRef__":true,"id":9955},"renderContextTable":{"__isSmartRef__":true,"id":9956},"_Extent":{"__isSmartRef__":true,"id":9957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":9959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9961":{"morph":{"__isSmartRef__":true,"id":9953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9963":{"onMouseUp":{"__isSmartRef__":true,"id":9964},"toggle":{"__isSmartRef__":true,"id":9971}},"9964":{"varMapping":{"__isSmartRef__":true,"id":9965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":9970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9965":{"this":{"__isSmartRef__":true,"id":9953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9966}},"9966":{"$super":{"__isSmartRef__":true,"id":9967}},"9967":{"varMapping":{"__isSmartRef__":true,"id":9968},"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":9969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9968":{"obj":{"__isSmartRef__":true,"id":9953},"name":"onMouseUp"},"9969":{},"9970":{},"9971":{"varMapping":{"__isSmartRef__":true,"id":9972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":9977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9972":{"this":{"__isSmartRef__":true,"id":9953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9973}},"9973":{"$super":{"__isSmartRef__":true,"id":9974}},"9974":{"varMapping":{"__isSmartRef__":true,"id":9975},"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":9976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9975":{"obj":{"__isSmartRef__":true,"id":9953},"name":"toggle"},"9976":{},"9977":{},"9978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9979},"id":360,"renderContextTable":{"__isSmartRef__":true,"id":9983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9984},{"__isSmartRef__":true,"id":9986}],"eventHandler":{"__isSmartRef__":true,"id":9988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9989},"priorExtent":{"__isSmartRef__":true,"id":9990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9979":{"_Position":{"__isSmartRef__":true,"id":9980},"renderContextTable":{"__isSmartRef__":true,"id":9981},"_Extent":{"__isSmartRef__":true,"id":9982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9982":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9984":{"style":{"__isSmartRef__":true,"id":9985},"chunkOwner":{"__isSmartRef__":true,"id":9978},"storedString":"showTester","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9986":{"style":{"__isSmartRef__":true,"id":9987},"chunkOwner":{"__isSmartRef__":true,"id":9978},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9988":{"morph":{"__isSmartRef__":true,"id":9978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9990":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9991":{"layoutText":{"__isSmartRef__":true,"id":9992}},"9992":{"varMapping":{"__isSmartRef__":true,"id":9993},"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":9994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9993":{"this":{"__isSmartRef__":true,"id":9978}},"9994":{},"9995":{"_Position":{"__isSmartRef__":true,"id":9996},"renderContextTable":{"__isSmartRef__":true,"id":9997},"_Extent":{"__isSmartRef__":true,"id":9998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10001":{"morph":{"__isSmartRef__":true,"id":9952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10002":{"resizeWidth":true},"10003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10005":{"updateExpanderColor":{"__isSmartRef__":true,"id":10006},"onMouseDown":{"__isSmartRef__":true,"id":10009},"onMouseUp":{"__isSmartRef__":true,"id":10016},"isRoot":{"__isSmartRef__":true,"id":10023},"displayValue":{"__isSmartRef__":true,"id":10026},"update":{"__isSmartRef__":true,"id":10029}},"10006":{"varMapping":{"__isSmartRef__":true,"id":10007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10007":{"this":{"__isSmartRef__":true,"id":9952}},"10008":{},"10009":{"varMapping":{"__isSmartRef__":true,"id":10010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10010":{"this":{"__isSmartRef__":true,"id":9952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10011}},"10011":{"$super":{"__isSmartRef__":true,"id":10012}},"10012":{"varMapping":{"__isSmartRef__":true,"id":10013},"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":10014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10013":{"obj":{"__isSmartRef__":true,"id":9952},"name":"onMouseDown"},"10014":{},"10015":{},"10016":{"varMapping":{"__isSmartRef__":true,"id":10017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10017":{"this":{"__isSmartRef__":true,"id":9952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10018}},"10018":{"$super":{"__isSmartRef__":true,"id":10019}},"10019":{"varMapping":{"__isSmartRef__":true,"id":10020},"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":10021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10020":{"obj":{"__isSmartRef__":true,"id":9952},"name":"onMouseUp"},"10021":{},"10022":{},"10023":{"varMapping":{"__isSmartRef__":true,"id":10024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10024":{"this":{"__isSmartRef__":true,"id":9952}},"10025":{},"10026":{"varMapping":{"__isSmartRef__":true,"id":10027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10027":{"this":{"__isSmartRef__":true,"id":9952}},"10028":{},"10029":{"varMapping":{"__isSmartRef__":true,"id":10030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10030":{"this":{"__isSmartRef__":true,"id":9952}},"10031":{},"10032":{"_Position":{"__isSmartRef__":true,"id":10033},"renderContextTable":{"__isSmartRef__":true,"id":10034},"_Extent":{"__isSmartRef__":true,"id":10035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10038":{"morph":{"__isSmartRef__":true,"id":9951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10039":{"layouter":{"__isSmartRef__":true,"id":10040},"resizeWidth":true},"10040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10042":{"x":0,"y":1560,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10044}},"10044":{"varMapping":{"__isSmartRef__":true,"id":10045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10045":{"this":{"__isSmartRef__":true,"id":9951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10046}},"10046":{"$super":{"__isSmartRef__":true,"id":10047}},"10047":{"varMapping":{"__isSmartRef__":true,"id":10048},"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":10049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10048":{"obj":{"__isSmartRef__":true,"id":9951},"name":"getLayoutableSubmorphs"},"10049":{},"10050":{},"10051":{"submorphs":[{"__isSmartRef__":true,"id":10052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10132},"id":365,"renderContextTable":{"__isSmartRef__":true,"id":10137},"eventHandler":{"__isSmartRef__":true,"id":10138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10052":{"submorphs":[{"__isSmartRef__":true,"id":10053},{"__isSmartRef__":true,"id":10078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10095},"id":362,"renderContextTable":{"__isSmartRef__":true,"id":10100},"eventHandler":{"__isSmartRef__":true,"id":10101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10102},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showTesterRunner","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10053},"text":{"__isSmartRef__":true,"id":10078},"owner":{"__isSmartRef__":true,"id":10051},"_Position":{"__isSmartRef__":true,"id":10103},"priorExtent":{"__isSmartRef__":true,"id":10104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10054},"id":363,"renderContextTable":{"__isSmartRef__":true,"id":10060},"eventHandler":{"__isSmartRef__":true,"id":10061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10054":{"_Position":{"__isSmartRef__":true,"id":10055},"renderContextTable":{"__isSmartRef__":true,"id":10056},"_Extent":{"__isSmartRef__":true,"id":10057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10061":{"morph":{"__isSmartRef__":true,"id":10053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10063":{"onMouseUp":{"__isSmartRef__":true,"id":10064},"toggle":{"__isSmartRef__":true,"id":10071}},"10064":{"varMapping":{"__isSmartRef__":true,"id":10065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10065":{"this":{"__isSmartRef__":true,"id":10053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10066}},"10066":{"$super":{"__isSmartRef__":true,"id":10067}},"10067":{"varMapping":{"__isSmartRef__":true,"id":10068},"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":10069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10068":{"obj":{"__isSmartRef__":true,"id":10053},"name":"onMouseUp"},"10069":{},"10070":{},"10071":{"varMapping":{"__isSmartRef__":true,"id":10072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10072":{"this":{"__isSmartRef__":true,"id":10053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10073}},"10073":{"$super":{"__isSmartRef__":true,"id":10074}},"10074":{"varMapping":{"__isSmartRef__":true,"id":10075},"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":10076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10075":{"obj":{"__isSmartRef__":true,"id":10053},"name":"toggle"},"10076":{},"10077":{},"10078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10079},"id":364,"renderContextTable":{"__isSmartRef__":true,"id":10083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10084},{"__isSmartRef__":true,"id":10086}],"eventHandler":{"__isSmartRef__":true,"id":10088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10089},"priorExtent":{"__isSmartRef__":true,"id":10090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10079":{"_Position":{"__isSmartRef__":true,"id":10080},"renderContextTable":{"__isSmartRef__":true,"id":10081},"_Extent":{"__isSmartRef__":true,"id":10082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10082":{"x":180.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10084":{"style":{"__isSmartRef__":true,"id":10085},"chunkOwner":{"__isSmartRef__":true,"id":10078},"storedString":"showTesterRunner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10086":{"style":{"__isSmartRef__":true,"id":10087},"chunkOwner":{"__isSmartRef__":true,"id":10078},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10088":{"morph":{"__isSmartRef__":true,"id":10078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10090":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10091":{"layoutText":{"__isSmartRef__":true,"id":10092}},"10092":{"varMapping":{"__isSmartRef__":true,"id":10093},"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":10094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10093":{"this":{"__isSmartRef__":true,"id":10078}},"10094":{},"10095":{"_Position":{"__isSmartRef__":true,"id":10096},"renderContextTable":{"__isSmartRef__":true,"id":10097},"_Extent":{"__isSmartRef__":true,"id":10098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10101":{"morph":{"__isSmartRef__":true,"id":10052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10102":{"resizeWidth":true},"10103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10105":{"updateExpanderColor":{"__isSmartRef__":true,"id":10106},"onMouseDown":{"__isSmartRef__":true,"id":10109},"onMouseUp":{"__isSmartRef__":true,"id":10116},"isRoot":{"__isSmartRef__":true,"id":10123},"displayValue":{"__isSmartRef__":true,"id":10126},"update":{"__isSmartRef__":true,"id":10129}},"10106":{"varMapping":{"__isSmartRef__":true,"id":10107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10107":{"this":{"__isSmartRef__":true,"id":10052}},"10108":{},"10109":{"varMapping":{"__isSmartRef__":true,"id":10110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10110":{"this":{"__isSmartRef__":true,"id":10052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10111}},"10111":{"$super":{"__isSmartRef__":true,"id":10112}},"10112":{"varMapping":{"__isSmartRef__":true,"id":10113},"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":10114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10113":{"obj":{"__isSmartRef__":true,"id":10052},"name":"onMouseDown"},"10114":{},"10115":{},"10116":{"varMapping":{"__isSmartRef__":true,"id":10117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10117":{"this":{"__isSmartRef__":true,"id":10052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10118}},"10118":{"$super":{"__isSmartRef__":true,"id":10119}},"10119":{"varMapping":{"__isSmartRef__":true,"id":10120},"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":10121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10120":{"obj":{"__isSmartRef__":true,"id":10052},"name":"onMouseUp"},"10121":{},"10122":{},"10123":{"varMapping":{"__isSmartRef__":true,"id":10124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10124":{"this":{"__isSmartRef__":true,"id":10052}},"10125":{},"10126":{"varMapping":{"__isSmartRef__":true,"id":10127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10127":{"this":{"__isSmartRef__":true,"id":10052}},"10128":{},"10129":{"varMapping":{"__isSmartRef__":true,"id":10130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10130":{"this":{"__isSmartRef__":true,"id":10052}},"10131":{},"10132":{"_Position":{"__isSmartRef__":true,"id":10133},"renderContextTable":{"__isSmartRef__":true,"id":10134},"_Extent":{"__isSmartRef__":true,"id":10135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10138":{"morph":{"__isSmartRef__":true,"id":10051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10139":{"layouter":{"__isSmartRef__":true,"id":10140},"resizeWidth":true},"10140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10142":{"x":0,"y":1580,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10144}},"10144":{"varMapping":{"__isSmartRef__":true,"id":10145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10145":{"this":{"__isSmartRef__":true,"id":10051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10146}},"10146":{"$super":{"__isSmartRef__":true,"id":10147}},"10147":{"varMapping":{"__isSmartRef__":true,"id":10148},"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":10149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10148":{"obj":{"__isSmartRef__":true,"id":10051},"name":"getLayoutableSubmorphs"},"10149":{},"10150":{},"10151":{"submorphs":[{"__isSmartRef__":true,"id":10152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10232},"id":369,"renderContextTable":{"__isSmartRef__":true,"id":10237},"eventHandler":{"__isSmartRef__":true,"id":10238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10152":{"submorphs":[{"__isSmartRef__":true,"id":10153},{"__isSmartRef__":true,"id":10178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10195},"id":366,"renderContextTable":{"__isSmartRef__":true,"id":10200},"eventHandler":{"__isSmartRef__":true,"id":10201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10202},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showTextListExample","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10153},"text":{"__isSmartRef__":true,"id":10178},"owner":{"__isSmartRef__":true,"id":10151},"_Position":{"__isSmartRef__":true,"id":10203},"priorExtent":{"__isSmartRef__":true,"id":10204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10154},"id":367,"renderContextTable":{"__isSmartRef__":true,"id":10160},"eventHandler":{"__isSmartRef__":true,"id":10161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10154":{"_Position":{"__isSmartRef__":true,"id":10155},"renderContextTable":{"__isSmartRef__":true,"id":10156},"_Extent":{"__isSmartRef__":true,"id":10157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10161":{"morph":{"__isSmartRef__":true,"id":10153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10163":{"onMouseUp":{"__isSmartRef__":true,"id":10164},"toggle":{"__isSmartRef__":true,"id":10171}},"10164":{"varMapping":{"__isSmartRef__":true,"id":10165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10165":{"this":{"__isSmartRef__":true,"id":10153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10166}},"10166":{"$super":{"__isSmartRef__":true,"id":10167}},"10167":{"varMapping":{"__isSmartRef__":true,"id":10168},"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":10169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10168":{"obj":{"__isSmartRef__":true,"id":10153},"name":"onMouseUp"},"10169":{},"10170":{},"10171":{"varMapping":{"__isSmartRef__":true,"id":10172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10172":{"this":{"__isSmartRef__":true,"id":10153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10173}},"10173":{"$super":{"__isSmartRef__":true,"id":10174}},"10174":{"varMapping":{"__isSmartRef__":true,"id":10175},"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":10176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10175":{"obj":{"__isSmartRef__":true,"id":10153},"name":"toggle"},"10176":{},"10177":{},"10178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10179},"id":368,"renderContextTable":{"__isSmartRef__":true,"id":10183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10184},{"__isSmartRef__":true,"id":10186}],"eventHandler":{"__isSmartRef__":true,"id":10188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10189},"priorExtent":{"__isSmartRef__":true,"id":10190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10179":{"_Position":{"__isSmartRef__":true,"id":10180},"renderContextTable":{"__isSmartRef__":true,"id":10181},"_Extent":{"__isSmartRef__":true,"id":10182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10182":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10184":{"style":{"__isSmartRef__":true,"id":10185},"chunkOwner":{"__isSmartRef__":true,"id":10178},"storedString":"showTextListExample","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10186":{"style":{"__isSmartRef__":true,"id":10187},"chunkOwner":{"__isSmartRef__":true,"id":10178},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10188":{"morph":{"__isSmartRef__":true,"id":10178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10190":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10191":{"layoutText":{"__isSmartRef__":true,"id":10192}},"10192":{"varMapping":{"__isSmartRef__":true,"id":10193},"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":10194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10193":{"this":{"__isSmartRef__":true,"id":10178}},"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"},"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"},"10199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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":10152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10202":{"resizeWidth":true},"10203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10205":{"updateExpanderColor":{"__isSmartRef__":true,"id":10206},"onMouseDown":{"__isSmartRef__":true,"id":10209},"onMouseUp":{"__isSmartRef__":true,"id":10216},"isRoot":{"__isSmartRef__":true,"id":10223},"displayValue":{"__isSmartRef__":true,"id":10226},"update":{"__isSmartRef__":true,"id":10229}},"10206":{"varMapping":{"__isSmartRef__":true,"id":10207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10207":{"this":{"__isSmartRef__":true,"id":10152}},"10208":{},"10209":{"varMapping":{"__isSmartRef__":true,"id":10210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10210":{"this":{"__isSmartRef__":true,"id":10152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10211}},"10211":{"$super":{"__isSmartRef__":true,"id":10212}},"10212":{"varMapping":{"__isSmartRef__":true,"id":10213},"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":10214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10213":{"obj":{"__isSmartRef__":true,"id":10152},"name":"onMouseDown"},"10214":{},"10215":{},"10216":{"varMapping":{"__isSmartRef__":true,"id":10217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10217":{"this":{"__isSmartRef__":true,"id":10152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10218}},"10218":{"$super":{"__isSmartRef__":true,"id":10219}},"10219":{"varMapping":{"__isSmartRef__":true,"id":10220},"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":10221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10220":{"obj":{"__isSmartRef__":true,"id":10152},"name":"onMouseUp"},"10221":{},"10222":{},"10223":{"varMapping":{"__isSmartRef__":true,"id":10224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10224":{"this":{"__isSmartRef__":true,"id":10152}},"10225":{},"10226":{"varMapping":{"__isSmartRef__":true,"id":10227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10227":{"this":{"__isSmartRef__":true,"id":10152}},"10228":{},"10229":{"varMapping":{"__isSmartRef__":true,"id":10230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10230":{"this":{"__isSmartRef__":true,"id":10152}},"10231":{},"10232":{"_Position":{"__isSmartRef__":true,"id":10233},"renderContextTable":{"__isSmartRef__":true,"id":10234},"_Extent":{"__isSmartRef__":true,"id":10235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10238":{"morph":{"__isSmartRef__":true,"id":10151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10239":{"layouter":{"__isSmartRef__":true,"id":10240},"resizeWidth":true},"10240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10242":{"x":0,"y":1600,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10244}},"10244":{"varMapping":{"__isSmartRef__":true,"id":10245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10245":{"this":{"__isSmartRef__":true,"id":10151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10246}},"10246":{"$super":{"__isSmartRef__":true,"id":10247}},"10247":{"varMapping":{"__isSmartRef__":true,"id":10248},"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":10249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10248":{"obj":{"__isSmartRef__":true,"id":10151},"name":"getLayoutableSubmorphs"},"10249":{},"10250":{},"10251":{"submorphs":[{"__isSmartRef__":true,"id":10252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10332},"id":373,"renderContextTable":{"__isSmartRef__":true,"id":10337},"eventHandler":{"__isSmartRef__":true,"id":10338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10252":{"submorphs":[{"__isSmartRef__":true,"id":10253},{"__isSmartRef__":true,"id":10278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10295},"id":370,"renderContextTable":{"__isSmartRef__":true,"id":10300},"eventHandler":{"__isSmartRef__":true,"id":10301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10302},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showTextSamples","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10253},"text":{"__isSmartRef__":true,"id":10278},"owner":{"__isSmartRef__":true,"id":10251},"_Position":{"__isSmartRef__":true,"id":10303},"priorExtent":{"__isSmartRef__":true,"id":10304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10254},"id":371,"renderContextTable":{"__isSmartRef__":true,"id":10260},"eventHandler":{"__isSmartRef__":true,"id":10261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10254":{"_Position":{"__isSmartRef__":true,"id":10255},"renderContextTable":{"__isSmartRef__":true,"id":10256},"_Extent":{"__isSmartRef__":true,"id":10257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10261":{"morph":{"__isSmartRef__":true,"id":10253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10263":{"onMouseUp":{"__isSmartRef__":true,"id":10264},"toggle":{"__isSmartRef__":true,"id":10271}},"10264":{"varMapping":{"__isSmartRef__":true,"id":10265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10265":{"this":{"__isSmartRef__":true,"id":10253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10266}},"10266":{"$super":{"__isSmartRef__":true,"id":10267}},"10267":{"varMapping":{"__isSmartRef__":true,"id":10268},"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":10269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10268":{"obj":{"__isSmartRef__":true,"id":10253},"name":"onMouseUp"},"10269":{},"10270":{},"10271":{"varMapping":{"__isSmartRef__":true,"id":10272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10272":{"this":{"__isSmartRef__":true,"id":10253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10273}},"10273":{"$super":{"__isSmartRef__":true,"id":10274}},"10274":{"varMapping":{"__isSmartRef__":true,"id":10275},"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":10276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10275":{"obj":{"__isSmartRef__":true,"id":10253},"name":"toggle"},"10276":{},"10277":{},"10278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10279},"id":372,"renderContextTable":{"__isSmartRef__":true,"id":10283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10284},{"__isSmartRef__":true,"id":10286}],"eventHandler":{"__isSmartRef__":true,"id":10288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10289},"priorExtent":{"__isSmartRef__":true,"id":10290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10279":{"_Position":{"__isSmartRef__":true,"id":10280},"renderContextTable":{"__isSmartRef__":true,"id":10281},"_Extent":{"__isSmartRef__":true,"id":10282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10284":{"style":{"__isSmartRef__":true,"id":10285},"chunkOwner":{"__isSmartRef__":true,"id":10278},"storedString":"showTextSamples","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10286":{"style":{"__isSmartRef__":true,"id":10287},"chunkOwner":{"__isSmartRef__":true,"id":10278},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10288":{"morph":{"__isSmartRef__":true,"id":10278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10290":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10291":{"layoutText":{"__isSmartRef__":true,"id":10292}},"10292":{"varMapping":{"__isSmartRef__":true,"id":10293},"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":10294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10293":{"this":{"__isSmartRef__":true,"id":10278}},"10294":{},"10295":{"_Position":{"__isSmartRef__":true,"id":10296},"renderContextTable":{"__isSmartRef__":true,"id":10297},"_Extent":{"__isSmartRef__":true,"id":10298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10301":{"morph":{"__isSmartRef__":true,"id":10252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10302":{"resizeWidth":true},"10303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10305":{"updateExpanderColor":{"__isSmartRef__":true,"id":10306},"onMouseDown":{"__isSmartRef__":true,"id":10309},"onMouseUp":{"__isSmartRef__":true,"id":10316},"isRoot":{"__isSmartRef__":true,"id":10323},"displayValue":{"__isSmartRef__":true,"id":10326},"update":{"__isSmartRef__":true,"id":10329}},"10306":{"varMapping":{"__isSmartRef__":true,"id":10307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10307":{"this":{"__isSmartRef__":true,"id":10252}},"10308":{},"10309":{"varMapping":{"__isSmartRef__":true,"id":10310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10310":{"this":{"__isSmartRef__":true,"id":10252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10311}},"10311":{"$super":{"__isSmartRef__":true,"id":10312}},"10312":{"varMapping":{"__isSmartRef__":true,"id":10313},"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":10314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10313":{"obj":{"__isSmartRef__":true,"id":10252},"name":"onMouseDown"},"10314":{},"10315":{},"10316":{"varMapping":{"__isSmartRef__":true,"id":10317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10317":{"this":{"__isSmartRef__":true,"id":10252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10318}},"10318":{"$super":{"__isSmartRef__":true,"id":10319}},"10319":{"varMapping":{"__isSmartRef__":true,"id":10320},"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":10321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10320":{"obj":{"__isSmartRef__":true,"id":10252},"name":"onMouseUp"},"10321":{},"10322":{},"10323":{"varMapping":{"__isSmartRef__":true,"id":10324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10324":{"this":{"__isSmartRef__":true,"id":10252}},"10325":{},"10326":{"varMapping":{"__isSmartRef__":true,"id":10327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10327":{"this":{"__isSmartRef__":true,"id":10252}},"10328":{},"10329":{"varMapping":{"__isSmartRef__":true,"id":10330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10330":{"this":{"__isSmartRef__":true,"id":10252}},"10331":{},"10332":{"_Position":{"__isSmartRef__":true,"id":10333},"renderContextTable":{"__isSmartRef__":true,"id":10334},"_Extent":{"__isSmartRef__":true,"id":10335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10338":{"morph":{"__isSmartRef__":true,"id":10251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10339":{"layouter":{"__isSmartRef__":true,"id":10340},"resizeWidth":true},"10340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10342":{"x":0,"y":1620,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10344}},"10344":{"varMapping":{"__isSmartRef__":true,"id":10345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10345":{"this":{"__isSmartRef__":true,"id":10251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10346}},"10346":{"$super":{"__isSmartRef__":true,"id":10347}},"10347":{"varMapping":{"__isSmartRef__":true,"id":10348},"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":10349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10348":{"obj":{"__isSmartRef__":true,"id":10251},"name":"getLayoutableSubmorphs"},"10349":{},"10350":{},"10351":{"submorphs":[{"__isSmartRef__":true,"id":10352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10432},"id":377,"renderContextTable":{"__isSmartRef__":true,"id":10437},"eventHandler":{"__isSmartRef__":true,"id":10438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10352":{"submorphs":[{"__isSmartRef__":true,"id":10353},{"__isSmartRef__":true,"id":10378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10395},"id":374,"renderContextTable":{"__isSmartRef__":true,"id":10400},"eventHandler":{"__isSmartRef__":true,"id":10401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10402},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showThumbnail","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10353},"text":{"__isSmartRef__":true,"id":10378},"owner":{"__isSmartRef__":true,"id":10351},"_Position":{"__isSmartRef__":true,"id":10403},"priorExtent":{"__isSmartRef__":true,"id":10404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10354},"id":375,"renderContextTable":{"__isSmartRef__":true,"id":10360},"eventHandler":{"__isSmartRef__":true,"id":10361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10354":{"_Position":{"__isSmartRef__":true,"id":10355},"renderContextTable":{"__isSmartRef__":true,"id":10356},"_Extent":{"__isSmartRef__":true,"id":10357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10361":{"morph":{"__isSmartRef__":true,"id":10353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10363":{"onMouseUp":{"__isSmartRef__":true,"id":10364},"toggle":{"__isSmartRef__":true,"id":10371}},"10364":{"varMapping":{"__isSmartRef__":true,"id":10365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10365":{"this":{"__isSmartRef__":true,"id":10353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10366}},"10366":{"$super":{"__isSmartRef__":true,"id":10367}},"10367":{"varMapping":{"__isSmartRef__":true,"id":10368},"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":10369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10368":{"obj":{"__isSmartRef__":true,"id":10353},"name":"onMouseUp"},"10369":{},"10370":{},"10371":{"varMapping":{"__isSmartRef__":true,"id":10372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10372":{"this":{"__isSmartRef__":true,"id":10353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10373}},"10373":{"$super":{"__isSmartRef__":true,"id":10374}},"10374":{"varMapping":{"__isSmartRef__":true,"id":10375},"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":10376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10375":{"obj":{"__isSmartRef__":true,"id":10353},"name":"toggle"},"10376":{},"10377":{},"10378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10379},"id":376,"renderContextTable":{"__isSmartRef__":true,"id":10383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10384},{"__isSmartRef__":true,"id":10386}],"eventHandler":{"__isSmartRef__":true,"id":10388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10389},"priorExtent":{"__isSmartRef__":true,"id":10390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10379":{"_Position":{"__isSmartRef__":true,"id":10380},"renderContextTable":{"__isSmartRef__":true,"id":10381},"_Extent":{"__isSmartRef__":true,"id":10382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10382":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10384":{"style":{"__isSmartRef__":true,"id":10385},"chunkOwner":{"__isSmartRef__":true,"id":10378},"storedString":"showThumbnail","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10386":{"style":{"__isSmartRef__":true,"id":10387},"chunkOwner":{"__isSmartRef__":true,"id":10378},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10388":{"morph":{"__isSmartRef__":true,"id":10378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10390":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10391":{"layoutText":{"__isSmartRef__":true,"id":10392}},"10392":{"varMapping":{"__isSmartRef__":true,"id":10393},"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":10394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10393":{"this":{"__isSmartRef__":true,"id":10378}},"10394":{},"10395":{"_Position":{"__isSmartRef__":true,"id":10396},"renderContextTable":{"__isSmartRef__":true,"id":10397},"_Extent":{"__isSmartRef__":true,"id":10398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10401":{"morph":{"__isSmartRef__":true,"id":10352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10402":{"resizeWidth":true},"10403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10405":{"updateExpanderColor":{"__isSmartRef__":true,"id":10406},"onMouseDown":{"__isSmartRef__":true,"id":10409},"onMouseUp":{"__isSmartRef__":true,"id":10416},"isRoot":{"__isSmartRef__":true,"id":10423},"displayValue":{"__isSmartRef__":true,"id":10426},"update":{"__isSmartRef__":true,"id":10429}},"10406":{"varMapping":{"__isSmartRef__":true,"id":10407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10407":{"this":{"__isSmartRef__":true,"id":10352}},"10408":{},"10409":{"varMapping":{"__isSmartRef__":true,"id":10410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10410":{"this":{"__isSmartRef__":true,"id":10352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10411}},"10411":{"$super":{"__isSmartRef__":true,"id":10412}},"10412":{"varMapping":{"__isSmartRef__":true,"id":10413},"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":10414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10413":{"obj":{"__isSmartRef__":true,"id":10352},"name":"onMouseDown"},"10414":{},"10415":{},"10416":{"varMapping":{"__isSmartRef__":true,"id":10417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10417":{"this":{"__isSmartRef__":true,"id":10352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10418}},"10418":{"$super":{"__isSmartRef__":true,"id":10419}},"10419":{"varMapping":{"__isSmartRef__":true,"id":10420},"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":10421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10420":{"obj":{"__isSmartRef__":true,"id":10352},"name":"onMouseUp"},"10421":{},"10422":{},"10423":{"varMapping":{"__isSmartRef__":true,"id":10424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10424":{"this":{"__isSmartRef__":true,"id":10352}},"10425":{},"10426":{"varMapping":{"__isSmartRef__":true,"id":10427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10427":{"this":{"__isSmartRef__":true,"id":10352}},"10428":{},"10429":{"varMapping":{"__isSmartRef__":true,"id":10430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10430":{"this":{"__isSmartRef__":true,"id":10352}},"10431":{},"10432":{"_Position":{"__isSmartRef__":true,"id":10433},"renderContextTable":{"__isSmartRef__":true,"id":10434},"_Extent":{"__isSmartRef__":true,"id":10435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10438":{"morph":{"__isSmartRef__":true,"id":10351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10439":{"layouter":{"__isSmartRef__":true,"id":10440},"resizeWidth":true},"10440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10442":{"x":0,"y":1640,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10444}},"10444":{"varMapping":{"__isSmartRef__":true,"id":10445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10445":{"this":{"__isSmartRef__":true,"id":10351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10446}},"10446":{"$super":{"__isSmartRef__":true,"id":10447}},"10447":{"varMapping":{"__isSmartRef__":true,"id":10448},"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":10449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10448":{"obj":{"__isSmartRef__":true,"id":10351},"name":"getLayoutableSubmorphs"},"10449":{},"10450":{},"10451":{"submorphs":[{"__isSmartRef__":true,"id":10452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10532},"id":381,"renderContextTable":{"__isSmartRef__":true,"id":10537},"eventHandler":{"__isSmartRef__":true,"id":10538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10452":{"submorphs":[{"__isSmartRef__":true,"id":10453},{"__isSmartRef__":true,"id":10478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10495},"id":378,"renderContextTable":{"__isSmartRef__":true,"id":10500},"eventHandler":{"__isSmartRef__":true,"id":10501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10502},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"showWikiNavigator","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10453},"text":{"__isSmartRef__":true,"id":10478},"owner":{"__isSmartRef__":true,"id":10451},"_Position":{"__isSmartRef__":true,"id":10503},"priorExtent":{"__isSmartRef__":true,"id":10504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10454},"id":379,"renderContextTable":{"__isSmartRef__":true,"id":10460},"eventHandler":{"__isSmartRef__":true,"id":10461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10454":{"_Position":{"__isSmartRef__":true,"id":10455},"renderContextTable":{"__isSmartRef__":true,"id":10456},"_Extent":{"__isSmartRef__":true,"id":10457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10461":{"morph":{"__isSmartRef__":true,"id":10453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10463":{"onMouseUp":{"__isSmartRef__":true,"id":10464},"toggle":{"__isSmartRef__":true,"id":10471}},"10464":{"varMapping":{"__isSmartRef__":true,"id":10465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10465":{"this":{"__isSmartRef__":true,"id":10453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10466}},"10466":{"$super":{"__isSmartRef__":true,"id":10467}},"10467":{"varMapping":{"__isSmartRef__":true,"id":10468},"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":10469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10468":{"obj":{"__isSmartRef__":true,"id":10453},"name":"onMouseUp"},"10469":{},"10470":{},"10471":{"varMapping":{"__isSmartRef__":true,"id":10472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10472":{"this":{"__isSmartRef__":true,"id":10453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10473}},"10473":{"$super":{"__isSmartRef__":true,"id":10474}},"10474":{"varMapping":{"__isSmartRef__":true,"id":10475},"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":10476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10475":{"obj":{"__isSmartRef__":true,"id":10453},"name":"toggle"},"10476":{},"10477":{},"10478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10479},"id":380,"renderContextTable":{"__isSmartRef__":true,"id":10483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10484},{"__isSmartRef__":true,"id":10486}],"eventHandler":{"__isSmartRef__":true,"id":10488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10489},"priorExtent":{"__isSmartRef__":true,"id":10490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10479":{"_Position":{"__isSmartRef__":true,"id":10480},"renderContextTable":{"__isSmartRef__":true,"id":10481},"_Extent":{"__isSmartRef__":true,"id":10482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10482":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10484":{"style":{"__isSmartRef__":true,"id":10485},"chunkOwner":{"__isSmartRef__":true,"id":10478},"storedString":"showWikiNavigator","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10486":{"style":{"__isSmartRef__":true,"id":10487},"chunkOwner":{"__isSmartRef__":true,"id":10478},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10488":{"morph":{"__isSmartRef__":true,"id":10478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10490":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10491":{"layoutText":{"__isSmartRef__":true,"id":10492}},"10492":{"varMapping":{"__isSmartRef__":true,"id":10493},"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":10494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10493":{"this":{"__isSmartRef__":true,"id":10478}},"10494":{},"10495":{"_Position":{"__isSmartRef__":true,"id":10496},"renderContextTable":{"__isSmartRef__":true,"id":10497},"_Extent":{"__isSmartRef__":true,"id":10498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10501":{"morph":{"__isSmartRef__":true,"id":10452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10502":{"resizeWidth":true},"10503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10505":{"updateExpanderColor":{"__isSmartRef__":true,"id":10506},"onMouseDown":{"__isSmartRef__":true,"id":10509},"onMouseUp":{"__isSmartRef__":true,"id":10516},"isRoot":{"__isSmartRef__":true,"id":10523},"displayValue":{"__isSmartRef__":true,"id":10526},"update":{"__isSmartRef__":true,"id":10529}},"10506":{"varMapping":{"__isSmartRef__":true,"id":10507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10507":{"this":{"__isSmartRef__":true,"id":10452}},"10508":{},"10509":{"varMapping":{"__isSmartRef__":true,"id":10510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10510":{"this":{"__isSmartRef__":true,"id":10452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10511}},"10511":{"$super":{"__isSmartRef__":true,"id":10512}},"10512":{"varMapping":{"__isSmartRef__":true,"id":10513},"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":10514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10513":{"obj":{"__isSmartRef__":true,"id":10452},"name":"onMouseDown"},"10514":{},"10515":{},"10516":{"varMapping":{"__isSmartRef__":true,"id":10517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10517":{"this":{"__isSmartRef__":true,"id":10452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10518}},"10518":{"$super":{"__isSmartRef__":true,"id":10519}},"10519":{"varMapping":{"__isSmartRef__":true,"id":10520},"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":10521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10520":{"obj":{"__isSmartRef__":true,"id":10452},"name":"onMouseUp"},"10521":{},"10522":{},"10523":{"varMapping":{"__isSmartRef__":true,"id":10524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10524":{"this":{"__isSmartRef__":true,"id":10452}},"10525":{},"10526":{"varMapping":{"__isSmartRef__":true,"id":10527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10527":{"this":{"__isSmartRef__":true,"id":10452}},"10528":{},"10529":{"varMapping":{"__isSmartRef__":true,"id":10530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10530":{"this":{"__isSmartRef__":true,"id":10452}},"10531":{},"10532":{"_Position":{"__isSmartRef__":true,"id":10533},"renderContextTable":{"__isSmartRef__":true,"id":10534},"_Extent":{"__isSmartRef__":true,"id":10535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10538":{"morph":{"__isSmartRef__":true,"id":10451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10539":{"layouter":{"__isSmartRef__":true,"id":10540},"resizeWidth":true},"10540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10542":{"x":0,"y":1660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10544}},"10544":{"varMapping":{"__isSmartRef__":true,"id":10545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10545":{"this":{"__isSmartRef__":true,"id":10451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10546}},"10546":{"$super":{"__isSmartRef__":true,"id":10547}},"10547":{"varMapping":{"__isSmartRef__":true,"id":10548},"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":10549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10548":{"obj":{"__isSmartRef__":true,"id":10451},"name":"getLayoutableSubmorphs"},"10549":{},"10550":{},"10551":{"submorphs":[{"__isSmartRef__":true,"id":10552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10632},"id":385,"renderContextTable":{"__isSmartRef__":true,"id":10637},"eventHandler":{"__isSmartRef__":true,"id":10638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10552":{"submorphs":[{"__isSmartRef__":true,"id":10553},{"__isSmartRef__":true,"id":10578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10595},"id":382,"renderContextTable":{"__isSmartRef__":true,"id":10600},"eventHandler":{"__isSmartRef__":true,"id":10601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10602},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"silentFailOnWrapperClassNotFound","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10553},"text":{"__isSmartRef__":true,"id":10578},"owner":{"__isSmartRef__":true,"id":10551},"_Position":{"__isSmartRef__":true,"id":10603},"priorExtent":{"__isSmartRef__":true,"id":10604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10554},"id":383,"renderContextTable":{"__isSmartRef__":true,"id":10560},"eventHandler":{"__isSmartRef__":true,"id":10561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10554":{"_Position":{"__isSmartRef__":true,"id":10555},"renderContextTable":{"__isSmartRef__":true,"id":10556},"_Extent":{"__isSmartRef__":true,"id":10557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10561":{"morph":{"__isSmartRef__":true,"id":10553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10563":{"onMouseUp":{"__isSmartRef__":true,"id":10564},"toggle":{"__isSmartRef__":true,"id":10571}},"10564":{"varMapping":{"__isSmartRef__":true,"id":10565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10565":{"this":{"__isSmartRef__":true,"id":10553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10566}},"10566":{"$super":{"__isSmartRef__":true,"id":10567}},"10567":{"varMapping":{"__isSmartRef__":true,"id":10568},"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":10569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10568":{"obj":{"__isSmartRef__":true,"id":10553},"name":"onMouseUp"},"10569":{},"10570":{},"10571":{"varMapping":{"__isSmartRef__":true,"id":10572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10572":{"this":{"__isSmartRef__":true,"id":10553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10573}},"10573":{"$super":{"__isSmartRef__":true,"id":10574}},"10574":{"varMapping":{"__isSmartRef__":true,"id":10575},"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":10576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10575":{"obj":{"__isSmartRef__":true,"id":10553},"name":"toggle"},"10576":{},"10577":{},"10578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10579},"id":384,"renderContextTable":{"__isSmartRef__":true,"id":10583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10584},{"__isSmartRef__":true,"id":10586}],"eventHandler":{"__isSmartRef__":true,"id":10588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10589},"priorExtent":{"__isSmartRef__":true,"id":10590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10579":{"_Position":{"__isSmartRef__":true,"id":10580},"renderContextTable":{"__isSmartRef__":true,"id":10581},"_Extent":{"__isSmartRef__":true,"id":10582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10582":{"x":293,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10584":{"style":{"__isSmartRef__":true,"id":10585},"chunkOwner":{"__isSmartRef__":true,"id":10578},"storedString":"silentFailOnWrapperClassNotFound","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10586":{"style":{"__isSmartRef__":true,"id":10587},"chunkOwner":{"__isSmartRef__":true,"id":10578},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10588":{"morph":{"__isSmartRef__":true,"id":10578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10590":{"x":285,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10591":{"layoutText":{"__isSmartRef__":true,"id":10592}},"10592":{"varMapping":{"__isSmartRef__":true,"id":10593},"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":10594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10593":{"this":{"__isSmartRef__":true,"id":10578}},"10594":{},"10595":{"_Position":{"__isSmartRef__":true,"id":10596},"renderContextTable":{"__isSmartRef__":true,"id":10597},"_Extent":{"__isSmartRef__":true,"id":10598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10601":{"morph":{"__isSmartRef__":true,"id":10552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10602":{"resizeWidth":true},"10603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10605":{"updateExpanderColor":{"__isSmartRef__":true,"id":10606},"onMouseDown":{"__isSmartRef__":true,"id":10609},"onMouseUp":{"__isSmartRef__":true,"id":10616},"isRoot":{"__isSmartRef__":true,"id":10623},"displayValue":{"__isSmartRef__":true,"id":10626},"update":{"__isSmartRef__":true,"id":10629}},"10606":{"varMapping":{"__isSmartRef__":true,"id":10607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10607":{"this":{"__isSmartRef__":true,"id":10552}},"10608":{},"10609":{"varMapping":{"__isSmartRef__":true,"id":10610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10610":{"this":{"__isSmartRef__":true,"id":10552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10611}},"10611":{"$super":{"__isSmartRef__":true,"id":10612}},"10612":{"varMapping":{"__isSmartRef__":true,"id":10613},"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":10614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10613":{"obj":{"__isSmartRef__":true,"id":10552},"name":"onMouseDown"},"10614":{},"10615":{},"10616":{"varMapping":{"__isSmartRef__":true,"id":10617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10617":{"this":{"__isSmartRef__":true,"id":10552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10618}},"10618":{"$super":{"__isSmartRef__":true,"id":10619}},"10619":{"varMapping":{"__isSmartRef__":true,"id":10620},"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":10621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10620":{"obj":{"__isSmartRef__":true,"id":10552},"name":"onMouseUp"},"10621":{},"10622":{},"10623":{"varMapping":{"__isSmartRef__":true,"id":10624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10624":{"this":{"__isSmartRef__":true,"id":10552}},"10625":{},"10626":{"varMapping":{"__isSmartRef__":true,"id":10627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10627":{"this":{"__isSmartRef__":true,"id":10552}},"10628":{},"10629":{"varMapping":{"__isSmartRef__":true,"id":10630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10630":{"this":{"__isSmartRef__":true,"id":10552}},"10631":{},"10632":{"_Position":{"__isSmartRef__":true,"id":10633},"renderContextTable":{"__isSmartRef__":true,"id":10634},"_Extent":{"__isSmartRef__":true,"id":10635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10638":{"morph":{"__isSmartRef__":true,"id":10551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10639":{"layouter":{"__isSmartRef__":true,"id":10640},"resizeWidth":true},"10640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10642":{"x":0,"y":1680,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10644}},"10644":{"varMapping":{"__isSmartRef__":true,"id":10645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10645":{"this":{"__isSmartRef__":true,"id":10551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10646}},"10646":{"$super":{"__isSmartRef__":true,"id":10647}},"10647":{"varMapping":{"__isSmartRef__":true,"id":10648},"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":10649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10648":{"obj":{"__isSmartRef__":true,"id":10551},"name":"getLayoutableSubmorphs"},"10649":{},"10650":{},"10651":{"submorphs":[{"__isSmartRef__":true,"id":10652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10732},"id":389,"renderContextTable":{"__isSmartRef__":true,"id":10737},"eventHandler":{"__isSmartRef__":true,"id":10738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10652":{"submorphs":[{"__isSmartRef__":true,"id":10653},{"__isSmartRef__":true,"id":10678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10695},"id":386,"renderContextTable":{"__isSmartRef__":true,"id":10700},"eventHandler":{"__isSmartRef__":true,"id":10701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10702},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"skipAllExamples","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10653},"text":{"__isSmartRef__":true,"id":10678},"owner":{"__isSmartRef__":true,"id":10651},"_Position":{"__isSmartRef__":true,"id":10703},"priorExtent":{"__isSmartRef__":true,"id":10704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10654},"id":387,"renderContextTable":{"__isSmartRef__":true,"id":10660},"eventHandler":{"__isSmartRef__":true,"id":10661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10654":{"_Position":{"__isSmartRef__":true,"id":10655},"renderContextTable":{"__isSmartRef__":true,"id":10656},"_Extent":{"__isSmartRef__":true,"id":10657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10661":{"morph":{"__isSmartRef__":true,"id":10653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10663":{"onMouseUp":{"__isSmartRef__":true,"id":10664},"toggle":{"__isSmartRef__":true,"id":10671}},"10664":{"varMapping":{"__isSmartRef__":true,"id":10665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10665":{"this":{"__isSmartRef__":true,"id":10653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10666}},"10666":{"$super":{"__isSmartRef__":true,"id":10667}},"10667":{"varMapping":{"__isSmartRef__":true,"id":10668},"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":10669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10668":{"obj":{"__isSmartRef__":true,"id":10653},"name":"onMouseUp"},"10669":{},"10670":{},"10671":{"varMapping":{"__isSmartRef__":true,"id":10672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10672":{"this":{"__isSmartRef__":true,"id":10653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10673}},"10673":{"$super":{"__isSmartRef__":true,"id":10674}},"10674":{"varMapping":{"__isSmartRef__":true,"id":10675},"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":10676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10675":{"obj":{"__isSmartRef__":true,"id":10653},"name":"toggle"},"10676":{},"10677":{},"10678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10679},"id":388,"renderContextTable":{"__isSmartRef__":true,"id":10683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10684},{"__isSmartRef__":true,"id":10686}],"eventHandler":{"__isSmartRef__":true,"id":10688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10689},"priorExtent":{"__isSmartRef__":true,"id":10690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10679":{"_Position":{"__isSmartRef__":true,"id":10680},"renderContextTable":{"__isSmartRef__":true,"id":10681},"_Extent":{"__isSmartRef__":true,"id":10682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10682":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10684":{"style":{"__isSmartRef__":true,"id":10685},"chunkOwner":{"__isSmartRef__":true,"id":10678},"storedString":"skipAllExamples","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10686":{"style":{"__isSmartRef__":true,"id":10687},"chunkOwner":{"__isSmartRef__":true,"id":10678},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10688":{"morph":{"__isSmartRef__":true,"id":10678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10690":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10691":{"layoutText":{"__isSmartRef__":true,"id":10692}},"10692":{"varMapping":{"__isSmartRef__":true,"id":10693},"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":10694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10693":{"this":{"__isSmartRef__":true,"id":10678}},"10694":{},"10695":{"_Position":{"__isSmartRef__":true,"id":10696},"renderContextTable":{"__isSmartRef__":true,"id":10697},"_Extent":{"__isSmartRef__":true,"id":10698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10701":{"morph":{"__isSmartRef__":true,"id":10652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10702":{"resizeWidth":true},"10703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10705":{"updateExpanderColor":{"__isSmartRef__":true,"id":10706},"onMouseDown":{"__isSmartRef__":true,"id":10709},"onMouseUp":{"__isSmartRef__":true,"id":10716},"isRoot":{"__isSmartRef__":true,"id":10723},"displayValue":{"__isSmartRef__":true,"id":10726},"update":{"__isSmartRef__":true,"id":10729}},"10706":{"varMapping":{"__isSmartRef__":true,"id":10707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10707":{"this":{"__isSmartRef__":true,"id":10652}},"10708":{},"10709":{"varMapping":{"__isSmartRef__":true,"id":10710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10710":{"this":{"__isSmartRef__":true,"id":10652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10711}},"10711":{"$super":{"__isSmartRef__":true,"id":10712}},"10712":{"varMapping":{"__isSmartRef__":true,"id":10713},"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":10714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10713":{"obj":{"__isSmartRef__":true,"id":10652},"name":"onMouseDown"},"10714":{},"10715":{},"10716":{"varMapping":{"__isSmartRef__":true,"id":10717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10717":{"this":{"__isSmartRef__":true,"id":10652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10718}},"10718":{"$super":{"__isSmartRef__":true,"id":10719}},"10719":{"varMapping":{"__isSmartRef__":true,"id":10720},"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":10721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10720":{"obj":{"__isSmartRef__":true,"id":10652},"name":"onMouseUp"},"10721":{},"10722":{},"10723":{"varMapping":{"__isSmartRef__":true,"id":10724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10724":{"this":{"__isSmartRef__":true,"id":10652}},"10725":{},"10726":{"varMapping":{"__isSmartRef__":true,"id":10727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10727":{"this":{"__isSmartRef__":true,"id":10652}},"10728":{},"10729":{"varMapping":{"__isSmartRef__":true,"id":10730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10730":{"this":{"__isSmartRef__":true,"id":10652}},"10731":{},"10732":{"_Position":{"__isSmartRef__":true,"id":10733},"renderContextTable":{"__isSmartRef__":true,"id":10734},"_Extent":{"__isSmartRef__":true,"id":10735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10738":{"morph":{"__isSmartRef__":true,"id":10651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10739":{"layouter":{"__isSmartRef__":true,"id":10740},"resizeWidth":true},"10740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10742":{"x":0,"y":1700,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10744}},"10744":{"varMapping":{"__isSmartRef__":true,"id":10745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10745":{"this":{"__isSmartRef__":true,"id":10651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10746}},"10746":{"$super":{"__isSmartRef__":true,"id":10747}},"10747":{"varMapping":{"__isSmartRef__":true,"id":10748},"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":10749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10748":{"obj":{"__isSmartRef__":true,"id":10651},"name":"getLayoutableSubmorphs"},"10749":{},"10750":{},"10751":{"submorphs":[{"__isSmartRef__":true,"id":10752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10832},"id":393,"renderContextTable":{"__isSmartRef__":true,"id":10837},"eventHandler":{"__isSmartRef__":true,"id":10838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10752":{"submorphs":[{"__isSmartRef__":true,"id":10753},{"__isSmartRef__":true,"id":10778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10795},"id":390,"renderContextTable":{"__isSmartRef__":true,"id":10800},"eventHandler":{"__isSmartRef__":true,"id":10801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10802},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"skipMostExamples","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10753},"text":{"__isSmartRef__":true,"id":10778},"owner":{"__isSmartRef__":true,"id":10751},"_Position":{"__isSmartRef__":true,"id":10803},"priorExtent":{"__isSmartRef__":true,"id":10804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10754},"id":391,"renderContextTable":{"__isSmartRef__":true,"id":10760},"eventHandler":{"__isSmartRef__":true,"id":10761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10754":{"_Position":{"__isSmartRef__":true,"id":10755},"renderContextTable":{"__isSmartRef__":true,"id":10756},"_Extent":{"__isSmartRef__":true,"id":10757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10761":{"morph":{"__isSmartRef__":true,"id":10753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10763":{"onMouseUp":{"__isSmartRef__":true,"id":10764},"toggle":{"__isSmartRef__":true,"id":10771}},"10764":{"varMapping":{"__isSmartRef__":true,"id":10765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10765":{"this":{"__isSmartRef__":true,"id":10753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10766}},"10766":{"$super":{"__isSmartRef__":true,"id":10767}},"10767":{"varMapping":{"__isSmartRef__":true,"id":10768},"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":10769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10768":{"obj":{"__isSmartRef__":true,"id":10753},"name":"onMouseUp"},"10769":{},"10770":{},"10771":{"varMapping":{"__isSmartRef__":true,"id":10772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10772":{"this":{"__isSmartRef__":true,"id":10753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10773}},"10773":{"$super":{"__isSmartRef__":true,"id":10774}},"10774":{"varMapping":{"__isSmartRef__":true,"id":10775},"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":10776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10775":{"obj":{"__isSmartRef__":true,"id":10753},"name":"toggle"},"10776":{},"10777":{},"10778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10779},"id":392,"renderContextTable":{"__isSmartRef__":true,"id":10783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10784},{"__isSmartRef__":true,"id":10786}],"eventHandler":{"__isSmartRef__":true,"id":10788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10789},"priorExtent":{"__isSmartRef__":true,"id":10790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10779":{"_Position":{"__isSmartRef__":true,"id":10780},"renderContextTable":{"__isSmartRef__":true,"id":10781},"_Extent":{"__isSmartRef__":true,"id":10782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10782":{"x":180.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10784":{"style":{"__isSmartRef__":true,"id":10785},"chunkOwner":{"__isSmartRef__":true,"id":10778},"storedString":"skipMostExamples","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10786":{"style":{"__isSmartRef__":true,"id":10787},"chunkOwner":{"__isSmartRef__":true,"id":10778},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10788":{"morph":{"__isSmartRef__":true,"id":10778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10790":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10791":{"layoutText":{"__isSmartRef__":true,"id":10792}},"10792":{"varMapping":{"__isSmartRef__":true,"id":10793},"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":10794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10793":{"this":{"__isSmartRef__":true,"id":10778}},"10794":{},"10795":{"_Position":{"__isSmartRef__":true,"id":10796},"renderContextTable":{"__isSmartRef__":true,"id":10797},"_Extent":{"__isSmartRef__":true,"id":10798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10801":{"morph":{"__isSmartRef__":true,"id":10752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10802":{"resizeWidth":true},"10803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10805":{"updateExpanderColor":{"__isSmartRef__":true,"id":10806},"onMouseDown":{"__isSmartRef__":true,"id":10809},"onMouseUp":{"__isSmartRef__":true,"id":10816},"isRoot":{"__isSmartRef__":true,"id":10823},"displayValue":{"__isSmartRef__":true,"id":10826},"update":{"__isSmartRef__":true,"id":10829}},"10806":{"varMapping":{"__isSmartRef__":true,"id":10807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10807":{"this":{"__isSmartRef__":true,"id":10752}},"10808":{},"10809":{"varMapping":{"__isSmartRef__":true,"id":10810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10810":{"this":{"__isSmartRef__":true,"id":10752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10811}},"10811":{"$super":{"__isSmartRef__":true,"id":10812}},"10812":{"varMapping":{"__isSmartRef__":true,"id":10813},"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":10814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10813":{"obj":{"__isSmartRef__":true,"id":10752},"name":"onMouseDown"},"10814":{},"10815":{},"10816":{"varMapping":{"__isSmartRef__":true,"id":10817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10817":{"this":{"__isSmartRef__":true,"id":10752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10818}},"10818":{"$super":{"__isSmartRef__":true,"id":10819}},"10819":{"varMapping":{"__isSmartRef__":true,"id":10820},"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":10821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10820":{"obj":{"__isSmartRef__":true,"id":10752},"name":"onMouseUp"},"10821":{},"10822":{},"10823":{"varMapping":{"__isSmartRef__":true,"id":10824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10824":{"this":{"__isSmartRef__":true,"id":10752}},"10825":{},"10826":{"varMapping":{"__isSmartRef__":true,"id":10827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10827":{"this":{"__isSmartRef__":true,"id":10752}},"10828":{},"10829":{"varMapping":{"__isSmartRef__":true,"id":10830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10830":{"this":{"__isSmartRef__":true,"id":10752}},"10831":{},"10832":{"_Position":{"__isSmartRef__":true,"id":10833},"renderContextTable":{"__isSmartRef__":true,"id":10834},"_Extent":{"__isSmartRef__":true,"id":10835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10838":{"morph":{"__isSmartRef__":true,"id":10751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10839":{"layouter":{"__isSmartRef__":true,"id":10840},"resizeWidth":true},"10840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10842":{"x":0,"y":1720,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10844}},"10844":{"varMapping":{"__isSmartRef__":true,"id":10845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10845":{"this":{"__isSmartRef__":true,"id":10751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10846}},"10846":{"$super":{"__isSmartRef__":true,"id":10847}},"10847":{"varMapping":{"__isSmartRef__":true,"id":10848},"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":10849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10848":{"obj":{"__isSmartRef__":true,"id":10751},"name":"getLayoutableSubmorphs"},"10849":{},"10850":{},"10851":{"submorphs":[{"__isSmartRef__":true,"id":10852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10932},"id":397,"renderContextTable":{"__isSmartRef__":true,"id":10937},"eventHandler":{"__isSmartRef__":true,"id":10938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":10942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10852":{"submorphs":[{"__isSmartRef__":true,"id":10853},{"__isSmartRef__":true,"id":10878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10895},"id":394,"renderContextTable":{"__isSmartRef__":true,"id":10900},"eventHandler":{"__isSmartRef__":true,"id":10901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10902},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"spinningStar","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10853},"text":{"__isSmartRef__":true,"id":10878},"owner":{"__isSmartRef__":true,"id":10851},"_Position":{"__isSmartRef__":true,"id":10903},"priorExtent":{"__isSmartRef__":true,"id":10904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10854},"id":395,"renderContextTable":{"__isSmartRef__":true,"id":10860},"eventHandler":{"__isSmartRef__":true,"id":10861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10854":{"_Position":{"__isSmartRef__":true,"id":10855},"renderContextTable":{"__isSmartRef__":true,"id":10856},"_Extent":{"__isSmartRef__":true,"id":10857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10861":{"morph":{"__isSmartRef__":true,"id":10853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10863":{"onMouseUp":{"__isSmartRef__":true,"id":10864},"toggle":{"__isSmartRef__":true,"id":10871}},"10864":{"varMapping":{"__isSmartRef__":true,"id":10865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10865":{"this":{"__isSmartRef__":true,"id":10853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10866}},"10866":{"$super":{"__isSmartRef__":true,"id":10867}},"10867":{"varMapping":{"__isSmartRef__":true,"id":10868},"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":10869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10868":{"obj":{"__isSmartRef__":true,"id":10853},"name":"onMouseUp"},"10869":{},"10870":{},"10871":{"varMapping":{"__isSmartRef__":true,"id":10872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10872":{"this":{"__isSmartRef__":true,"id":10853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10873}},"10873":{"$super":{"__isSmartRef__":true,"id":10874}},"10874":{"varMapping":{"__isSmartRef__":true,"id":10875},"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":10876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10875":{"obj":{"__isSmartRef__":true,"id":10853},"name":"toggle"},"10876":{},"10877":{},"10878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10879},"id":396,"renderContextTable":{"__isSmartRef__":true,"id":10883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10884},{"__isSmartRef__":true,"id":10886}],"eventHandler":{"__isSmartRef__":true,"id":10888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10889},"priorExtent":{"__isSmartRef__":true,"id":10890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10879":{"_Position":{"__isSmartRef__":true,"id":10880},"renderContextTable":{"__isSmartRef__":true,"id":10881},"_Extent":{"__isSmartRef__":true,"id":10882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10882":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10884":{"style":{"__isSmartRef__":true,"id":10885},"chunkOwner":{"__isSmartRef__":true,"id":10878},"storedString":"spinningStar","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10886":{"style":{"__isSmartRef__":true,"id":10887},"chunkOwner":{"__isSmartRef__":true,"id":10878},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10888":{"morph":{"__isSmartRef__":true,"id":10878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10890":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10891":{"layoutText":{"__isSmartRef__":true,"id":10892}},"10892":{"varMapping":{"__isSmartRef__":true,"id":10893},"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":10894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10893":{"this":{"__isSmartRef__":true,"id":10878}},"10894":{},"10895":{"_Position":{"__isSmartRef__":true,"id":10896},"renderContextTable":{"__isSmartRef__":true,"id":10897},"_Extent":{"__isSmartRef__":true,"id":10898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10901":{"morph":{"__isSmartRef__":true,"id":10852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10902":{"resizeWidth":true},"10903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10905":{"updateExpanderColor":{"__isSmartRef__":true,"id":10906},"onMouseDown":{"__isSmartRef__":true,"id":10909},"onMouseUp":{"__isSmartRef__":true,"id":10916},"isRoot":{"__isSmartRef__":true,"id":10923},"displayValue":{"__isSmartRef__":true,"id":10926},"update":{"__isSmartRef__":true,"id":10929}},"10906":{"varMapping":{"__isSmartRef__":true,"id":10907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":10908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10907":{"this":{"__isSmartRef__":true,"id":10852}},"10908":{},"10909":{"varMapping":{"__isSmartRef__":true,"id":10910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10910":{"this":{"__isSmartRef__":true,"id":10852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10911}},"10911":{"$super":{"__isSmartRef__":true,"id":10912}},"10912":{"varMapping":{"__isSmartRef__":true,"id":10913},"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":10914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10913":{"obj":{"__isSmartRef__":true,"id":10852},"name":"onMouseDown"},"10914":{},"10915":{},"10916":{"varMapping":{"__isSmartRef__":true,"id":10917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10917":{"this":{"__isSmartRef__":true,"id":10852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10918}},"10918":{"$super":{"__isSmartRef__":true,"id":10919}},"10919":{"varMapping":{"__isSmartRef__":true,"id":10920},"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":10921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10920":{"obj":{"__isSmartRef__":true,"id":10852},"name":"onMouseUp"},"10921":{},"10922":{},"10923":{"varMapping":{"__isSmartRef__":true,"id":10924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10924":{"this":{"__isSmartRef__":true,"id":10852}},"10925":{},"10926":{"varMapping":{"__isSmartRef__":true,"id":10927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":10928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10927":{"this":{"__isSmartRef__":true,"id":10852}},"10928":{},"10929":{"varMapping":{"__isSmartRef__":true,"id":10930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10930":{"this":{"__isSmartRef__":true,"id":10852}},"10931":{},"10932":{"_Position":{"__isSmartRef__":true,"id":10933},"renderContextTable":{"__isSmartRef__":true,"id":10934},"_Extent":{"__isSmartRef__":true,"id":10935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10938":{"morph":{"__isSmartRef__":true,"id":10851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10939":{"layouter":{"__isSmartRef__":true,"id":10940},"resizeWidth":true},"10940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10942":{"x":0,"y":1740,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10944}},"10944":{"varMapping":{"__isSmartRef__":true,"id":10945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10945":{"this":{"__isSmartRef__":true,"id":10851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10946}},"10946":{"$super":{"__isSmartRef__":true,"id":10947}},"10947":{"varMapping":{"__isSmartRef__":true,"id":10948},"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":10949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10948":{"obj":{"__isSmartRef__":true,"id":10851},"name":"getLayoutableSubmorphs"},"10949":{},"10950":{},"10951":{"submorphs":[{"__isSmartRef__":true,"id":10952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11032},"id":401,"renderContextTable":{"__isSmartRef__":true,"id":11037},"eventHandler":{"__isSmartRef__":true,"id":11038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10952":{"submorphs":[{"__isSmartRef__":true,"id":10953},{"__isSmartRef__":true,"id":10978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10995},"id":398,"renderContextTable":{"__isSmartRef__":true,"id":11000},"eventHandler":{"__isSmartRef__":true,"id":11001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11002},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"suppressBalloonHelp","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":10953},"text":{"__isSmartRef__":true,"id":10978},"owner":{"__isSmartRef__":true,"id":10951},"_Position":{"__isSmartRef__":true,"id":11003},"priorExtent":{"__isSmartRef__":true,"id":11004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10954},"id":399,"renderContextTable":{"__isSmartRef__":true,"id":10960},"eventHandler":{"__isSmartRef__":true,"id":10961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10954":{"_Position":{"__isSmartRef__":true,"id":10955},"renderContextTable":{"__isSmartRef__":true,"id":10956},"_Extent":{"__isSmartRef__":true,"id":10957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":10959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10961":{"morph":{"__isSmartRef__":true,"id":10953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10963":{"onMouseUp":{"__isSmartRef__":true,"id":10964},"toggle":{"__isSmartRef__":true,"id":10971}},"10964":{"varMapping":{"__isSmartRef__":true,"id":10965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":10970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10965":{"this":{"__isSmartRef__":true,"id":10953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10966}},"10966":{"$super":{"__isSmartRef__":true,"id":10967}},"10967":{"varMapping":{"__isSmartRef__":true,"id":10968},"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":10969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10968":{"obj":{"__isSmartRef__":true,"id":10953},"name":"onMouseUp"},"10969":{},"10970":{},"10971":{"varMapping":{"__isSmartRef__":true,"id":10972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":10977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10972":{"this":{"__isSmartRef__":true,"id":10953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10973}},"10973":{"$super":{"__isSmartRef__":true,"id":10974}},"10974":{"varMapping":{"__isSmartRef__":true,"id":10975},"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":10976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10975":{"obj":{"__isSmartRef__":true,"id":10953},"name":"toggle"},"10976":{},"10977":{},"10978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10979},"id":400,"renderContextTable":{"__isSmartRef__":true,"id":10983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10984},{"__isSmartRef__":true,"id":10986}],"eventHandler":{"__isSmartRef__":true,"id":10988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10989},"priorExtent":{"__isSmartRef__":true,"id":10990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10979":{"_Position":{"__isSmartRef__":true,"id":10980},"renderContextTable":{"__isSmartRef__":true,"id":10981},"_Extent":{"__isSmartRef__":true,"id":10982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10982":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10984":{"style":{"__isSmartRef__":true,"id":10985},"chunkOwner":{"__isSmartRef__":true,"id":10978},"storedString":"suppressBalloonHelp","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10986":{"style":{"__isSmartRef__":true,"id":10987},"chunkOwner":{"__isSmartRef__":true,"id":10978},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10988":{"morph":{"__isSmartRef__":true,"id":10978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10990":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10991":{"layoutText":{"__isSmartRef__":true,"id":10992}},"10992":{"varMapping":{"__isSmartRef__":true,"id":10993},"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":10994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10993":{"this":{"__isSmartRef__":true,"id":10978}},"10994":{},"10995":{"_Position":{"__isSmartRef__":true,"id":10996},"renderContextTable":{"__isSmartRef__":true,"id":10997},"_Extent":{"__isSmartRef__":true,"id":10998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11001":{"morph":{"__isSmartRef__":true,"id":10952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11002":{"resizeWidth":true},"11003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11005":{"updateExpanderColor":{"__isSmartRef__":true,"id":11006},"onMouseDown":{"__isSmartRef__":true,"id":11009},"onMouseUp":{"__isSmartRef__":true,"id":11016},"isRoot":{"__isSmartRef__":true,"id":11023},"displayValue":{"__isSmartRef__":true,"id":11026},"update":{"__isSmartRef__":true,"id":11029}},"11006":{"varMapping":{"__isSmartRef__":true,"id":11007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11007":{"this":{"__isSmartRef__":true,"id":10952}},"11008":{},"11009":{"varMapping":{"__isSmartRef__":true,"id":11010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11010":{"this":{"__isSmartRef__":true,"id":10952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11011}},"11011":{"$super":{"__isSmartRef__":true,"id":11012}},"11012":{"varMapping":{"__isSmartRef__":true,"id":11013},"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":11014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11013":{"obj":{"__isSmartRef__":true,"id":10952},"name":"onMouseDown"},"11014":{},"11015":{},"11016":{"varMapping":{"__isSmartRef__":true,"id":11017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11017":{"this":{"__isSmartRef__":true,"id":10952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11018}},"11018":{"$super":{"__isSmartRef__":true,"id":11019}},"11019":{"varMapping":{"__isSmartRef__":true,"id":11020},"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":11021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11020":{"obj":{"__isSmartRef__":true,"id":10952},"name":"onMouseUp"},"11021":{},"11022":{},"11023":{"varMapping":{"__isSmartRef__":true,"id":11024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11024":{"this":{"__isSmartRef__":true,"id":10952}},"11025":{},"11026":{"varMapping":{"__isSmartRef__":true,"id":11027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11027":{"this":{"__isSmartRef__":true,"id":10952}},"11028":{},"11029":{"varMapping":{"__isSmartRef__":true,"id":11030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11030":{"this":{"__isSmartRef__":true,"id":10952}},"11031":{},"11032":{"_Position":{"__isSmartRef__":true,"id":11033},"renderContextTable":{"__isSmartRef__":true,"id":11034},"_Extent":{"__isSmartRef__":true,"id":11035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11038":{"morph":{"__isSmartRef__":true,"id":10951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11039":{"layouter":{"__isSmartRef__":true,"id":11040},"resizeWidth":true},"11040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11042":{"x":0,"y":1760,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11044}},"11044":{"varMapping":{"__isSmartRef__":true,"id":11045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11045":{"this":{"__isSmartRef__":true,"id":10951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11046}},"11046":{"$super":{"__isSmartRef__":true,"id":11047}},"11047":{"varMapping":{"__isSmartRef__":true,"id":11048},"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":11049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11048":{"obj":{"__isSmartRef__":true,"id":10951},"name":"getLayoutableSubmorphs"},"11049":{},"11050":{},"11051":{"submorphs":[{"__isSmartRef__":true,"id":11052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11132},"id":405,"renderContextTable":{"__isSmartRef__":true,"id":11137},"eventHandler":{"__isSmartRef__":true,"id":11138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11052":{"submorphs":[{"__isSmartRef__":true,"id":11053},{"__isSmartRef__":true,"id":11078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11095},"id":402,"renderContextTable":{"__isSmartRef__":true,"id":11100},"eventHandler":{"__isSmartRef__":true,"id":11101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11102},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"suppressClipboardHack","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11053},"text":{"__isSmartRef__":true,"id":11078},"owner":{"__isSmartRef__":true,"id":11051},"_Position":{"__isSmartRef__":true,"id":11103},"priorExtent":{"__isSmartRef__":true,"id":11104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11054},"id":403,"renderContextTable":{"__isSmartRef__":true,"id":11060},"eventHandler":{"__isSmartRef__":true,"id":11061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11054":{"_Position":{"__isSmartRef__":true,"id":11055},"renderContextTable":{"__isSmartRef__":true,"id":11056},"_Extent":{"__isSmartRef__":true,"id":11057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11061":{"morph":{"__isSmartRef__":true,"id":11053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11063":{"onMouseUp":{"__isSmartRef__":true,"id":11064},"toggle":{"__isSmartRef__":true,"id":11071}},"11064":{"varMapping":{"__isSmartRef__":true,"id":11065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11065":{"this":{"__isSmartRef__":true,"id":11053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11066}},"11066":{"$super":{"__isSmartRef__":true,"id":11067}},"11067":{"varMapping":{"__isSmartRef__":true,"id":11068},"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":11069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11068":{"obj":{"__isSmartRef__":true,"id":11053},"name":"onMouseUp"},"11069":{},"11070":{},"11071":{"varMapping":{"__isSmartRef__":true,"id":11072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11072":{"this":{"__isSmartRef__":true,"id":11053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11073}},"11073":{"$super":{"__isSmartRef__":true,"id":11074}},"11074":{"varMapping":{"__isSmartRef__":true,"id":11075},"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":11076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11075":{"obj":{"__isSmartRef__":true,"id":11053},"name":"toggle"},"11076":{},"11077":{},"11078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11079},"id":404,"renderContextTable":{"__isSmartRef__":true,"id":11083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11084},{"__isSmartRef__":true,"id":11086}],"eventHandler":{"__isSmartRef__":true,"id":11088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11089},"priorExtent":{"__isSmartRef__":true,"id":11090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11079":{"_Position":{"__isSmartRef__":true,"id":11080},"renderContextTable":{"__isSmartRef__":true,"id":11081},"_Extent":{"__isSmartRef__":true,"id":11082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11082":{"x":218,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11084":{"style":{"__isSmartRef__":true,"id":11085},"chunkOwner":{"__isSmartRef__":true,"id":11078},"storedString":"suppressClipboardHack","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11086":{"style":{"__isSmartRef__":true,"id":11087},"chunkOwner":{"__isSmartRef__":true,"id":11078},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11088":{"morph":{"__isSmartRef__":true,"id":11078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11090":{"x":210,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11091":{"layoutText":{"__isSmartRef__":true,"id":11092}},"11092":{"varMapping":{"__isSmartRef__":true,"id":11093},"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":11094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11093":{"this":{"__isSmartRef__":true,"id":11078}},"11094":{},"11095":{"_Position":{"__isSmartRef__":true,"id":11096},"renderContextTable":{"__isSmartRef__":true,"id":11097},"_Extent":{"__isSmartRef__":true,"id":11098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11101":{"morph":{"__isSmartRef__":true,"id":11052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11102":{"resizeWidth":true},"11103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11105":{"updateExpanderColor":{"__isSmartRef__":true,"id":11106},"onMouseDown":{"__isSmartRef__":true,"id":11109},"onMouseUp":{"__isSmartRef__":true,"id":11116},"isRoot":{"__isSmartRef__":true,"id":11123},"displayValue":{"__isSmartRef__":true,"id":11126},"update":{"__isSmartRef__":true,"id":11129}},"11106":{"varMapping":{"__isSmartRef__":true,"id":11107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11107":{"this":{"__isSmartRef__":true,"id":11052}},"11108":{},"11109":{"varMapping":{"__isSmartRef__":true,"id":11110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11110":{"this":{"__isSmartRef__":true,"id":11052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11111}},"11111":{"$super":{"__isSmartRef__":true,"id":11112}},"11112":{"varMapping":{"__isSmartRef__":true,"id":11113},"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":11114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11113":{"obj":{"__isSmartRef__":true,"id":11052},"name":"onMouseDown"},"11114":{},"11115":{},"11116":{"varMapping":{"__isSmartRef__":true,"id":11117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11117":{"this":{"__isSmartRef__":true,"id":11052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11118}},"11118":{"$super":{"__isSmartRef__":true,"id":11119}},"11119":{"varMapping":{"__isSmartRef__":true,"id":11120},"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":11121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11120":{"obj":{"__isSmartRef__":true,"id":11052},"name":"onMouseUp"},"11121":{},"11122":{},"11123":{"varMapping":{"__isSmartRef__":true,"id":11124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11124":{"this":{"__isSmartRef__":true,"id":11052}},"11125":{},"11126":{"varMapping":{"__isSmartRef__":true,"id":11127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11127":{"this":{"__isSmartRef__":true,"id":11052}},"11128":{},"11129":{"varMapping":{"__isSmartRef__":true,"id":11130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11130":{"this":{"__isSmartRef__":true,"id":11052}},"11131":{},"11132":{"_Position":{"__isSmartRef__":true,"id":11133},"renderContextTable":{"__isSmartRef__":true,"id":11134},"_Extent":{"__isSmartRef__":true,"id":11135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11138":{"morph":{"__isSmartRef__":true,"id":11051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11139":{"layouter":{"__isSmartRef__":true,"id":11140},"resizeWidth":true},"11140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11142":{"x":0,"y":1780,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11144}},"11144":{"varMapping":{"__isSmartRef__":true,"id":11145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11145":{"this":{"__isSmartRef__":true,"id":11051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11146}},"11146":{"$super":{"__isSmartRef__":true,"id":11147}},"11147":{"varMapping":{"__isSmartRef__":true,"id":11148},"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":11149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11148":{"obj":{"__isSmartRef__":true,"id":11051},"name":"getLayoutableSubmorphs"},"11149":{},"11150":{},"11151":{"submorphs":[{"__isSmartRef__":true,"id":11152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11232},"id":409,"renderContextTable":{"__isSmartRef__":true,"id":11237},"eventHandler":{"__isSmartRef__":true,"id":11238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11152":{"submorphs":[{"__isSmartRef__":true,"id":11153},{"__isSmartRef__":true,"id":11178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11195},"id":406,"renderContextTable":{"__isSmartRef__":true,"id":11200},"eventHandler":{"__isSmartRef__":true,"id":11201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11202},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"suppressDefaultMouseBehavior","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11153},"text":{"__isSmartRef__":true,"id":11178},"owner":{"__isSmartRef__":true,"id":11151},"_Position":{"__isSmartRef__":true,"id":11203},"priorExtent":{"__isSmartRef__":true,"id":11204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11154},"id":407,"renderContextTable":{"__isSmartRef__":true,"id":11160},"eventHandler":{"__isSmartRef__":true,"id":11161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11154":{"_Position":{"__isSmartRef__":true,"id":11155},"renderContextTable":{"__isSmartRef__":true,"id":11156},"_Extent":{"__isSmartRef__":true,"id":11157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11161":{"morph":{"__isSmartRef__":true,"id":11153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11163":{"onMouseUp":{"__isSmartRef__":true,"id":11164},"toggle":{"__isSmartRef__":true,"id":11171}},"11164":{"varMapping":{"__isSmartRef__":true,"id":11165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11165":{"this":{"__isSmartRef__":true,"id":11153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11166}},"11166":{"$super":{"__isSmartRef__":true,"id":11167}},"11167":{"varMapping":{"__isSmartRef__":true,"id":11168},"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":11169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11168":{"obj":{"__isSmartRef__":true,"id":11153},"name":"onMouseUp"},"11169":{},"11170":{},"11171":{"varMapping":{"__isSmartRef__":true,"id":11172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11172":{"this":{"__isSmartRef__":true,"id":11153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11173}},"11173":{"$super":{"__isSmartRef__":true,"id":11174}},"11174":{"varMapping":{"__isSmartRef__":true,"id":11175},"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":11176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11175":{"obj":{"__isSmartRef__":true,"id":11153},"name":"toggle"},"11176":{},"11177":{},"11178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11179},"id":408,"renderContextTable":{"__isSmartRef__":true,"id":11183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11184},{"__isSmartRef__":true,"id":11186}],"eventHandler":{"__isSmartRef__":true,"id":11188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11189},"priorExtent":{"__isSmartRef__":true,"id":11190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11179":{"_Position":{"__isSmartRef__":true,"id":11180},"renderContextTable":{"__isSmartRef__":true,"id":11181},"_Extent":{"__isSmartRef__":true,"id":11182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11182":{"x":263,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11184":{"style":{"__isSmartRef__":true,"id":11185},"chunkOwner":{"__isSmartRef__":true,"id":11178},"storedString":"suppressDefaultMouseBehavior","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11186":{"style":{"__isSmartRef__":true,"id":11187},"chunkOwner":{"__isSmartRef__":true,"id":11178},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11188":{"morph":{"__isSmartRef__":true,"id":11178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11190":{"x":255,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11191":{"layoutText":{"__isSmartRef__":true,"id":11192}},"11192":{"varMapping":{"__isSmartRef__":true,"id":11193},"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":11194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11193":{"this":{"__isSmartRef__":true,"id":11178}},"11194":{},"11195":{"_Position":{"__isSmartRef__":true,"id":11196},"renderContextTable":{"__isSmartRef__":true,"id":11197},"_Extent":{"__isSmartRef__":true,"id":11198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11201":{"morph":{"__isSmartRef__":true,"id":11152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11202":{"resizeWidth":true},"11203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11205":{"updateExpanderColor":{"__isSmartRef__":true,"id":11206},"onMouseDown":{"__isSmartRef__":true,"id":11209},"onMouseUp":{"__isSmartRef__":true,"id":11216},"isRoot":{"__isSmartRef__":true,"id":11223},"displayValue":{"__isSmartRef__":true,"id":11226},"update":{"__isSmartRef__":true,"id":11229}},"11206":{"varMapping":{"__isSmartRef__":true,"id":11207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11207":{"this":{"__isSmartRef__":true,"id":11152}},"11208":{},"11209":{"varMapping":{"__isSmartRef__":true,"id":11210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11210":{"this":{"__isSmartRef__":true,"id":11152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11211}},"11211":{"$super":{"__isSmartRef__":true,"id":11212}},"11212":{"varMapping":{"__isSmartRef__":true,"id":11213},"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":11214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11213":{"obj":{"__isSmartRef__":true,"id":11152},"name":"onMouseDown"},"11214":{},"11215":{},"11216":{"varMapping":{"__isSmartRef__":true,"id":11217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11217":{"this":{"__isSmartRef__":true,"id":11152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11218}},"11218":{"$super":{"__isSmartRef__":true,"id":11219}},"11219":{"varMapping":{"__isSmartRef__":true,"id":11220},"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":11221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11220":{"obj":{"__isSmartRef__":true,"id":11152},"name":"onMouseUp"},"11221":{},"11222":{},"11223":{"varMapping":{"__isSmartRef__":true,"id":11224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11224":{"this":{"__isSmartRef__":true,"id":11152}},"11225":{},"11226":{"varMapping":{"__isSmartRef__":true,"id":11227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11227":{"this":{"__isSmartRef__":true,"id":11152}},"11228":{},"11229":{"varMapping":{"__isSmartRef__":true,"id":11230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11230":{"this":{"__isSmartRef__":true,"id":11152}},"11231":{},"11232":{"_Position":{"__isSmartRef__":true,"id":11233},"renderContextTable":{"__isSmartRef__":true,"id":11234},"_Extent":{"__isSmartRef__":true,"id":11235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11238":{"morph":{"__isSmartRef__":true,"id":11151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11239":{"layouter":{"__isSmartRef__":true,"id":11240},"resizeWidth":true},"11240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11242":{"x":0,"y":1800,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11244}},"11244":{"varMapping":{"__isSmartRef__":true,"id":11245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11245":{"this":{"__isSmartRef__":true,"id":11151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11246}},"11246":{"$super":{"__isSmartRef__":true,"id":11247}},"11247":{"varMapping":{"__isSmartRef__":true,"id":11248},"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":11249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11248":{"obj":{"__isSmartRef__":true,"id":11151},"name":"getLayoutableSubmorphs"},"11249":{},"11250":{},"11251":{"submorphs":[{"__isSmartRef__":true,"id":11252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11332},"id":413,"renderContextTable":{"__isSmartRef__":true,"id":11337},"eventHandler":{"__isSmartRef__":true,"id":11338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11252":{"submorphs":[{"__isSmartRef__":true,"id":11253},{"__isSmartRef__":true,"id":11278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11295},"id":410,"renderContextTable":{"__isSmartRef__":true,"id":11300},"eventHandler":{"__isSmartRef__":true,"id":11301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11302},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"suppressWebStoreCaching","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11253},"text":{"__isSmartRef__":true,"id":11278},"owner":{"__isSmartRef__":true,"id":11251},"_Position":{"__isSmartRef__":true,"id":11303},"priorExtent":{"__isSmartRef__":true,"id":11304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11254},"id":411,"renderContextTable":{"__isSmartRef__":true,"id":11260},"eventHandler":{"__isSmartRef__":true,"id":11261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11254":{"_Position":{"__isSmartRef__":true,"id":11255},"renderContextTable":{"__isSmartRef__":true,"id":11256},"_Extent":{"__isSmartRef__":true,"id":11257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11261":{"morph":{"__isSmartRef__":true,"id":11253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11263":{"onMouseUp":{"__isSmartRef__":true,"id":11264},"toggle":{"__isSmartRef__":true,"id":11271}},"11264":{"varMapping":{"__isSmartRef__":true,"id":11265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11265":{"this":{"__isSmartRef__":true,"id":11253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11266}},"11266":{"$super":{"__isSmartRef__":true,"id":11267}},"11267":{"varMapping":{"__isSmartRef__":true,"id":11268},"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":11269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11268":{"obj":{"__isSmartRef__":true,"id":11253},"name":"onMouseUp"},"11269":{},"11270":{},"11271":{"varMapping":{"__isSmartRef__":true,"id":11272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11272":{"this":{"__isSmartRef__":true,"id":11253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11273}},"11273":{"$super":{"__isSmartRef__":true,"id":11274}},"11274":{"varMapping":{"__isSmartRef__":true,"id":11275},"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":11276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11275":{"obj":{"__isSmartRef__":true,"id":11253},"name":"toggle"},"11276":{},"11277":{},"11278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11279},"id":412,"renderContextTable":{"__isSmartRef__":true,"id":11283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11284},{"__isSmartRef__":true,"id":11286}],"eventHandler":{"__isSmartRef__":true,"id":11288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11289},"priorExtent":{"__isSmartRef__":true,"id":11290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11279":{"_Position":{"__isSmartRef__":true,"id":11280},"renderContextTable":{"__isSmartRef__":true,"id":11281},"_Extent":{"__isSmartRef__":true,"id":11282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11282":{"x":233,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11284":{"style":{"__isSmartRef__":true,"id":11285},"chunkOwner":{"__isSmartRef__":true,"id":11278},"storedString":"suppressWebStoreCaching","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11286":{"style":{"__isSmartRef__":true,"id":11287},"chunkOwner":{"__isSmartRef__":true,"id":11278},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11288":{"morph":{"__isSmartRef__":true,"id":11278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11290":{"x":225,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11291":{"layoutText":{"__isSmartRef__":true,"id":11292}},"11292":{"varMapping":{"__isSmartRef__":true,"id":11293},"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":11294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11293":{"this":{"__isSmartRef__":true,"id":11278}},"11294":{},"11295":{"_Position":{"__isSmartRef__":true,"id":11296},"renderContextTable":{"__isSmartRef__":true,"id":11297},"_Extent":{"__isSmartRef__":true,"id":11298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11301":{"morph":{"__isSmartRef__":true,"id":11252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11302":{"resizeWidth":true},"11303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11305":{"updateExpanderColor":{"__isSmartRef__":true,"id":11306},"onMouseDown":{"__isSmartRef__":true,"id":11309},"onMouseUp":{"__isSmartRef__":true,"id":11316},"isRoot":{"__isSmartRef__":true,"id":11323},"displayValue":{"__isSmartRef__":true,"id":11326},"update":{"__isSmartRef__":true,"id":11329}},"11306":{"varMapping":{"__isSmartRef__":true,"id":11307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11307":{"this":{"__isSmartRef__":true,"id":11252}},"11308":{},"11309":{"varMapping":{"__isSmartRef__":true,"id":11310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11310":{"this":{"__isSmartRef__":true,"id":11252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11311}},"11311":{"$super":{"__isSmartRef__":true,"id":11312}},"11312":{"varMapping":{"__isSmartRef__":true,"id":11313},"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":11314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11313":{"obj":{"__isSmartRef__":true,"id":11252},"name":"onMouseDown"},"11314":{},"11315":{},"11316":{"varMapping":{"__isSmartRef__":true,"id":11317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11317":{"this":{"__isSmartRef__":true,"id":11252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11318}},"11318":{"$super":{"__isSmartRef__":true,"id":11319}},"11319":{"varMapping":{"__isSmartRef__":true,"id":11320},"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":11321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11320":{"obj":{"__isSmartRef__":true,"id":11252},"name":"onMouseUp"},"11321":{},"11322":{},"11323":{"varMapping":{"__isSmartRef__":true,"id":11324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11324":{"this":{"__isSmartRef__":true,"id":11252}},"11325":{},"11326":{"varMapping":{"__isSmartRef__":true,"id":11327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11327":{"this":{"__isSmartRef__":true,"id":11252}},"11328":{},"11329":{"varMapping":{"__isSmartRef__":true,"id":11330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11330":{"this":{"__isSmartRef__":true,"id":11252}},"11331":{},"11332":{"_Position":{"__isSmartRef__":true,"id":11333},"renderContextTable":{"__isSmartRef__":true,"id":11334},"_Extent":{"__isSmartRef__":true,"id":11335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11338":{"morph":{"__isSmartRef__":true,"id":11251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11339":{"layouter":{"__isSmartRef__":true,"id":11340},"resizeWidth":true},"11340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11342":{"x":0,"y":1820,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11344}},"11344":{"varMapping":{"__isSmartRef__":true,"id":11345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11345":{"this":{"__isSmartRef__":true,"id":11251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11346}},"11346":{"$super":{"__isSmartRef__":true,"id":11347}},"11347":{"varMapping":{"__isSmartRef__":true,"id":11348},"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":11349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11348":{"obj":{"__isSmartRef__":true,"id":11251},"name":"getLayoutableSubmorphs"},"11349":{},"11350":{},"11351":{"submorphs":[{"__isSmartRef__":true,"id":11352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11432},"id":417,"renderContextTable":{"__isSmartRef__":true,"id":11437},"eventHandler":{"__isSmartRef__":true,"id":11438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11352":{"submorphs":[{"__isSmartRef__":true,"id":11353},{"__isSmartRef__":true,"id":11378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11395},"id":414,"renderContextTable":{"__isSmartRef__":true,"id":11400},"eventHandler":{"__isSmartRef__":true,"id":11401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11402},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"suspendScriptsOnWorldExit","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11353},"text":{"__isSmartRef__":true,"id":11378},"owner":{"__isSmartRef__":true,"id":11351},"_Position":{"__isSmartRef__":true,"id":11403},"priorExtent":{"__isSmartRef__":true,"id":11404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11354},"id":415,"renderContextTable":{"__isSmartRef__":true,"id":11360},"eventHandler":{"__isSmartRef__":true,"id":11361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11354":{"_Position":{"__isSmartRef__":true,"id":11355},"renderContextTable":{"__isSmartRef__":true,"id":11356},"_Extent":{"__isSmartRef__":true,"id":11357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11361":{"morph":{"__isSmartRef__":true,"id":11353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11363":{"onMouseUp":{"__isSmartRef__":true,"id":11364},"toggle":{"__isSmartRef__":true,"id":11371}},"11364":{"varMapping":{"__isSmartRef__":true,"id":11365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11365":{"this":{"__isSmartRef__":true,"id":11353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11366}},"11366":{"$super":{"__isSmartRef__":true,"id":11367}},"11367":{"varMapping":{"__isSmartRef__":true,"id":11368},"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":11369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11368":{"obj":{"__isSmartRef__":true,"id":11353},"name":"onMouseUp"},"11369":{},"11370":{},"11371":{"varMapping":{"__isSmartRef__":true,"id":11372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11372":{"this":{"__isSmartRef__":true,"id":11353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11373}},"11373":{"$super":{"__isSmartRef__":true,"id":11374}},"11374":{"varMapping":{"__isSmartRef__":true,"id":11375},"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":11376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11375":{"obj":{"__isSmartRef__":true,"id":11353},"name":"toggle"},"11376":{},"11377":{},"11378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11379},"id":416,"renderContextTable":{"__isSmartRef__":true,"id":11383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11384},{"__isSmartRef__":true,"id":11386}],"eventHandler":{"__isSmartRef__":true,"id":11388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11389},"priorExtent":{"__isSmartRef__":true,"id":11390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11379":{"_Position":{"__isSmartRef__":true,"id":11380},"renderContextTable":{"__isSmartRef__":true,"id":11381},"_Extent":{"__isSmartRef__":true,"id":11382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11382":{"x":240.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11384":{"style":{"__isSmartRef__":true,"id":11385},"chunkOwner":{"__isSmartRef__":true,"id":11378},"storedString":"suspendScriptsOnWorldExit","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11386":{"style":{"__isSmartRef__":true,"id":11387},"chunkOwner":{"__isSmartRef__":true,"id":11378},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11388":{"morph":{"__isSmartRef__":true,"id":11378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11390":{"x":232.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11391":{"layoutText":{"__isSmartRef__":true,"id":11392}},"11392":{"varMapping":{"__isSmartRef__":true,"id":11393},"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":11394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11393":{"this":{"__isSmartRef__":true,"id":11378}},"11394":{},"11395":{"_Position":{"__isSmartRef__":true,"id":11396},"renderContextTable":{"__isSmartRef__":true,"id":11397},"_Extent":{"__isSmartRef__":true,"id":11398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11401":{"morph":{"__isSmartRef__":true,"id":11352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11402":{"resizeWidth":true},"11403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11405":{"updateExpanderColor":{"__isSmartRef__":true,"id":11406},"onMouseDown":{"__isSmartRef__":true,"id":11409},"onMouseUp":{"__isSmartRef__":true,"id":11416},"isRoot":{"__isSmartRef__":true,"id":11423},"displayValue":{"__isSmartRef__":true,"id":11426},"update":{"__isSmartRef__":true,"id":11429}},"11406":{"varMapping":{"__isSmartRef__":true,"id":11407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11407":{"this":{"__isSmartRef__":true,"id":11352}},"11408":{},"11409":{"varMapping":{"__isSmartRef__":true,"id":11410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11410":{"this":{"__isSmartRef__":true,"id":11352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11411}},"11411":{"$super":{"__isSmartRef__":true,"id":11412}},"11412":{"varMapping":{"__isSmartRef__":true,"id":11413},"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":11414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11413":{"obj":{"__isSmartRef__":true,"id":11352},"name":"onMouseDown"},"11414":{},"11415":{},"11416":{"varMapping":{"__isSmartRef__":true,"id":11417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11417":{"this":{"__isSmartRef__":true,"id":11352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11418}},"11418":{"$super":{"__isSmartRef__":true,"id":11419}},"11419":{"varMapping":{"__isSmartRef__":true,"id":11420},"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":11421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11420":{"obj":{"__isSmartRef__":true,"id":11352},"name":"onMouseUp"},"11421":{},"11422":{},"11423":{"varMapping":{"__isSmartRef__":true,"id":11424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11424":{"this":{"__isSmartRef__":true,"id":11352}},"11425":{},"11426":{"varMapping":{"__isSmartRef__":true,"id":11427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11427":{"this":{"__isSmartRef__":true,"id":11352}},"11428":{},"11429":{"varMapping":{"__isSmartRef__":true,"id":11430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11430":{"this":{"__isSmartRef__":true,"id":11352}},"11431":{},"11432":{"_Position":{"__isSmartRef__":true,"id":11433},"renderContextTable":{"__isSmartRef__":true,"id":11434},"_Extent":{"__isSmartRef__":true,"id":11435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11438":{"morph":{"__isSmartRef__":true,"id":11351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11439":{"layouter":{"__isSmartRef__":true,"id":11440},"resizeWidth":true},"11440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11442":{"x":0,"y":1840,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11444}},"11444":{"varMapping":{"__isSmartRef__":true,"id":11445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11445":{"this":{"__isSmartRef__":true,"id":11351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11446}},"11446":{"$super":{"__isSmartRef__":true,"id":11447}},"11447":{"varMapping":{"__isSmartRef__":true,"id":11448},"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":11449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11448":{"obj":{"__isSmartRef__":true,"id":11351},"name":"getLayoutableSubmorphs"},"11449":{},"11450":{},"11451":{"submorphs":[{"__isSmartRef__":true,"id":11452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11532},"id":421,"renderContextTable":{"__isSmartRef__":true,"id":11537},"eventHandler":{"__isSmartRef__":true,"id":11538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11452":{"submorphs":[{"__isSmartRef__":true,"id":11453},{"__isSmartRef__":true,"id":11478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11495},"id":418,"renderContextTable":{"__isSmartRef__":true,"id":11500},"eventHandler":{"__isSmartRef__":true,"id":11501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11502},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"testInRealWorld","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11453},"text":{"__isSmartRef__":true,"id":11478},"owner":{"__isSmartRef__":true,"id":11451},"_Position":{"__isSmartRef__":true,"id":11503},"priorExtent":{"__isSmartRef__":true,"id":11504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11454},"id":419,"renderContextTable":{"__isSmartRef__":true,"id":11460},"eventHandler":{"__isSmartRef__":true,"id":11461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11454":{"_Position":{"__isSmartRef__":true,"id":11455},"renderContextTable":{"__isSmartRef__":true,"id":11456},"_Extent":{"__isSmartRef__":true,"id":11457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11461":{"morph":{"__isSmartRef__":true,"id":11453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11463":{"onMouseUp":{"__isSmartRef__":true,"id":11464},"toggle":{"__isSmartRef__":true,"id":11471}},"11464":{"varMapping":{"__isSmartRef__":true,"id":11465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11465":{"this":{"__isSmartRef__":true,"id":11453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11466}},"11466":{"$super":{"__isSmartRef__":true,"id":11467}},"11467":{"varMapping":{"__isSmartRef__":true,"id":11468},"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":11469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11468":{"obj":{"__isSmartRef__":true,"id":11453},"name":"onMouseUp"},"11469":{},"11470":{},"11471":{"varMapping":{"__isSmartRef__":true,"id":11472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11472":{"this":{"__isSmartRef__":true,"id":11453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11473}},"11473":{"$super":{"__isSmartRef__":true,"id":11474}},"11474":{"varMapping":{"__isSmartRef__":true,"id":11475},"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":11476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11475":{"obj":{"__isSmartRef__":true,"id":11453},"name":"toggle"},"11476":{},"11477":{},"11478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11479},"id":420,"renderContextTable":{"__isSmartRef__":true,"id":11483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11484},{"__isSmartRef__":true,"id":11486}],"eventHandler":{"__isSmartRef__":true,"id":11488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11489},"priorExtent":{"__isSmartRef__":true,"id":11490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11479":{"_Position":{"__isSmartRef__":true,"id":11480},"renderContextTable":{"__isSmartRef__":true,"id":11481},"_Extent":{"__isSmartRef__":true,"id":11482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11482":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11484":{"style":{"__isSmartRef__":true,"id":11485},"chunkOwner":{"__isSmartRef__":true,"id":11478},"storedString":"testInRealWorld","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11486":{"style":{"__isSmartRef__":true,"id":11487},"chunkOwner":{"__isSmartRef__":true,"id":11478},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11488":{"morph":{"__isSmartRef__":true,"id":11478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11490":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11491":{"layoutText":{"__isSmartRef__":true,"id":11492}},"11492":{"varMapping":{"__isSmartRef__":true,"id":11493},"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":11494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11493":{"this":{"__isSmartRef__":true,"id":11478}},"11494":{},"11495":{"_Position":{"__isSmartRef__":true,"id":11496},"renderContextTable":{"__isSmartRef__":true,"id":11497},"_Extent":{"__isSmartRef__":true,"id":11498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11501":{"morph":{"__isSmartRef__":true,"id":11452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11502":{"resizeWidth":true},"11503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11505":{"updateExpanderColor":{"__isSmartRef__":true,"id":11506},"onMouseDown":{"__isSmartRef__":true,"id":11509},"onMouseUp":{"__isSmartRef__":true,"id":11516},"isRoot":{"__isSmartRef__":true,"id":11523},"displayValue":{"__isSmartRef__":true,"id":11526},"update":{"__isSmartRef__":true,"id":11529}},"11506":{"varMapping":{"__isSmartRef__":true,"id":11507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11507":{"this":{"__isSmartRef__":true,"id":11452}},"11508":{},"11509":{"varMapping":{"__isSmartRef__":true,"id":11510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11510":{"this":{"__isSmartRef__":true,"id":11452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11511}},"11511":{"$super":{"__isSmartRef__":true,"id":11512}},"11512":{"varMapping":{"__isSmartRef__":true,"id":11513},"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":11514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11513":{"obj":{"__isSmartRef__":true,"id":11452},"name":"onMouseDown"},"11514":{},"11515":{},"11516":{"varMapping":{"__isSmartRef__":true,"id":11517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11517":{"this":{"__isSmartRef__":true,"id":11452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11518}},"11518":{"$super":{"__isSmartRef__":true,"id":11519}},"11519":{"varMapping":{"__isSmartRef__":true,"id":11520},"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":11521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11520":{"obj":{"__isSmartRef__":true,"id":11452},"name":"onMouseUp"},"11521":{},"11522":{},"11523":{"varMapping":{"__isSmartRef__":true,"id":11524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11524":{"this":{"__isSmartRef__":true,"id":11452}},"11525":{},"11526":{"varMapping":{"__isSmartRef__":true,"id":11527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11527":{"this":{"__isSmartRef__":true,"id":11452}},"11528":{},"11529":{"varMapping":{"__isSmartRef__":true,"id":11530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11530":{"this":{"__isSmartRef__":true,"id":11452}},"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"},"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"},"11536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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":11451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11539":{"layouter":{"__isSmartRef__":true,"id":11540},"resizeWidth":true},"11540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11542":{"x":0,"y":1860,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11544}},"11544":{"varMapping":{"__isSmartRef__":true,"id":11545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11545":{"this":{"__isSmartRef__":true,"id":11451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11546}},"11546":{"$super":{"__isSmartRef__":true,"id":11547}},"11547":{"varMapping":{"__isSmartRef__":true,"id":11548},"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":11549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11548":{"obj":{"__isSmartRef__":true,"id":11451},"name":"getLayoutableSubmorphs"},"11549":{},"11550":{},"11551":{"submorphs":[{"__isSmartRef__":true,"id":11552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11632},"id":425,"renderContextTable":{"__isSmartRef__":true,"id":11637},"eventHandler":{"__isSmartRef__":true,"id":11638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11552":{"submorphs":[{"__isSmartRef__":true,"id":11553},{"__isSmartRef__":true,"id":11578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11595},"id":422,"renderContextTable":{"__isSmartRef__":true,"id":11600},"eventHandler":{"__isSmartRef__":true,"id":11601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11602},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"touchBeMouse","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11553},"text":{"__isSmartRef__":true,"id":11578},"owner":{"__isSmartRef__":true,"id":11551},"_Position":{"__isSmartRef__":true,"id":11603},"priorExtent":{"__isSmartRef__":true,"id":11604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11554},"id":423,"renderContextTable":{"__isSmartRef__":true,"id":11560},"eventHandler":{"__isSmartRef__":true,"id":11561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11554":{"_Position":{"__isSmartRef__":true,"id":11555},"renderContextTable":{"__isSmartRef__":true,"id":11556},"_Extent":{"__isSmartRef__":true,"id":11557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11557":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11561":{"morph":{"__isSmartRef__":true,"id":11553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11563":{"onMouseUp":{"__isSmartRef__":true,"id":11564},"toggle":{"__isSmartRef__":true,"id":11571}},"11564":{"varMapping":{"__isSmartRef__":true,"id":11565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11565":{"this":{"__isSmartRef__":true,"id":11553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11566}},"11566":{"$super":{"__isSmartRef__":true,"id":11567}},"11567":{"varMapping":{"__isSmartRef__":true,"id":11568},"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":11569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11568":{"obj":{"__isSmartRef__":true,"id":11553},"name":"onMouseUp"},"11569":{},"11570":{},"11571":{"varMapping":{"__isSmartRef__":true,"id":11572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11572":{"this":{"__isSmartRef__":true,"id":11553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11573}},"11573":{"$super":{"__isSmartRef__":true,"id":11574}},"11574":{"varMapping":{"__isSmartRef__":true,"id":11575},"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":11576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11575":{"obj":{"__isSmartRef__":true,"id":11553},"name":"toggle"},"11576":{},"11577":{},"11578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11579},"id":424,"renderContextTable":{"__isSmartRef__":true,"id":11583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11584},{"__isSmartRef__":true,"id":11586}],"eventHandler":{"__isSmartRef__":true,"id":11588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11589},"priorExtent":{"__isSmartRef__":true,"id":11590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11579":{"_Position":{"__isSmartRef__":true,"id":11580},"renderContextTable":{"__isSmartRef__":true,"id":11581},"_Extent":{"__isSmartRef__":true,"id":11582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11582":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11584":{"style":{"__isSmartRef__":true,"id":11585},"chunkOwner":{"__isSmartRef__":true,"id":11578},"storedString":"touchBeMouse","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11586":{"style":{"__isSmartRef__":true,"id":11587},"chunkOwner":{"__isSmartRef__":true,"id":11578},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11588":{"morph":{"__isSmartRef__":true,"id":11578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11590":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11591":{"layoutText":{"__isSmartRef__":true,"id":11592}},"11592":{"varMapping":{"__isSmartRef__":true,"id":11593},"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":11594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11593":{"this":{"__isSmartRef__":true,"id":11578}},"11594":{},"11595":{"_Position":{"__isSmartRef__":true,"id":11596},"renderContextTable":{"__isSmartRef__":true,"id":11597},"_Extent":{"__isSmartRef__":true,"id":11598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11601":{"morph":{"__isSmartRef__":true,"id":11552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11602":{"resizeWidth":true},"11603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11605":{"updateExpanderColor":{"__isSmartRef__":true,"id":11606},"onMouseDown":{"__isSmartRef__":true,"id":11609},"onMouseUp":{"__isSmartRef__":true,"id":11616},"isRoot":{"__isSmartRef__":true,"id":11623},"displayValue":{"__isSmartRef__":true,"id":11626},"update":{"__isSmartRef__":true,"id":11629}},"11606":{"varMapping":{"__isSmartRef__":true,"id":11607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11607":{"this":{"__isSmartRef__":true,"id":11552}},"11608":{},"11609":{"varMapping":{"__isSmartRef__":true,"id":11610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11610":{"this":{"__isSmartRef__":true,"id":11552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11611}},"11611":{"$super":{"__isSmartRef__":true,"id":11612}},"11612":{"varMapping":{"__isSmartRef__":true,"id":11613},"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":11614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11613":{"obj":{"__isSmartRef__":true,"id":11552},"name":"onMouseDown"},"11614":{},"11615":{},"11616":{"varMapping":{"__isSmartRef__":true,"id":11617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11617":{"this":{"__isSmartRef__":true,"id":11552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11618}},"11618":{"$super":{"__isSmartRef__":true,"id":11619}},"11619":{"varMapping":{"__isSmartRef__":true,"id":11620},"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":11621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11620":{"obj":{"__isSmartRef__":true,"id":11552},"name":"onMouseUp"},"11621":{},"11622":{},"11623":{"varMapping":{"__isSmartRef__":true,"id":11624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11624":{"this":{"__isSmartRef__":true,"id":11552}},"11625":{},"11626":{"varMapping":{"__isSmartRef__":true,"id":11627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11627":{"this":{"__isSmartRef__":true,"id":11552}},"11628":{},"11629":{"varMapping":{"__isSmartRef__":true,"id":11630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11630":{"this":{"__isSmartRef__":true,"id":11552}},"11631":{},"11632":{"_Position":{"__isSmartRef__":true,"id":11633},"renderContextTable":{"__isSmartRef__":true,"id":11634},"_Extent":{"__isSmartRef__":true,"id":11635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11638":{"morph":{"__isSmartRef__":true,"id":11551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11639":{"layouter":{"__isSmartRef__":true,"id":11640},"resizeWidth":true},"11640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11642":{"x":0,"y":1880,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11644}},"11644":{"varMapping":{"__isSmartRef__":true,"id":11645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11645":{"this":{"__isSmartRef__":true,"id":11551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11646}},"11646":{"$super":{"__isSmartRef__":true,"id":11647}},"11647":{"varMapping":{"__isSmartRef__":true,"id":11648},"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":11649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11648":{"obj":{"__isSmartRef__":true,"id":11551},"name":"getLayoutableSubmorphs"},"11649":{},"11650":{},"11651":{"submorphs":[{"__isSmartRef__":true,"id":11652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11732},"id":429,"renderContextTable":{"__isSmartRef__":true,"id":11737},"eventHandler":{"__isSmartRef__":true,"id":11738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11652":{"submorphs":[{"__isSmartRef__":true,"id":11653},{"__isSmartRef__":true,"id":11678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11695},"id":426,"renderContextTable":{"__isSmartRef__":true,"id":11700},"eventHandler":{"__isSmartRef__":true,"id":11701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11702},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useAltAsCommand","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11653},"text":{"__isSmartRef__":true,"id":11678},"owner":{"__isSmartRef__":true,"id":11651},"_Position":{"__isSmartRef__":true,"id":11703},"priorExtent":{"__isSmartRef__":true,"id":11704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11654},"id":427,"renderContextTable":{"__isSmartRef__":true,"id":11660},"eventHandler":{"__isSmartRef__":true,"id":11661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11654":{"_Position":{"__isSmartRef__":true,"id":11655},"renderContextTable":{"__isSmartRef__":true,"id":11656},"_Extent":{"__isSmartRef__":true,"id":11657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11661":{"morph":{"__isSmartRef__":true,"id":11653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11663":{"onMouseUp":{"__isSmartRef__":true,"id":11664},"toggle":{"__isSmartRef__":true,"id":11671}},"11664":{"varMapping":{"__isSmartRef__":true,"id":11665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11665":{"this":{"__isSmartRef__":true,"id":11653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11666}},"11666":{"$super":{"__isSmartRef__":true,"id":11667}},"11667":{"varMapping":{"__isSmartRef__":true,"id":11668},"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":11669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11668":{"obj":{"__isSmartRef__":true,"id":11653},"name":"onMouseUp"},"11669":{},"11670":{},"11671":{"varMapping":{"__isSmartRef__":true,"id":11672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11672":{"this":{"__isSmartRef__":true,"id":11653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11673}},"11673":{"$super":{"__isSmartRef__":true,"id":11674}},"11674":{"varMapping":{"__isSmartRef__":true,"id":11675},"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":11676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11675":{"obj":{"__isSmartRef__":true,"id":11653},"name":"toggle"},"11676":{},"11677":{},"11678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11679},"id":428,"renderContextTable":{"__isSmartRef__":true,"id":11683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11684},{"__isSmartRef__":true,"id":11686}],"eventHandler":{"__isSmartRef__":true,"id":11688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11689},"priorExtent":{"__isSmartRef__":true,"id":11690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11679":{"_Position":{"__isSmartRef__":true,"id":11680},"renderContextTable":{"__isSmartRef__":true,"id":11681},"_Extent":{"__isSmartRef__":true,"id":11682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11682":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11684":{"style":{"__isSmartRef__":true,"id":11685},"chunkOwner":{"__isSmartRef__":true,"id":11678},"storedString":"useAltAsCommand","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11686":{"style":{"__isSmartRef__":true,"id":11687},"chunkOwner":{"__isSmartRef__":true,"id":11678},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11688":{"morph":{"__isSmartRef__":true,"id":11678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11690":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11691":{"layoutText":{"__isSmartRef__":true,"id":11692}},"11692":{"varMapping":{"__isSmartRef__":true,"id":11693},"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":11694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11693":{"this":{"__isSmartRef__":true,"id":11678}},"11694":{},"11695":{"_Position":{"__isSmartRef__":true,"id":11696},"renderContextTable":{"__isSmartRef__":true,"id":11697},"_Extent":{"__isSmartRef__":true,"id":11698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11701":{"morph":{"__isSmartRef__":true,"id":11652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11702":{"resizeWidth":true},"11703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11705":{"updateExpanderColor":{"__isSmartRef__":true,"id":11706},"onMouseDown":{"__isSmartRef__":true,"id":11709},"onMouseUp":{"__isSmartRef__":true,"id":11716},"isRoot":{"__isSmartRef__":true,"id":11723},"displayValue":{"__isSmartRef__":true,"id":11726},"update":{"__isSmartRef__":true,"id":11729}},"11706":{"varMapping":{"__isSmartRef__":true,"id":11707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11707":{"this":{"__isSmartRef__":true,"id":11652}},"11708":{},"11709":{"varMapping":{"__isSmartRef__":true,"id":11710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11710":{"this":{"__isSmartRef__":true,"id":11652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11711}},"11711":{"$super":{"__isSmartRef__":true,"id":11712}},"11712":{"varMapping":{"__isSmartRef__":true,"id":11713},"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":11714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11713":{"obj":{"__isSmartRef__":true,"id":11652},"name":"onMouseDown"},"11714":{},"11715":{},"11716":{"varMapping":{"__isSmartRef__":true,"id":11717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11717":{"this":{"__isSmartRef__":true,"id":11652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11718}},"11718":{"$super":{"__isSmartRef__":true,"id":11719}},"11719":{"varMapping":{"__isSmartRef__":true,"id":11720},"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":11721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11720":{"obj":{"__isSmartRef__":true,"id":11652},"name":"onMouseUp"},"11721":{},"11722":{},"11723":{"varMapping":{"__isSmartRef__":true,"id":11724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11724":{"this":{"__isSmartRef__":true,"id":11652}},"11725":{},"11726":{"varMapping":{"__isSmartRef__":true,"id":11727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11727":{"this":{"__isSmartRef__":true,"id":11652}},"11728":{},"11729":{"varMapping":{"__isSmartRef__":true,"id":11730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11730":{"this":{"__isSmartRef__":true,"id":11652}},"11731":{},"11732":{"_Position":{"__isSmartRef__":true,"id":11733},"renderContextTable":{"__isSmartRef__":true,"id":11734},"_Extent":{"__isSmartRef__":true,"id":11735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11738":{"morph":{"__isSmartRef__":true,"id":11651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11739":{"layouter":{"__isSmartRef__":true,"id":11740},"resizeWidth":true},"11740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11742":{"x":0,"y":1900,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11744}},"11744":{"varMapping":{"__isSmartRef__":true,"id":11745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11745":{"this":{"__isSmartRef__":true,"id":11651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11746}},"11746":{"$super":{"__isSmartRef__":true,"id":11747}},"11747":{"varMapping":{"__isSmartRef__":true,"id":11748},"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":11749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11748":{"obj":{"__isSmartRef__":true,"id":11651},"name":"getLayoutableSubmorphs"},"11749":{},"11750":{},"11751":{"submorphs":[{"__isSmartRef__":true,"id":11752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11832},"id":433,"renderContextTable":{"__isSmartRef__":true,"id":11837},"eventHandler":{"__isSmartRef__":true,"id":11838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11752":{"submorphs":[{"__isSmartRef__":true,"id":11753},{"__isSmartRef__":true,"id":11778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11795},"id":430,"renderContextTable":{"__isSmartRef__":true,"id":11800},"eventHandler":{"__isSmartRef__":true,"id":11801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11802},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useDelayedHTMLRendering","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11753},"text":{"__isSmartRef__":true,"id":11778},"owner":{"__isSmartRef__":true,"id":11751},"_Position":{"__isSmartRef__":true,"id":11803},"priorExtent":{"__isSmartRef__":true,"id":11804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11754},"id":431,"renderContextTable":{"__isSmartRef__":true,"id":11760},"eventHandler":{"__isSmartRef__":true,"id":11761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11754":{"_Position":{"__isSmartRef__":true,"id":11755},"renderContextTable":{"__isSmartRef__":true,"id":11756},"_Extent":{"__isSmartRef__":true,"id":11757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11761":{"morph":{"__isSmartRef__":true,"id":11753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11763":{"onMouseUp":{"__isSmartRef__":true,"id":11764},"toggle":{"__isSmartRef__":true,"id":11771}},"11764":{"varMapping":{"__isSmartRef__":true,"id":11765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11765":{"this":{"__isSmartRef__":true,"id":11753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11766}},"11766":{"$super":{"__isSmartRef__":true,"id":11767}},"11767":{"varMapping":{"__isSmartRef__":true,"id":11768},"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":11769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11768":{"obj":{"__isSmartRef__":true,"id":11753},"name":"onMouseUp"},"11769":{},"11770":{},"11771":{"varMapping":{"__isSmartRef__":true,"id":11772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11772":{"this":{"__isSmartRef__":true,"id":11753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11773}},"11773":{"$super":{"__isSmartRef__":true,"id":11774}},"11774":{"varMapping":{"__isSmartRef__":true,"id":11775},"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":11776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11775":{"obj":{"__isSmartRef__":true,"id":11753},"name":"toggle"},"11776":{},"11777":{},"11778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11779},"id":432,"renderContextTable":{"__isSmartRef__":true,"id":11783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11784},{"__isSmartRef__":true,"id":11786}],"eventHandler":{"__isSmartRef__":true,"id":11788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11789},"priorExtent":{"__isSmartRef__":true,"id":11790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11779":{"_Position":{"__isSmartRef__":true,"id":11780},"renderContextTable":{"__isSmartRef__":true,"id":11781},"_Extent":{"__isSmartRef__":true,"id":11782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11782":{"x":233,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11784":{"style":{"__isSmartRef__":true,"id":11785},"chunkOwner":{"__isSmartRef__":true,"id":11778},"storedString":"useDelayedHTMLRendering","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11786":{"style":{"__isSmartRef__":true,"id":11787},"chunkOwner":{"__isSmartRef__":true,"id":11778},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11788":{"morph":{"__isSmartRef__":true,"id":11778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11790":{"x":225,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11791":{"layoutText":{"__isSmartRef__":true,"id":11792}},"11792":{"varMapping":{"__isSmartRef__":true,"id":11793},"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":11794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11793":{"this":{"__isSmartRef__":true,"id":11778}},"11794":{},"11795":{"_Position":{"__isSmartRef__":true,"id":11796},"renderContextTable":{"__isSmartRef__":true,"id":11797},"_Extent":{"__isSmartRef__":true,"id":11798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11801":{"morph":{"__isSmartRef__":true,"id":11752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11802":{"resizeWidth":true},"11803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11805":{"updateExpanderColor":{"__isSmartRef__":true,"id":11806},"onMouseDown":{"__isSmartRef__":true,"id":11809},"onMouseUp":{"__isSmartRef__":true,"id":11816},"isRoot":{"__isSmartRef__":true,"id":11823},"displayValue":{"__isSmartRef__":true,"id":11826},"update":{"__isSmartRef__":true,"id":11829}},"11806":{"varMapping":{"__isSmartRef__":true,"id":11807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11807":{"this":{"__isSmartRef__":true,"id":11752}},"11808":{},"11809":{"varMapping":{"__isSmartRef__":true,"id":11810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11810":{"this":{"__isSmartRef__":true,"id":11752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11811}},"11811":{"$super":{"__isSmartRef__":true,"id":11812}},"11812":{"varMapping":{"__isSmartRef__":true,"id":11813},"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":11814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11813":{"obj":{"__isSmartRef__":true,"id":11752},"name":"onMouseDown"},"11814":{},"11815":{},"11816":{"varMapping":{"__isSmartRef__":true,"id":11817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11817":{"this":{"__isSmartRef__":true,"id":11752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11818}},"11818":{"$super":{"__isSmartRef__":true,"id":11819}},"11819":{"varMapping":{"__isSmartRef__":true,"id":11820},"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":11821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11820":{"obj":{"__isSmartRef__":true,"id":11752},"name":"onMouseUp"},"11821":{},"11822":{},"11823":{"varMapping":{"__isSmartRef__":true,"id":11824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11824":{"this":{"__isSmartRef__":true,"id":11752}},"11825":{},"11826":{"varMapping":{"__isSmartRef__":true,"id":11827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11827":{"this":{"__isSmartRef__":true,"id":11752}},"11828":{},"11829":{"varMapping":{"__isSmartRef__":true,"id":11830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11830":{"this":{"__isSmartRef__":true,"id":11752}},"11831":{},"11832":{"_Position":{"__isSmartRef__":true,"id":11833},"renderContextTable":{"__isSmartRef__":true,"id":11834},"_Extent":{"__isSmartRef__":true,"id":11835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11838":{"morph":{"__isSmartRef__":true,"id":11751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11839":{"layouter":{"__isSmartRef__":true,"id":11840},"resizeWidth":true},"11840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11842":{"x":0,"y":1920,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11844}},"11844":{"varMapping":{"__isSmartRef__":true,"id":11845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11845":{"this":{"__isSmartRef__":true,"id":11751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11846}},"11846":{"$super":{"__isSmartRef__":true,"id":11847}},"11847":{"varMapping":{"__isSmartRef__":true,"id":11848},"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":11849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11848":{"obj":{"__isSmartRef__":true,"id":11751},"name":"getLayoutableSubmorphs"},"11849":{},"11850":{},"11851":{"submorphs":[{"__isSmartRef__":true,"id":11852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11932},"id":437,"renderContextTable":{"__isSmartRef__":true,"id":11937},"eventHandler":{"__isSmartRef__":true,"id":11938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":11942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11852":{"submorphs":[{"__isSmartRef__":true,"id":11853},{"__isSmartRef__":true,"id":11878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11895},"id":434,"renderContextTable":{"__isSmartRef__":true,"id":11900},"eventHandler":{"__isSmartRef__":true,"id":11901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11902},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useDropShadow","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11853},"text":{"__isSmartRef__":true,"id":11878},"owner":{"__isSmartRef__":true,"id":11851},"_Position":{"__isSmartRef__":true,"id":11903},"priorExtent":{"__isSmartRef__":true,"id":11904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11854},"id":435,"renderContextTable":{"__isSmartRef__":true,"id":11860},"eventHandler":{"__isSmartRef__":true,"id":11861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11854":{"_Position":{"__isSmartRef__":true,"id":11855},"renderContextTable":{"__isSmartRef__":true,"id":11856},"_Extent":{"__isSmartRef__":true,"id":11857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11861":{"morph":{"__isSmartRef__":true,"id":11853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11863":{"onMouseUp":{"__isSmartRef__":true,"id":11864},"toggle":{"__isSmartRef__":true,"id":11871}},"11864":{"varMapping":{"__isSmartRef__":true,"id":11865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11865":{"this":{"__isSmartRef__":true,"id":11853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11866}},"11866":{"$super":{"__isSmartRef__":true,"id":11867}},"11867":{"varMapping":{"__isSmartRef__":true,"id":11868},"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":11869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11868":{"obj":{"__isSmartRef__":true,"id":11853},"name":"onMouseUp"},"11869":{},"11870":{},"11871":{"varMapping":{"__isSmartRef__":true,"id":11872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11872":{"this":{"__isSmartRef__":true,"id":11853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11873}},"11873":{"$super":{"__isSmartRef__":true,"id":11874}},"11874":{"varMapping":{"__isSmartRef__":true,"id":11875},"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":11876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11875":{"obj":{"__isSmartRef__":true,"id":11853},"name":"toggle"},"11876":{},"11877":{},"11878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11879},"id":436,"renderContextTable":{"__isSmartRef__":true,"id":11883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11884},{"__isSmartRef__":true,"id":11886}],"eventHandler":{"__isSmartRef__":true,"id":11888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11889},"priorExtent":{"__isSmartRef__":true,"id":11890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11879":{"_Position":{"__isSmartRef__":true,"id":11880},"renderContextTable":{"__isSmartRef__":true,"id":11881},"_Extent":{"__isSmartRef__":true,"id":11882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11882":{"x":150.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11884":{"style":{"__isSmartRef__":true,"id":11885},"chunkOwner":{"__isSmartRef__":true,"id":11878},"storedString":"useDropShadow","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11886":{"style":{"__isSmartRef__":true,"id":11887},"chunkOwner":{"__isSmartRef__":true,"id":11878},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11888":{"morph":{"__isSmartRef__":true,"id":11878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11890":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11891":{"layoutText":{"__isSmartRef__":true,"id":11892}},"11892":{"varMapping":{"__isSmartRef__":true,"id":11893},"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":11894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11893":{"this":{"__isSmartRef__":true,"id":11878}},"11894":{},"11895":{"_Position":{"__isSmartRef__":true,"id":11896},"renderContextTable":{"__isSmartRef__":true,"id":11897},"_Extent":{"__isSmartRef__":true,"id":11898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11901":{"morph":{"__isSmartRef__":true,"id":11852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11902":{"resizeWidth":true},"11903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11905":{"updateExpanderColor":{"__isSmartRef__":true,"id":11906},"onMouseDown":{"__isSmartRef__":true,"id":11909},"onMouseUp":{"__isSmartRef__":true,"id":11916},"isRoot":{"__isSmartRef__":true,"id":11923},"displayValue":{"__isSmartRef__":true,"id":11926},"update":{"__isSmartRef__":true,"id":11929}},"11906":{"varMapping":{"__isSmartRef__":true,"id":11907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":11908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11907":{"this":{"__isSmartRef__":true,"id":11852}},"11908":{},"11909":{"varMapping":{"__isSmartRef__":true,"id":11910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11910":{"this":{"__isSmartRef__":true,"id":11852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11911}},"11911":{"$super":{"__isSmartRef__":true,"id":11912}},"11912":{"varMapping":{"__isSmartRef__":true,"id":11913},"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":11914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11913":{"obj":{"__isSmartRef__":true,"id":11852},"name":"onMouseDown"},"11914":{},"11915":{},"11916":{"varMapping":{"__isSmartRef__":true,"id":11917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11917":{"this":{"__isSmartRef__":true,"id":11852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11918}},"11918":{"$super":{"__isSmartRef__":true,"id":11919}},"11919":{"varMapping":{"__isSmartRef__":true,"id":11920},"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":11921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11920":{"obj":{"__isSmartRef__":true,"id":11852},"name":"onMouseUp"},"11921":{},"11922":{},"11923":{"varMapping":{"__isSmartRef__":true,"id":11924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11924":{"this":{"__isSmartRef__":true,"id":11852}},"11925":{},"11926":{"varMapping":{"__isSmartRef__":true,"id":11927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":11928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11927":{"this":{"__isSmartRef__":true,"id":11852}},"11928":{},"11929":{"varMapping":{"__isSmartRef__":true,"id":11930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11930":{"this":{"__isSmartRef__":true,"id":11852}},"11931":{},"11932":{"_Position":{"__isSmartRef__":true,"id":11933},"renderContextTable":{"__isSmartRef__":true,"id":11934},"_Extent":{"__isSmartRef__":true,"id":11935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11938":{"morph":{"__isSmartRef__":true,"id":11851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11939":{"layouter":{"__isSmartRef__":true,"id":11940},"resizeWidth":true},"11940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11942":{"x":0,"y":1940,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11944}},"11944":{"varMapping":{"__isSmartRef__":true,"id":11945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11945":{"this":{"__isSmartRef__":true,"id":11851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11946}},"11946":{"$super":{"__isSmartRef__":true,"id":11947}},"11947":{"varMapping":{"__isSmartRef__":true,"id":11948},"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":11949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11948":{"obj":{"__isSmartRef__":true,"id":11851},"name":"getLayoutableSubmorphs"},"11949":{},"11950":{},"11951":{"submorphs":[{"__isSmartRef__":true,"id":11952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12032},"id":441,"renderContextTable":{"__isSmartRef__":true,"id":12037},"eventHandler":{"__isSmartRef__":true,"id":12038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11952":{"submorphs":[{"__isSmartRef__":true,"id":11953},{"__isSmartRef__":true,"id":11978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11995},"id":438,"renderContextTable":{"__isSmartRef__":true,"id":12000},"eventHandler":{"__isSmartRef__":true,"id":12001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12002},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useFlattenedHTMLRenderingLayer","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":11953},"text":{"__isSmartRef__":true,"id":11978},"owner":{"__isSmartRef__":true,"id":11951},"_Position":{"__isSmartRef__":true,"id":12003},"priorExtent":{"__isSmartRef__":true,"id":12004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11954},"id":439,"renderContextTable":{"__isSmartRef__":true,"id":11960},"eventHandler":{"__isSmartRef__":true,"id":11961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11954":{"_Position":{"__isSmartRef__":true,"id":11955},"renderContextTable":{"__isSmartRef__":true,"id":11956},"_Extent":{"__isSmartRef__":true,"id":11957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":11959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11961":{"morph":{"__isSmartRef__":true,"id":11953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11963":{"onMouseUp":{"__isSmartRef__":true,"id":11964},"toggle":{"__isSmartRef__":true,"id":11971}},"11964":{"varMapping":{"__isSmartRef__":true,"id":11965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":11970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11965":{"this":{"__isSmartRef__":true,"id":11953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11966}},"11966":{"$super":{"__isSmartRef__":true,"id":11967}},"11967":{"varMapping":{"__isSmartRef__":true,"id":11968},"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":11969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11968":{"obj":{"__isSmartRef__":true,"id":11953},"name":"onMouseUp"},"11969":{},"11970":{},"11971":{"varMapping":{"__isSmartRef__":true,"id":11972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":11977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11972":{"this":{"__isSmartRef__":true,"id":11953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11973}},"11973":{"$super":{"__isSmartRef__":true,"id":11974}},"11974":{"varMapping":{"__isSmartRef__":true,"id":11975},"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":11976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11975":{"obj":{"__isSmartRef__":true,"id":11953},"name":"toggle"},"11976":{},"11977":{},"11978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11979},"id":440,"renderContextTable":{"__isSmartRef__":true,"id":11983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11984},{"__isSmartRef__":true,"id":11986}],"eventHandler":{"__isSmartRef__":true,"id":11988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11989},"priorExtent":{"__isSmartRef__":true,"id":11990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11979":{"_Position":{"__isSmartRef__":true,"id":11980},"renderContextTable":{"__isSmartRef__":true,"id":11981},"_Extent":{"__isSmartRef__":true,"id":11982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11982":{"x":278,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11984":{"style":{"__isSmartRef__":true,"id":11985},"chunkOwner":{"__isSmartRef__":true,"id":11978},"storedString":"useFlattenedHTMLRenderingLayer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11986":{"style":{"__isSmartRef__":true,"id":11987},"chunkOwner":{"__isSmartRef__":true,"id":11978},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11988":{"morph":{"__isSmartRef__":true,"id":11978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11990":{"x":270,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11991":{"layoutText":{"__isSmartRef__":true,"id":11992}},"11992":{"varMapping":{"__isSmartRef__":true,"id":11993},"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":11994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11993":{"this":{"__isSmartRef__":true,"id":11978}},"11994":{},"11995":{"_Position":{"__isSmartRef__":true,"id":11996},"renderContextTable":{"__isSmartRef__":true,"id":11997},"_Extent":{"__isSmartRef__":true,"id":11998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12001":{"morph":{"__isSmartRef__":true,"id":11952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12002":{"resizeWidth":true},"12003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12005":{"updateExpanderColor":{"__isSmartRef__":true,"id":12006},"onMouseDown":{"__isSmartRef__":true,"id":12009},"onMouseUp":{"__isSmartRef__":true,"id":12016},"isRoot":{"__isSmartRef__":true,"id":12023},"displayValue":{"__isSmartRef__":true,"id":12026},"update":{"__isSmartRef__":true,"id":12029}},"12006":{"varMapping":{"__isSmartRef__":true,"id":12007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12007":{"this":{"__isSmartRef__":true,"id":11952}},"12008":{},"12009":{"varMapping":{"__isSmartRef__":true,"id":12010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12010":{"this":{"__isSmartRef__":true,"id":11952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12011}},"12011":{"$super":{"__isSmartRef__":true,"id":12012}},"12012":{"varMapping":{"__isSmartRef__":true,"id":12013},"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":12014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12013":{"obj":{"__isSmartRef__":true,"id":11952},"name":"onMouseDown"},"12014":{},"12015":{},"12016":{"varMapping":{"__isSmartRef__":true,"id":12017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12017":{"this":{"__isSmartRef__":true,"id":11952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12018}},"12018":{"$super":{"__isSmartRef__":true,"id":12019}},"12019":{"varMapping":{"__isSmartRef__":true,"id":12020},"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":12021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12020":{"obj":{"__isSmartRef__":true,"id":11952},"name":"onMouseUp"},"12021":{},"12022":{},"12023":{"varMapping":{"__isSmartRef__":true,"id":12024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12024":{"this":{"__isSmartRef__":true,"id":11952}},"12025":{},"12026":{"varMapping":{"__isSmartRef__":true,"id":12027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12027":{"this":{"__isSmartRef__":true,"id":11952}},"12028":{},"12029":{"varMapping":{"__isSmartRef__":true,"id":12030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12030":{"this":{"__isSmartRef__":true,"id":11952}},"12031":{},"12032":{"_Position":{"__isSmartRef__":true,"id":12033},"renderContextTable":{"__isSmartRef__":true,"id":12034},"_Extent":{"__isSmartRef__":true,"id":12035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12038":{"morph":{"__isSmartRef__":true,"id":11951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12039":{"layouter":{"__isSmartRef__":true,"id":12040},"resizeWidth":true},"12040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12042":{"x":0,"y":1960,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12044}},"12044":{"varMapping":{"__isSmartRef__":true,"id":12045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12045":{"this":{"__isSmartRef__":true,"id":11951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12046}},"12046":{"$super":{"__isSmartRef__":true,"id":12047}},"12047":{"varMapping":{"__isSmartRef__":true,"id":12048},"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":12049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12048":{"obj":{"__isSmartRef__":true,"id":11951},"name":"getLayoutableSubmorphs"},"12049":{},"12050":{},"12051":{"submorphs":[{"__isSmartRef__":true,"id":12052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12132},"id":445,"renderContextTable":{"__isSmartRef__":true,"id":12137},"eventHandler":{"__isSmartRef__":true,"id":12138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12052":{"submorphs":[{"__isSmartRef__":true,"id":12053},{"__isSmartRef__":true,"id":12078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12095},"id":442,"renderContextTable":{"__isSmartRef__":true,"id":12100},"eventHandler":{"__isSmartRef__":true,"id":12101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12102},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useGetTransformToElement","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12053},"text":{"__isSmartRef__":true,"id":12078},"owner":{"__isSmartRef__":true,"id":12051},"_Position":{"__isSmartRef__":true,"id":12103},"priorExtent":{"__isSmartRef__":true,"id":12104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12054},"id":443,"renderContextTable":{"__isSmartRef__":true,"id":12060},"eventHandler":{"__isSmartRef__":true,"id":12061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12054":{"_Position":{"__isSmartRef__":true,"id":12055},"renderContextTable":{"__isSmartRef__":true,"id":12056},"_Extent":{"__isSmartRef__":true,"id":12057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12061":{"morph":{"__isSmartRef__":true,"id":12053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12063":{"onMouseUp":{"__isSmartRef__":true,"id":12064},"toggle":{"__isSmartRef__":true,"id":12071}},"12064":{"varMapping":{"__isSmartRef__":true,"id":12065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12065":{"this":{"__isSmartRef__":true,"id":12053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12066}},"12066":{"$super":{"__isSmartRef__":true,"id":12067}},"12067":{"varMapping":{"__isSmartRef__":true,"id":12068},"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":12069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12068":{"obj":{"__isSmartRef__":true,"id":12053},"name":"onMouseUp"},"12069":{},"12070":{},"12071":{"varMapping":{"__isSmartRef__":true,"id":12072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12072":{"this":{"__isSmartRef__":true,"id":12053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12073}},"12073":{"$super":{"__isSmartRef__":true,"id":12074}},"12074":{"varMapping":{"__isSmartRef__":true,"id":12075},"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":12076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12075":{"obj":{"__isSmartRef__":true,"id":12053},"name":"toggle"},"12076":{},"12077":{},"12078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12079},"id":444,"renderContextTable":{"__isSmartRef__":true,"id":12083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12084},{"__isSmartRef__":true,"id":12086}],"eventHandler":{"__isSmartRef__":true,"id":12088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12089},"priorExtent":{"__isSmartRef__":true,"id":12090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12079":{"_Position":{"__isSmartRef__":true,"id":12080},"renderContextTable":{"__isSmartRef__":true,"id":12081},"_Extent":{"__isSmartRef__":true,"id":12082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12082":{"x":233,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12084":{"style":{"__isSmartRef__":true,"id":12085},"chunkOwner":{"__isSmartRef__":true,"id":12078},"storedString":"useGetTransformToElement","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12086":{"style":{"__isSmartRef__":true,"id":12087},"chunkOwner":{"__isSmartRef__":true,"id":12078},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12088":{"morph":{"__isSmartRef__":true,"id":12078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12090":{"x":225,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12091":{"layoutText":{"__isSmartRef__":true,"id":12092}},"12092":{"varMapping":{"__isSmartRef__":true,"id":12093},"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":12094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12093":{"this":{"__isSmartRef__":true,"id":12078}},"12094":{},"12095":{"_Position":{"__isSmartRef__":true,"id":12096},"renderContextTable":{"__isSmartRef__":true,"id":12097},"_Extent":{"__isSmartRef__":true,"id":12098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12101":{"morph":{"__isSmartRef__":true,"id":12052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12102":{"resizeWidth":true},"12103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12105":{"updateExpanderColor":{"__isSmartRef__":true,"id":12106},"onMouseDown":{"__isSmartRef__":true,"id":12109},"onMouseUp":{"__isSmartRef__":true,"id":12116},"isRoot":{"__isSmartRef__":true,"id":12123},"displayValue":{"__isSmartRef__":true,"id":12126},"update":{"__isSmartRef__":true,"id":12129}},"12106":{"varMapping":{"__isSmartRef__":true,"id":12107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12107":{"this":{"__isSmartRef__":true,"id":12052}},"12108":{},"12109":{"varMapping":{"__isSmartRef__":true,"id":12110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12110":{"this":{"__isSmartRef__":true,"id":12052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12111}},"12111":{"$super":{"__isSmartRef__":true,"id":12112}},"12112":{"varMapping":{"__isSmartRef__":true,"id":12113},"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":12114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12113":{"obj":{"__isSmartRef__":true,"id":12052},"name":"onMouseDown"},"12114":{},"12115":{},"12116":{"varMapping":{"__isSmartRef__":true,"id":12117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12117":{"this":{"__isSmartRef__":true,"id":12052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12118}},"12118":{"$super":{"__isSmartRef__":true,"id":12119}},"12119":{"varMapping":{"__isSmartRef__":true,"id":12120},"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":12121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12120":{"obj":{"__isSmartRef__":true,"id":12052},"name":"onMouseUp"},"12121":{},"12122":{},"12123":{"varMapping":{"__isSmartRef__":true,"id":12124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12124":{"this":{"__isSmartRef__":true,"id":12052}},"12125":{},"12126":{"varMapping":{"__isSmartRef__":true,"id":12127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12127":{"this":{"__isSmartRef__":true,"id":12052}},"12128":{},"12129":{"varMapping":{"__isSmartRef__":true,"id":12130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12130":{"this":{"__isSmartRef__":true,"id":12052}},"12131":{},"12132":{"_Position":{"__isSmartRef__":true,"id":12133},"renderContextTable":{"__isSmartRef__":true,"id":12134},"_Extent":{"__isSmartRef__":true,"id":12135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12138":{"morph":{"__isSmartRef__":true,"id":12051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12139":{"layouter":{"__isSmartRef__":true,"id":12140},"resizeWidth":true},"12140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12142":{"x":0,"y":1980,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12144}},"12144":{"varMapping":{"__isSmartRef__":true,"id":12145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12145":{"this":{"__isSmartRef__":true,"id":12051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12146}},"12146":{"$super":{"__isSmartRef__":true,"id":12147}},"12147":{"varMapping":{"__isSmartRef__":true,"id":12148},"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":12149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12148":{"obj":{"__isSmartRef__":true,"id":12051},"name":"getLayoutableSubmorphs"},"12149":{},"12150":{},"12151":{"submorphs":[{"__isSmartRef__":true,"id":12152}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12232},"id":449,"renderContextTable":{"__isSmartRef__":true,"id":12237},"eventHandler":{"__isSmartRef__":true,"id":12238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12239},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12241},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12152":{"submorphs":[{"__isSmartRef__":true,"id":12153},{"__isSmartRef__":true,"id":12178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12195},"id":446,"renderContextTable":{"__isSmartRef__":true,"id":12200},"eventHandler":{"__isSmartRef__":true,"id":12201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12202},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useMetaAsCommand","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12153},"text":{"__isSmartRef__":true,"id":12178},"owner":{"__isSmartRef__":true,"id":12151},"_Position":{"__isSmartRef__":true,"id":12203},"priorExtent":{"__isSmartRef__":true,"id":12204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12154},"id":447,"renderContextTable":{"__isSmartRef__":true,"id":12160},"eventHandler":{"__isSmartRef__":true,"id":12161},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12162},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12163},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12154":{"_Position":{"__isSmartRef__":true,"id":12155},"renderContextTable":{"__isSmartRef__":true,"id":12156},"_Extent":{"__isSmartRef__":true,"id":12157},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12155":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12157":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12158":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12159":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12160":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12161":{"morph":{"__isSmartRef__":true,"id":12153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12162":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12163":{"onMouseUp":{"__isSmartRef__":true,"id":12164},"toggle":{"__isSmartRef__":true,"id":12171}},"12164":{"varMapping":{"__isSmartRef__":true,"id":12165},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12165":{"this":{"__isSmartRef__":true,"id":12153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12166}},"12166":{"$super":{"__isSmartRef__":true,"id":12167}},"12167":{"varMapping":{"__isSmartRef__":true,"id":12168},"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":12169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12168":{"obj":{"__isSmartRef__":true,"id":12153},"name":"onMouseUp"},"12169":{},"12170":{},"12171":{"varMapping":{"__isSmartRef__":true,"id":12172},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12172":{"this":{"__isSmartRef__":true,"id":12153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12173}},"12173":{"$super":{"__isSmartRef__":true,"id":12174}},"12174":{"varMapping":{"__isSmartRef__":true,"id":12175},"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":12176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12175":{"obj":{"__isSmartRef__":true,"id":12153},"name":"toggle"},"12176":{},"12177":{},"12178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12179},"id":448,"renderContextTable":{"__isSmartRef__":true,"id":12183},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12184},{"__isSmartRef__":true,"id":12186}],"eventHandler":{"__isSmartRef__":true,"id":12188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12189},"priorExtent":{"__isSmartRef__":true,"id":12190},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12179":{"_Position":{"__isSmartRef__":true,"id":12180},"renderContextTable":{"__isSmartRef__":true,"id":12181},"_Extent":{"__isSmartRef__":true,"id":12182},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12182":{"x":180.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12184":{"style":{"__isSmartRef__":true,"id":12185},"chunkOwner":{"__isSmartRef__":true,"id":12178},"storedString":"useMetaAsCommand","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12186":{"style":{"__isSmartRef__":true,"id":12187},"chunkOwner":{"__isSmartRef__":true,"id":12178},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12187":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12188":{"morph":{"__isSmartRef__":true,"id":12178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12189":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12190":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12191":{"layoutText":{"__isSmartRef__":true,"id":12192}},"12192":{"varMapping":{"__isSmartRef__":true,"id":12193},"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":12194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12193":{"this":{"__isSmartRef__":true,"id":12178}},"12194":{},"12195":{"_Position":{"__isSmartRef__":true,"id":12196},"renderContextTable":{"__isSmartRef__":true,"id":12197},"_Extent":{"__isSmartRef__":true,"id":12198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12201":{"morph":{"__isSmartRef__":true,"id":12152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12202":{"resizeWidth":true},"12203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12205":{"updateExpanderColor":{"__isSmartRef__":true,"id":12206},"onMouseDown":{"__isSmartRef__":true,"id":12209},"onMouseUp":{"__isSmartRef__":true,"id":12216},"isRoot":{"__isSmartRef__":true,"id":12223},"displayValue":{"__isSmartRef__":true,"id":12226},"update":{"__isSmartRef__":true,"id":12229}},"12206":{"varMapping":{"__isSmartRef__":true,"id":12207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12207":{"this":{"__isSmartRef__":true,"id":12152}},"12208":{},"12209":{"varMapping":{"__isSmartRef__":true,"id":12210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12210":{"this":{"__isSmartRef__":true,"id":12152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12211}},"12211":{"$super":{"__isSmartRef__":true,"id":12212}},"12212":{"varMapping":{"__isSmartRef__":true,"id":12213},"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":12214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12213":{"obj":{"__isSmartRef__":true,"id":12152},"name":"onMouseDown"},"12214":{},"12215":{},"12216":{"varMapping":{"__isSmartRef__":true,"id":12217},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12217":{"this":{"__isSmartRef__":true,"id":12152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12218}},"12218":{"$super":{"__isSmartRef__":true,"id":12219}},"12219":{"varMapping":{"__isSmartRef__":true,"id":12220},"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":12221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12220":{"obj":{"__isSmartRef__":true,"id":12152},"name":"onMouseUp"},"12221":{},"12222":{},"12223":{"varMapping":{"__isSmartRef__":true,"id":12224},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12224":{"this":{"__isSmartRef__":true,"id":12152}},"12225":{},"12226":{"varMapping":{"__isSmartRef__":true,"id":12227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12227":{"this":{"__isSmartRef__":true,"id":12152}},"12228":{},"12229":{"varMapping":{"__isSmartRef__":true,"id":12230},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12230":{"this":{"__isSmartRef__":true,"id":12152}},"12231":{},"12232":{"_Position":{"__isSmartRef__":true,"id":12233},"renderContextTable":{"__isSmartRef__":true,"id":12234},"_Extent":{"__isSmartRef__":true,"id":12235},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12236},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12233":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12235":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12236":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12237":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12238":{"morph":{"__isSmartRef__":true,"id":12151},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12239":{"layouter":{"__isSmartRef__":true,"id":12240},"resizeWidth":true},"12240":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12151},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12242":{"x":0,"y":2000,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12243":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12244}},"12244":{"varMapping":{"__isSmartRef__":true,"id":12245},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12245":{"this":{"__isSmartRef__":true,"id":12151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12246}},"12246":{"$super":{"__isSmartRef__":true,"id":12247}},"12247":{"varMapping":{"__isSmartRef__":true,"id":12248},"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":12249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12248":{"obj":{"__isSmartRef__":true,"id":12151},"name":"getLayoutableSubmorphs"},"12249":{},"12250":{},"12251":{"submorphs":[{"__isSmartRef__":true,"id":12252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12332},"id":453,"renderContextTable":{"__isSmartRef__":true,"id":12337},"eventHandler":{"__isSmartRef__":true,"id":12338},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12339},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12341},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12343},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12252":{"submorphs":[{"__isSmartRef__":true,"id":12253},{"__isSmartRef__":true,"id":12278}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12295},"id":450,"renderContextTable":{"__isSmartRef__":true,"id":12300},"eventHandler":{"__isSmartRef__":true,"id":12301},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12302},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useOfflineStorage","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12253},"text":{"__isSmartRef__":true,"id":12278},"owner":{"__isSmartRef__":true,"id":12251},"_Position":{"__isSmartRef__":true,"id":12303},"priorExtent":{"__isSmartRef__":true,"id":12304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12305},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12254},"id":451,"renderContextTable":{"__isSmartRef__":true,"id":12260},"eventHandler":{"__isSmartRef__":true,"id":12261},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12262},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12263},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12254":{"_Position":{"__isSmartRef__":true,"id":12255},"renderContextTable":{"__isSmartRef__":true,"id":12256},"_Extent":{"__isSmartRef__":true,"id":12257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12257":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12259":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12261":{"morph":{"__isSmartRef__":true,"id":12253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12262":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12263":{"onMouseUp":{"__isSmartRef__":true,"id":12264},"toggle":{"__isSmartRef__":true,"id":12271}},"12264":{"varMapping":{"__isSmartRef__":true,"id":12265},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12265":{"this":{"__isSmartRef__":true,"id":12253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12266}},"12266":{"$super":{"__isSmartRef__":true,"id":12267}},"12267":{"varMapping":{"__isSmartRef__":true,"id":12268},"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":12269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12268":{"obj":{"__isSmartRef__":true,"id":12253},"name":"onMouseUp"},"12269":{},"12270":{},"12271":{"varMapping":{"__isSmartRef__":true,"id":12272},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12272":{"this":{"__isSmartRef__":true,"id":12253},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12273}},"12273":{"$super":{"__isSmartRef__":true,"id":12274}},"12274":{"varMapping":{"__isSmartRef__":true,"id":12275},"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":12276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12275":{"obj":{"__isSmartRef__":true,"id":12253},"name":"toggle"},"12276":{},"12277":{},"12278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12279},"id":452,"renderContextTable":{"__isSmartRef__":true,"id":12283},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12284},{"__isSmartRef__":true,"id":12286}],"eventHandler":{"__isSmartRef__":true,"id":12288},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12289},"priorExtent":{"__isSmartRef__":true,"id":12290},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12291},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12279":{"_Position":{"__isSmartRef__":true,"id":12280},"renderContextTable":{"__isSmartRef__":true,"id":12281},"_Extent":{"__isSmartRef__":true,"id":12282},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12282":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12284":{"style":{"__isSmartRef__":true,"id":12285},"chunkOwner":{"__isSmartRef__":true,"id":12278},"storedString":"useOfflineStorage","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12285":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12286":{"style":{"__isSmartRef__":true,"id":12287},"chunkOwner":{"__isSmartRef__":true,"id":12278},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12287":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12288":{"morph":{"__isSmartRef__":true,"id":12278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12289":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12290":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12291":{"layoutText":{"__isSmartRef__":true,"id":12292}},"12292":{"varMapping":{"__isSmartRef__":true,"id":12293},"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":12294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12293":{"this":{"__isSmartRef__":true,"id":12278}},"12294":{},"12295":{"_Position":{"__isSmartRef__":true,"id":12296},"renderContextTable":{"__isSmartRef__":true,"id":12297},"_Extent":{"__isSmartRef__":true,"id":12298},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12298":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12299":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12300":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12301":{"morph":{"__isSmartRef__":true,"id":12252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12302":{"resizeWidth":true},"12303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12305":{"updateExpanderColor":{"__isSmartRef__":true,"id":12306},"onMouseDown":{"__isSmartRef__":true,"id":12309},"onMouseUp":{"__isSmartRef__":true,"id":12316},"isRoot":{"__isSmartRef__":true,"id":12323},"displayValue":{"__isSmartRef__":true,"id":12326},"update":{"__isSmartRef__":true,"id":12329}},"12306":{"varMapping":{"__isSmartRef__":true,"id":12307},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12307":{"this":{"__isSmartRef__":true,"id":12252}},"12308":{},"12309":{"varMapping":{"__isSmartRef__":true,"id":12310},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12310":{"this":{"__isSmartRef__":true,"id":12252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12311}},"12311":{"$super":{"__isSmartRef__":true,"id":12312}},"12312":{"varMapping":{"__isSmartRef__":true,"id":12313},"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":12314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12313":{"obj":{"__isSmartRef__":true,"id":12252},"name":"onMouseDown"},"12314":{},"12315":{},"12316":{"varMapping":{"__isSmartRef__":true,"id":12317},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12317":{"this":{"__isSmartRef__":true,"id":12252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12318}},"12318":{"$super":{"__isSmartRef__":true,"id":12319}},"12319":{"varMapping":{"__isSmartRef__":true,"id":12320},"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":12321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12320":{"obj":{"__isSmartRef__":true,"id":12252},"name":"onMouseUp"},"12321":{},"12322":{},"12323":{"varMapping":{"__isSmartRef__":true,"id":12324},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12324":{"this":{"__isSmartRef__":true,"id":12252}},"12325":{},"12326":{"varMapping":{"__isSmartRef__":true,"id":12327},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12327":{"this":{"__isSmartRef__":true,"id":12252}},"12328":{},"12329":{"varMapping":{"__isSmartRef__":true,"id":12330},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12330":{"this":{"__isSmartRef__":true,"id":12252}},"12331":{},"12332":{"_Position":{"__isSmartRef__":true,"id":12333},"renderContextTable":{"__isSmartRef__":true,"id":12334},"_Extent":{"__isSmartRef__":true,"id":12335},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12335":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12336":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12338":{"morph":{"__isSmartRef__":true,"id":12251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12339":{"layouter":{"__isSmartRef__":true,"id":12340},"resizeWidth":true},"12340":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12342":{"x":0,"y":2020,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12343":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12344}},"12344":{"varMapping":{"__isSmartRef__":true,"id":12345},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12345":{"this":{"__isSmartRef__":true,"id":12251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12346}},"12346":{"$super":{"__isSmartRef__":true,"id":12347}},"12347":{"varMapping":{"__isSmartRef__":true,"id":12348},"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":12349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12348":{"obj":{"__isSmartRef__":true,"id":12251},"name":"getLayoutableSubmorphs"},"12349":{},"12350":{},"12351":{"submorphs":[{"__isSmartRef__":true,"id":12352}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12432},"id":457,"renderContextTable":{"__isSmartRef__":true,"id":12437},"eventHandler":{"__isSmartRef__":true,"id":12438},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12439},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12441},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12443},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12352":{"submorphs":[{"__isSmartRef__":true,"id":12353},{"__isSmartRef__":true,"id":12378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12395},"id":454,"renderContextTable":{"__isSmartRef__":true,"id":12400},"eventHandler":{"__isSmartRef__":true,"id":12401},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12402},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"usePieMenus","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12353},"text":{"__isSmartRef__":true,"id":12378},"owner":{"__isSmartRef__":true,"id":12351},"_Position":{"__isSmartRef__":true,"id":12403},"priorExtent":{"__isSmartRef__":true,"id":12404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12405},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12353":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12354},"id":455,"renderContextTable":{"__isSmartRef__":true,"id":12360},"eventHandler":{"__isSmartRef__":true,"id":12361},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12362},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12363},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12354":{"_Position":{"__isSmartRef__":true,"id":12355},"renderContextTable":{"__isSmartRef__":true,"id":12356},"_Extent":{"__isSmartRef__":true,"id":12357},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12355":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12357":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12358":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12359":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12361":{"morph":{"__isSmartRef__":true,"id":12353},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12362":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12363":{"onMouseUp":{"__isSmartRef__":true,"id":12364},"toggle":{"__isSmartRef__":true,"id":12371}},"12364":{"varMapping":{"__isSmartRef__":true,"id":12365},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12365":{"this":{"__isSmartRef__":true,"id":12353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12366}},"12366":{"$super":{"__isSmartRef__":true,"id":12367}},"12367":{"varMapping":{"__isSmartRef__":true,"id":12368},"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":12369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12368":{"obj":{"__isSmartRef__":true,"id":12353},"name":"onMouseUp"},"12369":{},"12370":{},"12371":{"varMapping":{"__isSmartRef__":true,"id":12372},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12372":{"this":{"__isSmartRef__":true,"id":12353},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12373}},"12373":{"$super":{"__isSmartRef__":true,"id":12374}},"12374":{"varMapping":{"__isSmartRef__":true,"id":12375},"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":12376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12375":{"obj":{"__isSmartRef__":true,"id":12353},"name":"toggle"},"12376":{},"12377":{},"12378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12379},"id":456,"renderContextTable":{"__isSmartRef__":true,"id":12383},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12384},{"__isSmartRef__":true,"id":12386}],"eventHandler":{"__isSmartRef__":true,"id":12388},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12389},"priorExtent":{"__isSmartRef__":true,"id":12390},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12391},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12379":{"_Position":{"__isSmartRef__":true,"id":12380},"renderContextTable":{"__isSmartRef__":true,"id":12381},"_Extent":{"__isSmartRef__":true,"id":12382},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12380":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12382":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12384":{"style":{"__isSmartRef__":true,"id":12385},"chunkOwner":{"__isSmartRef__":true,"id":12378},"storedString":"usePieMenus","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12386":{"style":{"__isSmartRef__":true,"id":12387},"chunkOwner":{"__isSmartRef__":true,"id":12378},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12387":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12388":{"morph":{"__isSmartRef__":true,"id":12378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12389":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12390":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12391":{"layoutText":{"__isSmartRef__":true,"id":12392}},"12392":{"varMapping":{"__isSmartRef__":true,"id":12393},"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":12394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12393":{"this":{"__isSmartRef__":true,"id":12378}},"12394":{},"12395":{"_Position":{"__isSmartRef__":true,"id":12396},"renderContextTable":{"__isSmartRef__":true,"id":12397},"_Extent":{"__isSmartRef__":true,"id":12398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12399},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12397":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12401":{"morph":{"__isSmartRef__":true,"id":12352},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12402":{"resizeWidth":true},"12403":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12405":{"updateExpanderColor":{"__isSmartRef__":true,"id":12406},"onMouseDown":{"__isSmartRef__":true,"id":12409},"onMouseUp":{"__isSmartRef__":true,"id":12416},"isRoot":{"__isSmartRef__":true,"id":12423},"displayValue":{"__isSmartRef__":true,"id":12426},"update":{"__isSmartRef__":true,"id":12429}},"12406":{"varMapping":{"__isSmartRef__":true,"id":12407},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12407":{"this":{"__isSmartRef__":true,"id":12352}},"12408":{},"12409":{"varMapping":{"__isSmartRef__":true,"id":12410},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12410":{"this":{"__isSmartRef__":true,"id":12352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12411}},"12411":{"$super":{"__isSmartRef__":true,"id":12412}},"12412":{"varMapping":{"__isSmartRef__":true,"id":12413},"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":12414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12413":{"obj":{"__isSmartRef__":true,"id":12352},"name":"onMouseDown"},"12414":{},"12415":{},"12416":{"varMapping":{"__isSmartRef__":true,"id":12417},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12417":{"this":{"__isSmartRef__":true,"id":12352},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12418}},"12418":{"$super":{"__isSmartRef__":true,"id":12419}},"12419":{"varMapping":{"__isSmartRef__":true,"id":12420},"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":12421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12420":{"obj":{"__isSmartRef__":true,"id":12352},"name":"onMouseUp"},"12421":{},"12422":{},"12423":{"varMapping":{"__isSmartRef__":true,"id":12424},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12424":{"this":{"__isSmartRef__":true,"id":12352}},"12425":{},"12426":{"varMapping":{"__isSmartRef__":true,"id":12427},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12427":{"this":{"__isSmartRef__":true,"id":12352}},"12428":{},"12429":{"varMapping":{"__isSmartRef__":true,"id":12430},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12430":{"this":{"__isSmartRef__":true,"id":12352}},"12431":{},"12432":{"_Position":{"__isSmartRef__":true,"id":12433},"renderContextTable":{"__isSmartRef__":true,"id":12434},"_Extent":{"__isSmartRef__":true,"id":12435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12436},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12433":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12435":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12437":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12438":{"morph":{"__isSmartRef__":true,"id":12351},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12439":{"layouter":{"__isSmartRef__":true,"id":12440},"resizeWidth":true},"12440":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12351},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12441":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12442":{"x":0,"y":2040,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12443":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12444}},"12444":{"varMapping":{"__isSmartRef__":true,"id":12445},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12445":{"this":{"__isSmartRef__":true,"id":12351},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12446}},"12446":{"$super":{"__isSmartRef__":true,"id":12447}},"12447":{"varMapping":{"__isSmartRef__":true,"id":12448},"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":12449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12448":{"obj":{"__isSmartRef__":true,"id":12351},"name":"getLayoutableSubmorphs"},"12449":{},"12450":{},"12451":{"submorphs":[{"__isSmartRef__":true,"id":12452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12532},"id":461,"renderContextTable":{"__isSmartRef__":true,"id":12537},"eventHandler":{"__isSmartRef__":true,"id":12538},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12539},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12541},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12543},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12452":{"submorphs":[{"__isSmartRef__":true,"id":12453},{"__isSmartRef__":true,"id":12478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12495},"id":458,"renderContextTable":{"__isSmartRef__":true,"id":12500},"eventHandler":{"__isSmartRef__":true,"id":12501},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12502},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useShadowMorphs","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12453},"text":{"__isSmartRef__":true,"id":12478},"owner":{"__isSmartRef__":true,"id":12451},"_Position":{"__isSmartRef__":true,"id":12503},"priorExtent":{"__isSmartRef__":true,"id":12504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12505},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12454},"id":459,"renderContextTable":{"__isSmartRef__":true,"id":12460},"eventHandler":{"__isSmartRef__":true,"id":12461},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12462},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12463},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12454":{"_Position":{"__isSmartRef__":true,"id":12455},"renderContextTable":{"__isSmartRef__":true,"id":12456},"_Extent":{"__isSmartRef__":true,"id":12457},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12458},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12456":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12457":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12461":{"morph":{"__isSmartRef__":true,"id":12453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12462":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12463":{"onMouseUp":{"__isSmartRef__":true,"id":12464},"toggle":{"__isSmartRef__":true,"id":12471}},"12464":{"varMapping":{"__isSmartRef__":true,"id":12465},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12465":{"this":{"__isSmartRef__":true,"id":12453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12466}},"12466":{"$super":{"__isSmartRef__":true,"id":12467}},"12467":{"varMapping":{"__isSmartRef__":true,"id":12468},"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":12469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12468":{"obj":{"__isSmartRef__":true,"id":12453},"name":"onMouseUp"},"12469":{},"12470":{},"12471":{"varMapping":{"__isSmartRef__":true,"id":12472},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12472":{"this":{"__isSmartRef__":true,"id":12453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12473}},"12473":{"$super":{"__isSmartRef__":true,"id":12474}},"12474":{"varMapping":{"__isSmartRef__":true,"id":12475},"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":12476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12475":{"obj":{"__isSmartRef__":true,"id":12453},"name":"toggle"},"12476":{},"12477":{},"12478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12479},"id":460,"renderContextTable":{"__isSmartRef__":true,"id":12483},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12484},{"__isSmartRef__":true,"id":12486}],"eventHandler":{"__isSmartRef__":true,"id":12488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12489},"priorExtent":{"__isSmartRef__":true,"id":12490},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12491},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12479":{"_Position":{"__isSmartRef__":true,"id":12480},"renderContextTable":{"__isSmartRef__":true,"id":12481},"_Extent":{"__isSmartRef__":true,"id":12482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12480":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12482":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12484":{"style":{"__isSmartRef__":true,"id":12485},"chunkOwner":{"__isSmartRef__":true,"id":12478},"storedString":"useShadowMorphs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12485":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12486":{"style":{"__isSmartRef__":true,"id":12487},"chunkOwner":{"__isSmartRef__":true,"id":12478},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12487":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12488":{"morph":{"__isSmartRef__":true,"id":12478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12489":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12490":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12491":{"layoutText":{"__isSmartRef__":true,"id":12492}},"12492":{"varMapping":{"__isSmartRef__":true,"id":12493},"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":12494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12493":{"this":{"__isSmartRef__":true,"id":12478}},"12494":{},"12495":{"_Position":{"__isSmartRef__":true,"id":12496},"renderContextTable":{"__isSmartRef__":true,"id":12497},"_Extent":{"__isSmartRef__":true,"id":12498},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12499},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12496":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12498":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12501":{"morph":{"__isSmartRef__":true,"id":12452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12502":{"resizeWidth":true},"12503":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12504":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12505":{"updateExpanderColor":{"__isSmartRef__":true,"id":12506},"onMouseDown":{"__isSmartRef__":true,"id":12509},"onMouseUp":{"__isSmartRef__":true,"id":12516},"isRoot":{"__isSmartRef__":true,"id":12523},"displayValue":{"__isSmartRef__":true,"id":12526},"update":{"__isSmartRef__":true,"id":12529}},"12506":{"varMapping":{"__isSmartRef__":true,"id":12507},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12507":{"this":{"__isSmartRef__":true,"id":12452}},"12508":{},"12509":{"varMapping":{"__isSmartRef__":true,"id":12510},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12510":{"this":{"__isSmartRef__":true,"id":12452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12511}},"12511":{"$super":{"__isSmartRef__":true,"id":12512}},"12512":{"varMapping":{"__isSmartRef__":true,"id":12513},"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":12514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12513":{"obj":{"__isSmartRef__":true,"id":12452},"name":"onMouseDown"},"12514":{},"12515":{},"12516":{"varMapping":{"__isSmartRef__":true,"id":12517},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12517":{"this":{"__isSmartRef__":true,"id":12452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12518}},"12518":{"$super":{"__isSmartRef__":true,"id":12519}},"12519":{"varMapping":{"__isSmartRef__":true,"id":12520},"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":12521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12520":{"obj":{"__isSmartRef__":true,"id":12452},"name":"onMouseUp"},"12521":{},"12522":{},"12523":{"varMapping":{"__isSmartRef__":true,"id":12524},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12524":{"this":{"__isSmartRef__":true,"id":12452}},"12525":{},"12526":{"varMapping":{"__isSmartRef__":true,"id":12527},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12527":{"this":{"__isSmartRef__":true,"id":12452}},"12528":{},"12529":{"varMapping":{"__isSmartRef__":true,"id":12530},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12530":{"this":{"__isSmartRef__":true,"id":12452}},"12531":{},"12532":{"_Position":{"__isSmartRef__":true,"id":12533},"renderContextTable":{"__isSmartRef__":true,"id":12534},"_Extent":{"__isSmartRef__":true,"id":12535},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12533":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12535":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12538":{"morph":{"__isSmartRef__":true,"id":12451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12539":{"layouter":{"__isSmartRef__":true,"id":12540},"resizeWidth":true},"12540":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12451},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12542":{"x":0,"y":2060,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12543":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12544}},"12544":{"varMapping":{"__isSmartRef__":true,"id":12545},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12545":{"this":{"__isSmartRef__":true,"id":12451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12546}},"12546":{"$super":{"__isSmartRef__":true,"id":12547}},"12547":{"varMapping":{"__isSmartRef__":true,"id":12548},"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":12549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12548":{"obj":{"__isSmartRef__":true,"id":12451},"name":"getLayoutableSubmorphs"},"12549":{},"12550":{},"12551":{"submorphs":[{"__isSmartRef__":true,"id":12552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12632},"id":465,"renderContextTable":{"__isSmartRef__":true,"id":12637},"eventHandler":{"__isSmartRef__":true,"id":12638},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12639},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12641},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12552":{"submorphs":[{"__isSmartRef__":true,"id":12553},{"__isSmartRef__":true,"id":12578}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12595},"id":462,"renderContextTable":{"__isSmartRef__":true,"id":12600},"eventHandler":{"__isSmartRef__":true,"id":12601},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12602},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useSoftTabs","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12553},"text":{"__isSmartRef__":true,"id":12578},"owner":{"__isSmartRef__":true,"id":12551},"_Position":{"__isSmartRef__":true,"id":12603},"priorExtent":{"__isSmartRef__":true,"id":12604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12605},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12554},"id":463,"renderContextTable":{"__isSmartRef__":true,"id":12560},"eventHandler":{"__isSmartRef__":true,"id":12561},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12562},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12563},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12554":{"_Position":{"__isSmartRef__":true,"id":12555},"renderContextTable":{"__isSmartRef__":true,"id":12556},"_Extent":{"__isSmartRef__":true,"id":12557},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12558},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12555":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12558":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12559":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12561":{"morph":{"__isSmartRef__":true,"id":12553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12562":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12563":{"onMouseUp":{"__isSmartRef__":true,"id":12564},"toggle":{"__isSmartRef__":true,"id":12571}},"12564":{"varMapping":{"__isSmartRef__":true,"id":12565},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12565":{"this":{"__isSmartRef__":true,"id":12553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12566}},"12566":{"$super":{"__isSmartRef__":true,"id":12567}},"12567":{"varMapping":{"__isSmartRef__":true,"id":12568},"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":12569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12568":{"obj":{"__isSmartRef__":true,"id":12553},"name":"onMouseUp"},"12569":{},"12570":{},"12571":{"varMapping":{"__isSmartRef__":true,"id":12572},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12572":{"this":{"__isSmartRef__":true,"id":12553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12573}},"12573":{"$super":{"__isSmartRef__":true,"id":12574}},"12574":{"varMapping":{"__isSmartRef__":true,"id":12575},"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":12576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12575":{"obj":{"__isSmartRef__":true,"id":12553},"name":"toggle"},"12576":{},"12577":{},"12578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12579},"id":464,"renderContextTable":{"__isSmartRef__":true,"id":12583},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12584},{"__isSmartRef__":true,"id":12586}],"eventHandler":{"__isSmartRef__":true,"id":12588},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12589},"priorExtent":{"__isSmartRef__":true,"id":12590},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12591},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12579":{"_Position":{"__isSmartRef__":true,"id":12580},"renderContextTable":{"__isSmartRef__":true,"id":12581},"_Extent":{"__isSmartRef__":true,"id":12582},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12580":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12582":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12583":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12584":{"style":{"__isSmartRef__":true,"id":12585},"chunkOwner":{"__isSmartRef__":true,"id":12578},"storedString":"useSoftTabs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12585":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12586":{"style":{"__isSmartRef__":true,"id":12587},"chunkOwner":{"__isSmartRef__":true,"id":12578},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12587":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12588":{"morph":{"__isSmartRef__":true,"id":12578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12589":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12590":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12591":{"layoutText":{"__isSmartRef__":true,"id":12592}},"12592":{"varMapping":{"__isSmartRef__":true,"id":12593},"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":12594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12593":{"this":{"__isSmartRef__":true,"id":12578}},"12594":{},"12595":{"_Position":{"__isSmartRef__":true,"id":12596},"renderContextTable":{"__isSmartRef__":true,"id":12597},"_Extent":{"__isSmartRef__":true,"id":12598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12597":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12598":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12599":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12600":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12601":{"morph":{"__isSmartRef__":true,"id":12552},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12602":{"resizeWidth":true},"12603":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12604":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12605":{"updateExpanderColor":{"__isSmartRef__":true,"id":12606},"onMouseDown":{"__isSmartRef__":true,"id":12609},"onMouseUp":{"__isSmartRef__":true,"id":12616},"isRoot":{"__isSmartRef__":true,"id":12623},"displayValue":{"__isSmartRef__":true,"id":12626},"update":{"__isSmartRef__":true,"id":12629}},"12606":{"varMapping":{"__isSmartRef__":true,"id":12607},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12607":{"this":{"__isSmartRef__":true,"id":12552}},"12608":{},"12609":{"varMapping":{"__isSmartRef__":true,"id":12610},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12610":{"this":{"__isSmartRef__":true,"id":12552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12611}},"12611":{"$super":{"__isSmartRef__":true,"id":12612}},"12612":{"varMapping":{"__isSmartRef__":true,"id":12613},"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":12614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12613":{"obj":{"__isSmartRef__":true,"id":12552},"name":"onMouseDown"},"12614":{},"12615":{},"12616":{"varMapping":{"__isSmartRef__":true,"id":12617},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12617":{"this":{"__isSmartRef__":true,"id":12552},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12618}},"12618":{"$super":{"__isSmartRef__":true,"id":12619}},"12619":{"varMapping":{"__isSmartRef__":true,"id":12620},"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":12621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12620":{"obj":{"__isSmartRef__":true,"id":12552},"name":"onMouseUp"},"12621":{},"12622":{},"12623":{"varMapping":{"__isSmartRef__":true,"id":12624},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12624":{"this":{"__isSmartRef__":true,"id":12552}},"12625":{},"12626":{"varMapping":{"__isSmartRef__":true,"id":12627},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12627":{"this":{"__isSmartRef__":true,"id":12552}},"12628":{},"12629":{"varMapping":{"__isSmartRef__":true,"id":12630},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12630":{"this":{"__isSmartRef__":true,"id":12552}},"12631":{},"12632":{"_Position":{"__isSmartRef__":true,"id":12633},"renderContextTable":{"__isSmartRef__":true,"id":12634},"_Extent":{"__isSmartRef__":true,"id":12635},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12636},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12636":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12638":{"morph":{"__isSmartRef__":true,"id":12551},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12639":{"layouter":{"__isSmartRef__":true,"id":12640},"resizeWidth":true},"12640":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12551},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12641":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12642":{"x":0,"y":2080,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12643":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12644}},"12644":{"varMapping":{"__isSmartRef__":true,"id":12645},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12645":{"this":{"__isSmartRef__":true,"id":12551},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12646}},"12646":{"$super":{"__isSmartRef__":true,"id":12647}},"12647":{"varMapping":{"__isSmartRef__":true,"id":12648},"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":12649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12648":{"obj":{"__isSmartRef__":true,"id":12551},"name":"getLayoutableSubmorphs"},"12649":{},"12650":{},"12651":{"submorphs":[{"__isSmartRef__":true,"id":12652}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12732},"id":469,"renderContextTable":{"__isSmartRef__":true,"id":12737},"eventHandler":{"__isSmartRef__":true,"id":12738},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12739},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12741},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12742},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12652":{"submorphs":[{"__isSmartRef__":true,"id":12653},{"__isSmartRef__":true,"id":12678}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12695},"id":466,"renderContextTable":{"__isSmartRef__":true,"id":12700},"eventHandler":{"__isSmartRef__":true,"id":12701},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12702},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useStyling","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12653},"text":{"__isSmartRef__":true,"id":12678},"owner":{"__isSmartRef__":true,"id":12651},"_Position":{"__isSmartRef__":true,"id":12703},"priorExtent":{"__isSmartRef__":true,"id":12704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12705},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12654},"id":467,"renderContextTable":{"__isSmartRef__":true,"id":12660},"eventHandler":{"__isSmartRef__":true,"id":12661},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12662},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12663},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12654":{"_Position":{"__isSmartRef__":true,"id":12655},"renderContextTable":{"__isSmartRef__":true,"id":12656},"_Extent":{"__isSmartRef__":true,"id":12657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12658},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12657":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12659":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12661":{"morph":{"__isSmartRef__":true,"id":12653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12662":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12663":{"onMouseUp":{"__isSmartRef__":true,"id":12664},"toggle":{"__isSmartRef__":true,"id":12671}},"12664":{"varMapping":{"__isSmartRef__":true,"id":12665},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12665":{"this":{"__isSmartRef__":true,"id":12653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12666}},"12666":{"$super":{"__isSmartRef__":true,"id":12667}},"12667":{"varMapping":{"__isSmartRef__":true,"id":12668},"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":12669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12668":{"obj":{"__isSmartRef__":true,"id":12653},"name":"onMouseUp"},"12669":{},"12670":{},"12671":{"varMapping":{"__isSmartRef__":true,"id":12672},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12672":{"this":{"__isSmartRef__":true,"id":12653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12673}},"12673":{"$super":{"__isSmartRef__":true,"id":12674}},"12674":{"varMapping":{"__isSmartRef__":true,"id":12675},"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":12676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12675":{"obj":{"__isSmartRef__":true,"id":12653},"name":"toggle"},"12676":{},"12677":{},"12678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12679},"id":468,"renderContextTable":{"__isSmartRef__":true,"id":12683},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12684},{"__isSmartRef__":true,"id":12686}],"eventHandler":{"__isSmartRef__":true,"id":12688},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12689},"priorExtent":{"__isSmartRef__":true,"id":12690},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12691},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12679":{"_Position":{"__isSmartRef__":true,"id":12680},"renderContextTable":{"__isSmartRef__":true,"id":12681},"_Extent":{"__isSmartRef__":true,"id":12682},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12680":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12681":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12682":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12683":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12684":{"style":{"__isSmartRef__":true,"id":12685},"chunkOwner":{"__isSmartRef__":true,"id":12678},"storedString":"useStyling","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12685":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12686":{"style":{"__isSmartRef__":true,"id":12687},"chunkOwner":{"__isSmartRef__":true,"id":12678},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12687":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12688":{"morph":{"__isSmartRef__":true,"id":12678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12689":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12690":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12691":{"layoutText":{"__isSmartRef__":true,"id":12692}},"12692":{"varMapping":{"__isSmartRef__":true,"id":12693},"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":12694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12693":{"this":{"__isSmartRef__":true,"id":12678}},"12694":{},"12695":{"_Position":{"__isSmartRef__":true,"id":12696},"renderContextTable":{"__isSmartRef__":true,"id":12697},"_Extent":{"__isSmartRef__":true,"id":12698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12696":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12698":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12699":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12701":{"morph":{"__isSmartRef__":true,"id":12652},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12702":{"resizeWidth":true},"12703":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12705":{"updateExpanderColor":{"__isSmartRef__":true,"id":12706},"onMouseDown":{"__isSmartRef__":true,"id":12709},"onMouseUp":{"__isSmartRef__":true,"id":12716},"isRoot":{"__isSmartRef__":true,"id":12723},"displayValue":{"__isSmartRef__":true,"id":12726},"update":{"__isSmartRef__":true,"id":12729}},"12706":{"varMapping":{"__isSmartRef__":true,"id":12707},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12707":{"this":{"__isSmartRef__":true,"id":12652}},"12708":{},"12709":{"varMapping":{"__isSmartRef__":true,"id":12710},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12710":{"this":{"__isSmartRef__":true,"id":12652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12711}},"12711":{"$super":{"__isSmartRef__":true,"id":12712}},"12712":{"varMapping":{"__isSmartRef__":true,"id":12713},"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":12714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12713":{"obj":{"__isSmartRef__":true,"id":12652},"name":"onMouseDown"},"12714":{},"12715":{},"12716":{"varMapping":{"__isSmartRef__":true,"id":12717},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12717":{"this":{"__isSmartRef__":true,"id":12652},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12718}},"12718":{"$super":{"__isSmartRef__":true,"id":12719}},"12719":{"varMapping":{"__isSmartRef__":true,"id":12720},"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":12721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12720":{"obj":{"__isSmartRef__":true,"id":12652},"name":"onMouseUp"},"12721":{},"12722":{},"12723":{"varMapping":{"__isSmartRef__":true,"id":12724},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12724":{"this":{"__isSmartRef__":true,"id":12652}},"12725":{},"12726":{"varMapping":{"__isSmartRef__":true,"id":12727},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12727":{"this":{"__isSmartRef__":true,"id":12652}},"12728":{},"12729":{"varMapping":{"__isSmartRef__":true,"id":12730},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12730":{"this":{"__isSmartRef__":true,"id":12652}},"12731":{},"12732":{"_Position":{"__isSmartRef__":true,"id":12733},"renderContextTable":{"__isSmartRef__":true,"id":12734},"_Extent":{"__isSmartRef__":true,"id":12735},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12736},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12733":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12735":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12736":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12738":{"morph":{"__isSmartRef__":true,"id":12651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12739":{"layouter":{"__isSmartRef__":true,"id":12740},"resizeWidth":true},"12740":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12651},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12741":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12742":{"x":0,"y":2100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12743":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12744}},"12744":{"varMapping":{"__isSmartRef__":true,"id":12745},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12745":{"this":{"__isSmartRef__":true,"id":12651},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12746}},"12746":{"$super":{"__isSmartRef__":true,"id":12747}},"12747":{"varMapping":{"__isSmartRef__":true,"id":12748},"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":12749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12748":{"obj":{"__isSmartRef__":true,"id":12651},"name":"getLayoutableSubmorphs"},"12749":{},"12750":{},"12751":{"submorphs":[{"__isSmartRef__":true,"id":12752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12832},"id":473,"renderContextTable":{"__isSmartRef__":true,"id":12837},"eventHandler":{"__isSmartRef__":true,"id":12838},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12839},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12841},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12752":{"submorphs":[{"__isSmartRef__":true,"id":12753},{"__isSmartRef__":true,"id":12778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12795},"id":470,"renderContextTable":{"__isSmartRef__":true,"id":12800},"eventHandler":{"__isSmartRef__":true,"id":12801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12802},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"useTransformAPI","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12753},"text":{"__isSmartRef__":true,"id":12778},"owner":{"__isSmartRef__":true,"id":12751},"_Position":{"__isSmartRef__":true,"id":12803},"priorExtent":{"__isSmartRef__":true,"id":12804},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12805},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12753":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12754},"id":471,"renderContextTable":{"__isSmartRef__":true,"id":12760},"eventHandler":{"__isSmartRef__":true,"id":12761},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12762},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12763},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12754":{"_Position":{"__isSmartRef__":true,"id":12755},"renderContextTable":{"__isSmartRef__":true,"id":12756},"_Extent":{"__isSmartRef__":true,"id":12757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12758},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12759},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12755":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12756":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12757":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12759":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12761":{"morph":{"__isSmartRef__":true,"id":12753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12762":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12763":{"onMouseUp":{"__isSmartRef__":true,"id":12764},"toggle":{"__isSmartRef__":true,"id":12771}},"12764":{"varMapping":{"__isSmartRef__":true,"id":12765},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12765":{"this":{"__isSmartRef__":true,"id":12753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12766}},"12766":{"$super":{"__isSmartRef__":true,"id":12767}},"12767":{"varMapping":{"__isSmartRef__":true,"id":12768},"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":12769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12768":{"obj":{"__isSmartRef__":true,"id":12753},"name":"onMouseUp"},"12769":{},"12770":{},"12771":{"varMapping":{"__isSmartRef__":true,"id":12772},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12772":{"this":{"__isSmartRef__":true,"id":12753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12773}},"12773":{"$super":{"__isSmartRef__":true,"id":12774}},"12774":{"varMapping":{"__isSmartRef__":true,"id":12775},"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":12776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12775":{"obj":{"__isSmartRef__":true,"id":12753},"name":"toggle"},"12776":{},"12777":{},"12778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12779},"id":472,"renderContextTable":{"__isSmartRef__":true,"id":12783},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12784},{"__isSmartRef__":true,"id":12786}],"eventHandler":{"__isSmartRef__":true,"id":12788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12789},"priorExtent":{"__isSmartRef__":true,"id":12790},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12791},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12779":{"_Position":{"__isSmartRef__":true,"id":12780},"renderContextTable":{"__isSmartRef__":true,"id":12781},"_Extent":{"__isSmartRef__":true,"id":12782},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12780":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12782":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12784":{"style":{"__isSmartRef__":true,"id":12785},"chunkOwner":{"__isSmartRef__":true,"id":12778},"storedString":"useTransformAPI","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12786":{"style":{"__isSmartRef__":true,"id":12787},"chunkOwner":{"__isSmartRef__":true,"id":12778},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12787":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12788":{"morph":{"__isSmartRef__":true,"id":12778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12789":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12790":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12791":{"layoutText":{"__isSmartRef__":true,"id":12792}},"12792":{"varMapping":{"__isSmartRef__":true,"id":12793},"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":12794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12793":{"this":{"__isSmartRef__":true,"id":12778}},"12794":{},"12795":{"_Position":{"__isSmartRef__":true,"id":12796},"renderContextTable":{"__isSmartRef__":true,"id":12797},"_Extent":{"__isSmartRef__":true,"id":12798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12799},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12798":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12799":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12801":{"morph":{"__isSmartRef__":true,"id":12752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12802":{"resizeWidth":true},"12803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12805":{"updateExpanderColor":{"__isSmartRef__":true,"id":12806},"onMouseDown":{"__isSmartRef__":true,"id":12809},"onMouseUp":{"__isSmartRef__":true,"id":12816},"isRoot":{"__isSmartRef__":true,"id":12823},"displayValue":{"__isSmartRef__":true,"id":12826},"update":{"__isSmartRef__":true,"id":12829}},"12806":{"varMapping":{"__isSmartRef__":true,"id":12807},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12807":{"this":{"__isSmartRef__":true,"id":12752}},"12808":{},"12809":{"varMapping":{"__isSmartRef__":true,"id":12810},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12810":{"this":{"__isSmartRef__":true,"id":12752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12811}},"12811":{"$super":{"__isSmartRef__":true,"id":12812}},"12812":{"varMapping":{"__isSmartRef__":true,"id":12813},"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":12814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12813":{"obj":{"__isSmartRef__":true,"id":12752},"name":"onMouseDown"},"12814":{},"12815":{},"12816":{"varMapping":{"__isSmartRef__":true,"id":12817},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12817":{"this":{"__isSmartRef__":true,"id":12752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12818}},"12818":{"$super":{"__isSmartRef__":true,"id":12819}},"12819":{"varMapping":{"__isSmartRef__":true,"id":12820},"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":12821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12820":{"obj":{"__isSmartRef__":true,"id":12752},"name":"onMouseUp"},"12821":{},"12822":{},"12823":{"varMapping":{"__isSmartRef__":true,"id":12824},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12824":{"this":{"__isSmartRef__":true,"id":12752}},"12825":{},"12826":{"varMapping":{"__isSmartRef__":true,"id":12827},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12827":{"this":{"__isSmartRef__":true,"id":12752}},"12828":{},"12829":{"varMapping":{"__isSmartRef__":true,"id":12830},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12830":{"this":{"__isSmartRef__":true,"id":12752}},"12831":{},"12832":{"_Position":{"__isSmartRef__":true,"id":12833},"renderContextTable":{"__isSmartRef__":true,"id":12834},"_Extent":{"__isSmartRef__":true,"id":12835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12835":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12836":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12838":{"morph":{"__isSmartRef__":true,"id":12751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12839":{"layouter":{"__isSmartRef__":true,"id":12840},"resizeWidth":true},"12840":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12751},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12841":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12842":{"x":0,"y":2120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12843":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12844}},"12844":{"varMapping":{"__isSmartRef__":true,"id":12845},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12845":{"this":{"__isSmartRef__":true,"id":12751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12846}},"12846":{"$super":{"__isSmartRef__":true,"id":12847}},"12847":{"varMapping":{"__isSmartRef__":true,"id":12848},"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":12849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12848":{"obj":{"__isSmartRef__":true,"id":12751},"name":"getLayoutableSubmorphs"},"12849":{},"12850":{},"12851":{"submorphs":[{"__isSmartRef__":true,"id":12852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12932},"id":477,"renderContextTable":{"__isSmartRef__":true,"id":12937},"eventHandler":{"__isSmartRef__":true,"id":12938},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12939},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12941},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":12942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12852":{"submorphs":[{"__isSmartRef__":true,"id":12853},{"__isSmartRef__":true,"id":12878}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12895},"id":474,"renderContextTable":{"__isSmartRef__":true,"id":12900},"eventHandler":{"__isSmartRef__":true,"id":12901},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12902},"grabbingEnabled":false,"draggingEnabled":false,"data":"http://lively-kernel.org/cgi/user.sh","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":2131},"label":"userNameURL","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12853},"text":{"__isSmartRef__":true,"id":12878},"owner":{"__isSmartRef__":true,"id":12851},"_Position":{"__isSmartRef__":true,"id":12903},"priorExtent":{"__isSmartRef__":true,"id":12904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12905},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12854},"id":475,"renderContextTable":{"__isSmartRef__":true,"id":12860},"eventHandler":{"__isSmartRef__":true,"id":12861},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12862},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12863},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12854":{"_Position":{"__isSmartRef__":true,"id":12855},"renderContextTable":{"__isSmartRef__":true,"id":12856},"_Extent":{"__isSmartRef__":true,"id":12857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12858},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12857":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12859":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12861":{"morph":{"__isSmartRef__":true,"id":12853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12862":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12863":{"onMouseUp":{"__isSmartRef__":true,"id":12864},"toggle":{"__isSmartRef__":true,"id":12871}},"12864":{"varMapping":{"__isSmartRef__":true,"id":12865},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12865":{"this":{"__isSmartRef__":true,"id":12853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12866}},"12866":{"$super":{"__isSmartRef__":true,"id":12867}},"12867":{"varMapping":{"__isSmartRef__":true,"id":12868},"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":12869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12868":{"obj":{"__isSmartRef__":true,"id":12853},"name":"onMouseUp"},"12869":{},"12870":{},"12871":{"varMapping":{"__isSmartRef__":true,"id":12872},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12872":{"this":{"__isSmartRef__":true,"id":12853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12873}},"12873":{"$super":{"__isSmartRef__":true,"id":12874}},"12874":{"varMapping":{"__isSmartRef__":true,"id":12875},"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":12876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12875":{"obj":{"__isSmartRef__":true,"id":12853},"name":"toggle"},"12876":{},"12877":{},"12878":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12879},"id":476,"renderContextTable":{"__isSmartRef__":true,"id":12883},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12884},{"__isSmartRef__":true,"id":12886}],"eventHandler":{"__isSmartRef__":true,"id":12888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12889},"priorExtent":{"__isSmartRef__":true,"id":12890},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12891},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12879":{"_Position":{"__isSmartRef__":true,"id":12880},"renderContextTable":{"__isSmartRef__":true,"id":12881},"_Extent":{"__isSmartRef__":true,"id":12882},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12880":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12882":{"x":375.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12884":{"style":{"__isSmartRef__":true,"id":12885},"chunkOwner":{"__isSmartRef__":true,"id":12878},"storedString":"userNameURL","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12885":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12886":{"style":{"__isSmartRef__":true,"id":12887},"chunkOwner":{"__isSmartRef__":true,"id":12878},"storedString":": http://lively-kernel.org/cgi/user.sh","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12887":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12888":{"morph":{"__isSmartRef__":true,"id":12878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12889":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12890":{"x":367.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12891":{"layoutText":{"__isSmartRef__":true,"id":12892}},"12892":{"varMapping":{"__isSmartRef__":true,"id":12893},"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":12894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12893":{"this":{"__isSmartRef__":true,"id":12878}},"12894":{},"12895":{"_Position":{"__isSmartRef__":true,"id":12896},"renderContextTable":{"__isSmartRef__":true,"id":12897},"_Extent":{"__isSmartRef__":true,"id":12898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12899":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12901":{"morph":{"__isSmartRef__":true,"id":12852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12902":{"resizeWidth":true},"12903":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12905":{"updateExpanderColor":{"__isSmartRef__":true,"id":12906},"onMouseDown":{"__isSmartRef__":true,"id":12909},"onMouseUp":{"__isSmartRef__":true,"id":12916},"isRoot":{"__isSmartRef__":true,"id":12923},"displayValue":{"__isSmartRef__":true,"id":12926},"update":{"__isSmartRef__":true,"id":12929}},"12906":{"varMapping":{"__isSmartRef__":true,"id":12907},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":12908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12907":{"this":{"__isSmartRef__":true,"id":12852}},"12908":{},"12909":{"varMapping":{"__isSmartRef__":true,"id":12910},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12910":{"this":{"__isSmartRef__":true,"id":12852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12911}},"12911":{"$super":{"__isSmartRef__":true,"id":12912}},"12912":{"varMapping":{"__isSmartRef__":true,"id":12913},"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":12914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12913":{"obj":{"__isSmartRef__":true,"id":12852},"name":"onMouseDown"},"12914":{},"12915":{},"12916":{"varMapping":{"__isSmartRef__":true,"id":12917},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12917":{"this":{"__isSmartRef__":true,"id":12852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12918}},"12918":{"$super":{"__isSmartRef__":true,"id":12919}},"12919":{"varMapping":{"__isSmartRef__":true,"id":12920},"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":12921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12920":{"obj":{"__isSmartRef__":true,"id":12852},"name":"onMouseUp"},"12921":{},"12922":{},"12923":{"varMapping":{"__isSmartRef__":true,"id":12924},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12924":{"this":{"__isSmartRef__":true,"id":12852}},"12925":{},"12926":{"varMapping":{"__isSmartRef__":true,"id":12927},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":12928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12927":{"this":{"__isSmartRef__":true,"id":12852}},"12928":{},"12929":{"varMapping":{"__isSmartRef__":true,"id":12930},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12930":{"this":{"__isSmartRef__":true,"id":12852}},"12931":{},"12932":{"_Position":{"__isSmartRef__":true,"id":12933},"renderContextTable":{"__isSmartRef__":true,"id":12934},"_Extent":{"__isSmartRef__":true,"id":12935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12935":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12938":{"morph":{"__isSmartRef__":true,"id":12851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12939":{"layouter":{"__isSmartRef__":true,"id":12940},"resizeWidth":true},"12940":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12851},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12942":{"x":0,"y":2140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12943":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12944}},"12944":{"varMapping":{"__isSmartRef__":true,"id":12945},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12945":{"this":{"__isSmartRef__":true,"id":12851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12946}},"12946":{"$super":{"__isSmartRef__":true,"id":12947}},"12947":{"varMapping":{"__isSmartRef__":true,"id":12948},"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":12949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12948":{"obj":{"__isSmartRef__":true,"id":12851},"name":"getLayoutableSubmorphs"},"12949":{},"12950":{},"12951":{"submorphs":[{"__isSmartRef__":true,"id":12952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13032},"id":481,"renderContextTable":{"__isSmartRef__":true,"id":13037},"eventHandler":{"__isSmartRef__":true,"id":13038},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13039},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":13041},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":13042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12952":{"submorphs":[{"__isSmartRef__":true,"id":12953},{"__isSmartRef__":true,"id":12978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12995},"id":478,"renderContextTable":{"__isSmartRef__":true,"id":13000},"eventHandler":{"__isSmartRef__":true,"id":13001},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13002},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"verboseImport","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":12953},"text":{"__isSmartRef__":true,"id":12978},"owner":{"__isSmartRef__":true,"id":12951},"_Position":{"__isSmartRef__":true,"id":13003},"priorExtent":{"__isSmartRef__":true,"id":13004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12953":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12954},"id":479,"renderContextTable":{"__isSmartRef__":true,"id":12960},"eventHandler":{"__isSmartRef__":true,"id":12961},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12962},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12963},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12954":{"_Position":{"__isSmartRef__":true,"id":12955},"renderContextTable":{"__isSmartRef__":true,"id":12956},"_Extent":{"__isSmartRef__":true,"id":12957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":12959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12955":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12957":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12959":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12961":{"morph":{"__isSmartRef__":true,"id":12953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12962":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12963":{"onMouseUp":{"__isSmartRef__":true,"id":12964},"toggle":{"__isSmartRef__":true,"id":12971}},"12964":{"varMapping":{"__isSmartRef__":true,"id":12965},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":12970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12965":{"this":{"__isSmartRef__":true,"id":12953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12966}},"12966":{"$super":{"__isSmartRef__":true,"id":12967}},"12967":{"varMapping":{"__isSmartRef__":true,"id":12968},"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":12969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12968":{"obj":{"__isSmartRef__":true,"id":12953},"name":"onMouseUp"},"12969":{},"12970":{},"12971":{"varMapping":{"__isSmartRef__":true,"id":12972},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":12977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12972":{"this":{"__isSmartRef__":true,"id":12953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12973}},"12973":{"$super":{"__isSmartRef__":true,"id":12974}},"12974":{"varMapping":{"__isSmartRef__":true,"id":12975},"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":12976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12975":{"obj":{"__isSmartRef__":true,"id":12953},"name":"toggle"},"12976":{},"12977":{},"12978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12979},"id":480,"renderContextTable":{"__isSmartRef__":true,"id":12983},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12984},{"__isSmartRef__":true,"id":12986}],"eventHandler":{"__isSmartRef__":true,"id":12988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12989},"priorExtent":{"__isSmartRef__":true,"id":12990},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12991},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12979":{"_Position":{"__isSmartRef__":true,"id":12980},"renderContextTable":{"__isSmartRef__":true,"id":12981},"_Extent":{"__isSmartRef__":true,"id":12982},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12982":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12984":{"style":{"__isSmartRef__":true,"id":12985},"chunkOwner":{"__isSmartRef__":true,"id":12978},"storedString":"verboseImport","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12986":{"style":{"__isSmartRef__":true,"id":12987},"chunkOwner":{"__isSmartRef__":true,"id":12978},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12987":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12988":{"morph":{"__isSmartRef__":true,"id":12978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12989":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12990":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12991":{"layoutText":{"__isSmartRef__":true,"id":12992}},"12992":{"varMapping":{"__isSmartRef__":true,"id":12993},"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":12994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12993":{"this":{"__isSmartRef__":true,"id":12978}},"12994":{},"12995":{"_Position":{"__isSmartRef__":true,"id":12996},"renderContextTable":{"__isSmartRef__":true,"id":12997},"_Extent":{"__isSmartRef__":true,"id":12998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12999},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13001":{"morph":{"__isSmartRef__":true,"id":12952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13002":{"resizeWidth":true},"13003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13004":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13005":{"updateExpanderColor":{"__isSmartRef__":true,"id":13006},"onMouseDown":{"__isSmartRef__":true,"id":13009},"onMouseUp":{"__isSmartRef__":true,"id":13016},"isRoot":{"__isSmartRef__":true,"id":13023},"displayValue":{"__isSmartRef__":true,"id":13026},"update":{"__isSmartRef__":true,"id":13029}},"13006":{"varMapping":{"__isSmartRef__":true,"id":13007},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":13008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13007":{"this":{"__isSmartRef__":true,"id":12952}},"13008":{},"13009":{"varMapping":{"__isSmartRef__":true,"id":13010},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":13015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13010":{"this":{"__isSmartRef__":true,"id":12952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13011}},"13011":{"$super":{"__isSmartRef__":true,"id":13012}},"13012":{"varMapping":{"__isSmartRef__":true,"id":13013},"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":13014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13013":{"obj":{"__isSmartRef__":true,"id":12952},"name":"onMouseDown"},"13014":{},"13015":{},"13016":{"varMapping":{"__isSmartRef__":true,"id":13017},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":13022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13017":{"this":{"__isSmartRef__":true,"id":12952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13018}},"13018":{"$super":{"__isSmartRef__":true,"id":13019}},"13019":{"varMapping":{"__isSmartRef__":true,"id":13020},"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":13021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13020":{"obj":{"__isSmartRef__":true,"id":12952},"name":"onMouseUp"},"13021":{},"13022":{},"13023":{"varMapping":{"__isSmartRef__":true,"id":13024},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":13025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13024":{"this":{"__isSmartRef__":true,"id":12952}},"13025":{},"13026":{"varMapping":{"__isSmartRef__":true,"id":13027},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":13028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13027":{"this":{"__isSmartRef__":true,"id":12952}},"13028":{},"13029":{"varMapping":{"__isSmartRef__":true,"id":13030},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13030":{"this":{"__isSmartRef__":true,"id":12952}},"13031":{},"13032":{"_Position":{"__isSmartRef__":true,"id":13033},"renderContextTable":{"__isSmartRef__":true,"id":13034},"_Extent":{"__isSmartRef__":true,"id":13035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13033":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13035":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13036":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13038":{"morph":{"__isSmartRef__":true,"id":12951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13039":{"layouter":{"__isSmartRef__":true,"id":13040},"resizeWidth":true},"13040":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12951},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"13041":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13042":{"x":0,"y":2160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13043":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":13044}},"13044":{"varMapping":{"__isSmartRef__":true,"id":13045},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":13050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13045":{"this":{"__isSmartRef__":true,"id":12951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13046}},"13046":{"$super":{"__isSmartRef__":true,"id":13047}},"13047":{"varMapping":{"__isSmartRef__":true,"id":13048},"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":13049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13048":{"obj":{"__isSmartRef__":true,"id":12951},"name":"getLayoutableSubmorphs"},"13049":{},"13050":{},"13051":{"submorphs":[{"__isSmartRef__":true,"id":13052}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13132},"id":485,"renderContextTable":{"__isSmartRef__":true,"id":13137},"eventHandler":{"__isSmartRef__":true,"id":13138},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13139},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":13141},"owner":{"__isSmartRef__":true,"id":2250},"_Position":{"__isSmartRef__":true,"id":13142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"13052":{"submorphs":[{"__isSmartRef__":true,"id":13053},{"__isSmartRef__":true,"id":13078}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13095},"id":482,"renderContextTable":{"__isSmartRef__":true,"id":13100},"eventHandler":{"__isSmartRef__":true,"id":13101},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13102},"grabbingEnabled":false,"draggingEnabled":false,"data":"http://lively-kernel.org/repository/webwerkstatt","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"],"level":1,"treeView":{"__isSmartRef__":true,"id":2131},"label":"wikiRepoUrl","children":[],"parent":{"__isSmartRef__":true,"id":2134},"expander":{"__isSmartRef__":true,"id":13053},"text":{"__isSmartRef__":true,"id":13078},"owner":{"__isSmartRef__":true,"id":13051},"_Position":{"__isSmartRef__":true,"id":13103},"priorExtent":{"__isSmartRef__":true,"id":13104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"13053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13054},"id":483,"renderContextTable":{"__isSmartRef__":true,"id":13060},"eventHandler":{"__isSmartRef__":true,"id":13061},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13062},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":13052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"13054":{"_Position":{"__isSmartRef__":true,"id":13055},"renderContextTable":{"__isSmartRef__":true,"id":13056},"_Extent":{"__isSmartRef__":true,"id":13057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13058},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2141},"_Fill":{"__isSmartRef__":true,"id":13059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13055":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13057":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13059":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13061":{"morph":{"__isSmartRef__":true,"id":13053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13062":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13063":{"onMouseUp":{"__isSmartRef__":true,"id":13064},"toggle":{"__isSmartRef__":true,"id":13071}},"13064":{"varMapping":{"__isSmartRef__":true,"id":13065},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":13070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13065":{"this":{"__isSmartRef__":true,"id":13053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13066}},"13066":{"$super":{"__isSmartRef__":true,"id":13067}},"13067":{"varMapping":{"__isSmartRef__":true,"id":13068},"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":13069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13068":{"obj":{"__isSmartRef__":true,"id":13053},"name":"onMouseUp"},"13069":{},"13070":{},"13071":{"varMapping":{"__isSmartRef__":true,"id":13072},"source":"function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":13077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13072":{"this":{"__isSmartRef__":true,"id":13053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13073}},"13073":{"$super":{"__isSmartRef__":true,"id":13074}},"13074":{"varMapping":{"__isSmartRef__":true,"id":13075},"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":13076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13075":{"obj":{"__isSmartRef__":true,"id":13053},"name":"toggle"},"13076":{},"13077":{},"13078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13079},"id":484,"renderContextTable":{"__isSmartRef__":true,"id":13083},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":13084},{"__isSmartRef__":true,"id":13086}],"eventHandler":{"__isSmartRef__":true,"id":13088},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13089},"priorExtent":{"__isSmartRef__":true,"id":13090},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":13052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13091},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13079":{"_Position":{"__isSmartRef__":true,"id":13080},"renderContextTable":{"__isSmartRef__":true,"id":13081},"_Extent":{"__isSmartRef__":true,"id":13082},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":778},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13082":{"x":465.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13084":{"style":{"__isSmartRef__":true,"id":13085},"chunkOwner":{"__isSmartRef__":true,"id":13078},"storedString":"wikiRepoUrl","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13086":{"style":{"__isSmartRef__":true,"id":13087},"chunkOwner":{"__isSmartRef__":true,"id":13078},"storedString":": http://lively-kernel.org/repository/webwerkstatt","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13087":{"color":{"__isSmartRef__":true,"id":2171},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13088":{"morph":{"__isSmartRef__":true,"id":13078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13090":{"x":457.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13091":{"layoutText":{"__isSmartRef__":true,"id":13092}},"13092":{"varMapping":{"__isSmartRef__":true,"id":13093},"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":13094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13093":{"this":{"__isSmartRef__":true,"id":13078}},"13094":{},"13095":{"_Position":{"__isSmartRef__":true,"id":13096},"renderContextTable":{"__isSmartRef__":true,"id":13097},"_Extent":{"__isSmartRef__":true,"id":13098},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13101":{"morph":{"__isSmartRef__":true,"id":13052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13102":{"resizeWidth":true},"13103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13105":{"updateExpanderColor":{"__isSmartRef__":true,"id":13106},"onMouseDown":{"__isSmartRef__":true,"id":13109},"onMouseUp":{"__isSmartRef__":true,"id":13116},"isRoot":{"__isSmartRef__":true,"id":13123},"displayValue":{"__isSmartRef__":true,"id":13126},"update":{"__isSmartRef__":true,"id":13129}},"13106":{"varMapping":{"__isSmartRef__":true,"id":13107},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13107":{"this":{"__isSmartRef__":true,"id":13052}},"13108":{},"13109":{"varMapping":{"__isSmartRef__":true,"id":13110},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":13115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13110":{"this":{"__isSmartRef__":true,"id":13052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13111}},"13111":{"$super":{"__isSmartRef__":true,"id":13112}},"13112":{"varMapping":{"__isSmartRef__":true,"id":13113},"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":13114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13113":{"obj":{"__isSmartRef__":true,"id":13052},"name":"onMouseDown"},"13114":{},"13115":{},"13116":{"varMapping":{"__isSmartRef__":true,"id":13117},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":13122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13117":{"this":{"__isSmartRef__":true,"id":13052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13118}},"13118":{"$super":{"__isSmartRef__":true,"id":13119}},"13119":{"varMapping":{"__isSmartRef__":true,"id":13120},"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":13121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13120":{"obj":{"__isSmartRef__":true,"id":13052},"name":"onMouseUp"},"13121":{},"13122":{},"13123":{"varMapping":{"__isSmartRef__":true,"id":13124},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":13125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13124":{"this":{"__isSmartRef__":true,"id":13052}},"13125":{},"13126":{"varMapping":{"__isSmartRef__":true,"id":13127},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":13128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13127":{"this":{"__isSmartRef__":true,"id":13052}},"13128":{},"13129":{"varMapping":{"__isSmartRef__":true,"id":13130},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13130":{"this":{"__isSmartRef__":true,"id":13052}},"13131":{},"13132":{"_Position":{"__isSmartRef__":true,"id":13133},"renderContextTable":{"__isSmartRef__":true,"id":13134},"_Extent":{"__isSmartRef__":true,"id":13135},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13133":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13134":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13135":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13136":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13138":{"morph":{"__isSmartRef__":true,"id":13051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13139":{"layouter":{"__isSmartRef__":true,"id":13140},"resizeWidth":true},"13140":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":13051},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"13141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13142":{"x":0,"y":2180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13143":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":13144}},"13144":{"varMapping":{"__isSmartRef__":true,"id":13145},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":13150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13145":{"this":{"__isSmartRef__":true,"id":13051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13146}},"13146":{"$super":{"__isSmartRef__":true,"id":13147}},"13147":{"varMapping":{"__isSmartRef__":true,"id":13148},"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":13149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13148":{"obj":{"__isSmartRef__":true,"id":13051},"name":"getLayoutableSubmorphs"},"13149":{},"13150":{},"13151":{"_Position":{"__isSmartRef__":true,"id":13152},"renderContextTable":{"__isSmartRef__":true,"id":13153},"_Extent":{"__isSmartRef__":true,"id":13154},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13155},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13152":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13153":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13154":{"x":100,"y":2200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13155":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13156":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13157":{"morph":{"__isSmartRef__":true,"id":2250},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13158":{"layouter":{"__isSmartRef__":true,"id":13159},"resizeWidth":true},"13159":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2250},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"13160":{"x":100,"y":2200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13161":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13162":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":13163},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":13170}},"13163":{"varMapping":{"__isSmartRef__":true,"id":13164},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":13169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13164":{"this":{"__isSmartRef__":true,"id":2250},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13165}},"13165":{"$super":{"__isSmartRef__":true,"id":13166}},"13166":{"varMapping":{"__isSmartRef__":true,"id":13167},"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":13168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13167":{"obj":{"__isSmartRef__":true,"id":2250},"name":"getLayoutableSubmorphs"},"13168":{},"13169":{},"13170":{"varMapping":{"__isSmartRef__":true,"id":13171},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\n }","funcProperties":{"__isSmartRef__":true,"id":13172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13171":{"this":{"__isSmartRef__":true,"id":2250}},"13172":{},"13173":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13174":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":13175}},"13175":{"varMapping":{"__isSmartRef__":true,"id":13176},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":13181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13176":{"this":{"__isSmartRef__":true,"id":2239},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13177}},"13177":{"$super":{"__isSmartRef__":true,"id":13178}},"13178":{"varMapping":{"__isSmartRef__":true,"id":13179},"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":13180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13179":{"obj":{"__isSmartRef__":true,"id":2239},"name":"getLayoutableSubmorphs"},"13180":{},"13181":{},"13182":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13183":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13184":{"updateExpanderColor":{"__isSmartRef__":true,"id":13185},"onMouseDown":{"__isSmartRef__":true,"id":13188},"onMouseUp":{"__isSmartRef__":true,"id":13195},"isRoot":{"__isSmartRef__":true,"id":13202},"displayValue":{"__isSmartRef__":true,"id":13205},"update":{"__isSmartRef__":true,"id":13208}},"13185":{"varMapping":{"__isSmartRef__":true,"id":13186},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":13187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13186":{"this":{"__isSmartRef__":true,"id":2188}},"13187":{},"13188":{"varMapping":{"__isSmartRef__":true,"id":13189},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":13194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13189":{"this":{"__isSmartRef__":true,"id":2188},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13190}},"13190":{"$super":{"__isSmartRef__":true,"id":13191}},"13191":{"varMapping":{"__isSmartRef__":true,"id":13192},"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":13193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13192":{"obj":{"__isSmartRef__":true,"id":2188},"name":"onMouseDown"},"13193":{},"13194":{},"13195":{"varMapping":{"__isSmartRef__":true,"id":13196},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":13201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13196":{"this":{"__isSmartRef__":true,"id":2188},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13197}},"13197":{"$super":{"__isSmartRef__":true,"id":13198}},"13198":{"varMapping":{"__isSmartRef__":true,"id":13199},"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":13200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13199":{"obj":{"__isSmartRef__":true,"id":2188},"name":"onMouseUp"},"13200":{},"13201":{},"13202":{"varMapping":{"__isSmartRef__":true,"id":13203},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":13204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13203":{"this":{"__isSmartRef__":true,"id":2188}},"13204":{},"13205":{"varMapping":{"__isSmartRef__":true,"id":13206},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":13207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13206":{"this":{"__isSmartRef__":true,"id":2188}},"13207":{},"13208":{"varMapping":{"__isSmartRef__":true,"id":13209},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13209":{"this":{"__isSmartRef__":true,"id":2188}},"13210":{},"13211":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13212":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13213":{"updateExpanderColor":{"__isSmartRef__":true,"id":13214},"onMouseDown":{"__isSmartRef__":true,"id":13217},"onMouseUp":{"__isSmartRef__":true,"id":13224},"isRoot":{"__isSmartRef__":true,"id":13231},"displayValue":{"__isSmartRef__":true,"id":13234},"update":{"__isSmartRef__":true,"id":13237}},"13214":{"varMapping":{"__isSmartRef__":true,"id":13215},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":13216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13215":{"this":{"__isSmartRef__":true,"id":2134}},"13216":{},"13217":{"varMapping":{"__isSmartRef__":true,"id":13218},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":13223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13218":{"this":{"__isSmartRef__":true,"id":2134},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13219}},"13219":{"$super":{"__isSmartRef__":true,"id":13220}},"13220":{"varMapping":{"__isSmartRef__":true,"id":13221},"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":13222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13221":{"obj":{"__isSmartRef__":true,"id":2134},"name":"onMouseDown"},"13222":{},"13223":{},"13224":{"varMapping":{"__isSmartRef__":true,"id":13225},"source":"function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\n }","funcProperties":{"__isSmartRef__":true,"id":13230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13225":{"this":{"__isSmartRef__":true,"id":2134},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13226}},"13226":{"$super":{"__isSmartRef__":true,"id":13227}},"13227":{"varMapping":{"__isSmartRef__":true,"id":13228},"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":13229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13228":{"obj":{"__isSmartRef__":true,"id":2134},"name":"onMouseUp"},"13229":{},"13230":{},"13231":{"varMapping":{"__isSmartRef__":true,"id":13232},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":13233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13232":{"this":{"__isSmartRef__":true,"id":2134}},"13233":{},"13234":{"varMapping":{"__isSmartRef__":true,"id":13235},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\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":13236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13235":{"this":{"__isSmartRef__":true,"id":2134}},"13236":{},"13237":{"varMapping":{"__isSmartRef__":true,"id":13238},"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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13238":{"this":{"__isSmartRef__":true,"id":2134}},"13239":{},"13240":{"_Position":{"__isSmartRef__":true,"id":13241},"renderContextTable":{"__isSmartRef__":true,"id":13242},"_Extent":{"__isSmartRef__":true,"id":13243},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13244},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13241":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13242":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13243":{"x":100,"y":2220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13244":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13245":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13246":{"morph":{"__isSmartRef__":true,"id":2133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13247":{"layouter":{"__isSmartRef__":true,"id":13248},"resizeWidth":true},"13248":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2133},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"13249":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13250":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":13251}},"13251":{"varMapping":{"__isSmartRef__":true,"id":13252},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":13257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13252":{"this":{"__isSmartRef__":true,"id":2133},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13253}},"13253":{"$super":{"__isSmartRef__":true,"id":13254}},"13254":{"varMapping":{"__isSmartRef__":true,"id":13255},"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":13256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13255":{"obj":{"__isSmartRef__":true,"id":2133},"name":"getLayoutableSubmorphs"},"13256":{},"13257":{},"13258":{"_Position":{"__isSmartRef__":true,"id":13259},"renderContextTable":{"__isSmartRef__":true,"id":13260},"_Extent":{"__isSmartRef__":true,"id":13261},"_ClipMode":"scroll","_Padding":{"__isSmartRef__":true,"id":13262},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13259":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13260":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13261":{"x":239.96194292390481,"y":279.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13262":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13263":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13264":{"morph":{"__isSmartRef__":true,"id":2132},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13265":{"x":10,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13266":{"resizeWidth":true,"resizeHeight":true},"13267":{"x":259.9619429239048,"y":299.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13268":{"setClipModeHTML":{"__isSmartRef__":true,"id":13269}},"13269":{"varMapping":{"__isSmartRef__":true,"id":13270},"source":"function setClipModeHTML(ctx, modeString) {\n $super(ctx, modeString);\n ctx.morphNode.style['overflow-x'] = 'hidden';\n }","funcProperties":{"__isSmartRef__":true,"id":13275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13270":{"this":{"__isSmartRef__":true,"id":2132},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13271}},"13271":{"$super":{"__isSmartRef__":true,"id":13272}},"13272":{"varMapping":{"__isSmartRef__":true,"id":13273},"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":13274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13273":{"obj":{"__isSmartRef__":true,"id":2132},"name":"setClipModeHTML"},"13274":{},"13275":{},"13276":{"target":{"__isSmartRef__":true,"id":2131},"selector":"update","args":[],"stopped":true,"tickTime":500,"currentTimeout":5854,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"13277":{"position":{"__isSmartRef__":true,"id":13278},"_Extent":{"__isSmartRef__":true,"id":13279},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13280},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":13281},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13282},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13278":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13279":{"x":259.9619429239048,"y":299.99799699599487,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13280":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13282":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13283":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13284":{"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"},"13285":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13286":{"morph":{"__isSmartRef__":true,"id":2131},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13287":{"x":259.9619429239048,"y":299.99799699599487,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13288":{"layouter":{"__isSmartRef__":true,"id":13289},"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false,"adjustForNewBounds":true},"13289":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":2131},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"13290":{"setData":{"__isSmartRef__":true,"id":13291},"renderTree":{"__isSmartRef__":true,"id":13293},"createTreeNode":{"__isSmartRef__":true,"id":13295},"superWrapperForClosure":{"__isSmartRef__":true,"id":13297},"expandNode":{"__isSmartRef__":true,"id":13299},"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":13301},"createTreeWrapper":{"__isSmartRef__":true,"id":13303},"onrestore":{"__isSmartRef__":true,"id":13305},"reset":{"__isSmartRef__":true,"id":13307},"createTreeNodeMorph":{"__isSmartRef__":true,"id":13309},"createExpanderMorph":{"__isSmartRef__":true,"id":13311},"createTextMorph":{"__isSmartRef__":true,"id":13313},"createExpanderButton":{"__isSmartRef__":true,"id":13315},"createPropertyText":{"__isSmartRef__":true,"id":13317},"defaults":{"__isSmartRef__":true,"id":13319},"createScrollClip":{"__isSmartRef__":true,"id":13321},"resetDefaults":{"__isSmartRef__":true,"id":13323},"testMutabilityFor":{"__isSmartRef__":true,"id":13325},"typeOf":{"__isSmartRef__":true,"id":13327},"testMutabilityOf":{"__isSmartRef__":true,"id":13329},"classNameOf":{"__isSmartRef__":true,"id":13331},"displayNameOf":{"__isSmartRef__":true,"id":13333},"getDisplayNameOf":{"__isSmartRef__":true,"id":13335},"getClassNameOf":{"__isSmartRef__":true,"id":13337},"getTypeOf":{"__isSmartRef__":true,"id":13339},"updateExpanderColor":{"__isSmartRef__":true,"id":13341},"addTreeNodeScriptsTo":{"__isSmartRef__":true,"id":13343},"addScriptsToTreeNode":{"__isSmartRef__":true,"id":13345},"addScriptsToExpander":{"__isSmartRef__":true,"id":13347},"getDisplayStringOf":{"__isSmartRef__":true,"id":13349},"containsValues":{"__isSmartRef__":true,"id":13351},"getTypeStringOf":{"__isSmartRef__":true,"id":13353},"getDisplayStringFor":{"__isSmartRef__":true,"id":13355},"getTypeStringFor":{"__isSmartRef__":true,"id":13357},"cleanPreviousTarget":{"__isSmartRef__":true,"id":13359},"update":{"__isSmartRef__":true,"id":13361},"addScriptsToText":{"__isSmartRef__":true,"id":13363}},"13291":{"time":{"__isSmartRef__":true,"id":13292},"user":"lauritz"},"13292":{"isSerializedDate":true,"string":"Fri Sep 16 2011 11:29:46 GMT-0700 (PDT)"},"13293":{"time":{"__isSmartRef__":true,"id":13294},"user":"lauritz"},"13294":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:42:55 GMT-0700 (PDT)"},"13295":{"time":{"__isSmartRef__":true,"id":13296},"user":"lauritz"},"13296":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:43:34 GMT-0700 (PDT)"},"13297":{"time":{"__isSmartRef__":true,"id":13298},"user":"markoroeder"},"13298":{"isSerializedDate":true,"string":"Wed Aug 17 2011 09:51:09 GMT-0700 (PDT)"},"13299":{"time":{"__isSmartRef__":true,"id":13300},"user":"markoroeder"},"13300":{"isSerializedDate":true,"string":"Wed Aug 17 2011 10:01:10 GMT-0700 (PDT)"},"13301":{"time":{"__isSmartRef__":true,"id":13302},"user":"markoroeder"},"13302":{"isSerializedDate":true,"string":"Wed Aug 17 2011 17:29:30 GMT-0700 (PDT)"},"13303":{"time":{"__isSmartRef__":true,"id":13304},"user":"lauritz"},"13304":{"isSerializedDate":true,"string":"Tue Sep 20 2011 08:05:52 GMT-0700 (PDT)"},"13305":{"time":{"__isSmartRef__":true,"id":13306},"user":"markoroeder"},"13306":{"isSerializedDate":true,"string":"Tue Aug 23 2011 13:08:18 GMT-0700 (PDT)"},"13307":{"time":{"__isSmartRef__":true,"id":13308},"user":"lauritz"},"13308":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:41:57 GMT-0700 (PDT)"},"13309":{"time":{"__isSmartRef__":true,"id":13310},"user":"lauritz"},"13310":{"isSerializedDate":true,"string":"Tue Oct 25 2011 10:24:35 GMT-0700 (PDT)"},"13311":{"time":{"__isSmartRef__":true,"id":13312},"user":"lauritz"},"13312":{"isSerializedDate":true,"string":"Mon Sep 19 2011 10:12:12 GMT-0700 (PDT)"},"13313":{"time":{"__isSmartRef__":true,"id":13314},"user":"lauritz"},"13314":{"isSerializedDate":true,"string":"Mon Sep 19 2011 10:29:34 GMT-0700 (PDT)"},"13315":{"time":{"__isSmartRef__":true,"id":13316},"user":"lauritz"},"13316":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:32:58 GMT-0700 (PDT)"},"13317":{"time":{"__isSmartRef__":true,"id":13318},"user":"lauritz"},"13318":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:18:07 GMT-0700 (PDT)"},"13319":{"time":{"__isSmartRef__":true,"id":13320},"user":"lauritz"},"13320":{"isSerializedDate":true,"string":"Tue Sep 20 2011 07:45:27 GMT-0700 (PDT)"},"13321":{"time":{"__isSmartRef__":true,"id":13322},"user":"lauritz"},"13322":{"isSerializedDate":true,"string":"Mon Sep 19 2011 10:54:00 GMT-0700 (PDT)"},"13323":{"time":{"__isSmartRef__":true,"id":13324},"user":"lauritz"},"13324":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:38:04 GMT-0700 (PDT)"},"13325":{"time":{"__isSmartRef__":true,"id":13326},"user":"lauritz"},"13326":{"isSerializedDate":true,"string":"Tue Sep 20 2011 08:50:43 GMT-0700 (PDT)"},"13327":{"time":{"__isSmartRef__":true,"id":13328},"user":"lauritz"},"13328":{"isSerializedDate":true,"string":"Tue Sep 20 2011 08:52:20 GMT-0700 (PDT)"},"13329":{"time":{"__isSmartRef__":true,"id":13330},"user":"lauritz"},"13330":{"isSerializedDate":true,"string":"Tue Sep 20 2011 14:41:43 GMT-0700 (PDT)"},"13331":{"time":{"__isSmartRef__":true,"id":13332},"user":"lauritz"},"13332":{"isSerializedDate":true,"string":"Tue Sep 20 2011 09:43:22 GMT-0700 (PDT)"},"13333":{"time":{"__isSmartRef__":true,"id":13334},"user":"lauritz"},"13334":{"isSerializedDate":true,"string":"Tue Sep 20 2011 10:18:15 GMT-0700 (PDT)"},"13335":{"time":{"__isSmartRef__":true,"id":13336},"user":"lauritz"},"13336":{"isSerializedDate":true,"string":"Tue Sep 20 2011 10:20:46 GMT-0700 (PDT)"},"13337":{"time":{"__isSmartRef__":true,"id":13338},"user":"lauritz"},"13338":{"isSerializedDate":true,"string":"Tue Oct 25 2011 13:35:56 GMT-0700 (PDT)"},"13339":{"time":{"__isSmartRef__":true,"id":13340},"user":"lauritz"},"13340":{"isSerializedDate":true,"string":"Tue Sep 20 2011 10:18:37 GMT-0700 (PDT)"},"13341":{"time":{"__isSmartRef__":true,"id":13342},"user":"lauritz"},"13342":{"isSerializedDate":true,"string":"Tue Sep 20 2011 11:09:41 GMT-0700 (PDT)"},"13343":{"time":{"__isSmartRef__":true,"id":13344},"user":"lauritz"},"13344":{"isSerializedDate":true,"string":"Tue Sep 20 2011 11:11:38 GMT-0700 (PDT)"},"13345":{"time":{"__isSmartRef__":true,"id":13346},"user":"lauritz"},"13346":{"isSerializedDate":true,"string":"Mon Sep 26 2011 16:27:28 GMT-0700 (PDT)"},"13347":{"time":{"__isSmartRef__":true,"id":13348},"user":"lauritz"},"13348":{"isSerializedDate":true,"string":"Mon Sep 26 2011 16:21:55 GMT-0700 (PDT)"},"13349":{"time":{"__isSmartRef__":true,"id":13350},"user":"lauritz"},"13350":{"isSerializedDate":true,"string":"Tue Sep 20 2011 14:36:23 GMT-0700 (PDT)"},"13351":{"time":{"__isSmartRef__":true,"id":13352},"user":"lauritz"},"13352":{"isSerializedDate":true,"string":"Tue Sep 20 2011 13:32:20 GMT-0700 (PDT)"},"13353":{"time":{"__isSmartRef__":true,"id":13354},"user":"lauritz"},"13354":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:31:18 GMT-0700 (PDT)"},"13355":{"time":{"__isSmartRef__":true,"id":13356},"user":"lauritz"},"13356":{"isSerializedDate":true,"string":"Mon Sep 26 2011 10:07:44 GMT-0700 (PDT)"},"13357":{"time":{"__isSmartRef__":true,"id":13358},"user":"lauritz"},"13358":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:32:50 GMT-0700 (PDT)"},"13359":{"time":{"__isSmartRef__":true,"id":13360},"user":"lauritz"},"13360":{"isSerializedDate":true,"string":"Mon Sep 26 2011 10:07:44 GMT-0700 (PDT)"},"13361":{"time":{"__isSmartRef__":true,"id":13362},"user":"lauritz"},"13362":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:42:27 GMT-0700 (PDT)"},"13363":{"time":{"__isSmartRef__":true,"id":13364},"user":"lauritz"},"13364":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:16:48 GMT-0700 (PDT)"},"13365":{"x":164.35052570087606,"y":-15.96995493992489,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13366":{"border":{"__isSmartRef__":true,"id":2141},"contractedExpander":{"__isSmartRef__":true,"id":13367},"expandedExpander":{"__isSmartRef__":true,"id":780},"focusedText":{"__isSmartRef__":true,"id":2165},"emphasizedText":{"__isSmartRef__":true,"id":2171}},"13367":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13368":{"size":10},"13369":{"wrapperExtent":{"__isSmartRef__":true,"id":13370},"expanderExtent":{"__isSmartRef__":true,"id":13371},"expanderOffset":{"__isSmartRef__":true,"id":13372},"textOffset":{"__isSmartRef__":true,"id":13373},"levelIndent":10,"maxTextWidth":500},"13370":{"x":0,"y":0,"width":100,"height":18,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13371":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13372":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13373":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13374":{"renderTree":{"__isSmartRef__":true,"id":13375},"createTreeNode":{"__isSmartRef__":true,"id":13378},"createTreeWrapper":{"__isSmartRef__":true,"id":13381},"reset":{"__isSmartRef__":true,"id":13384},"createTreeNodeMorph":{"__isSmartRef__":true,"id":13387},"createExpanderButton":{"__isSmartRef__":true,"id":13390},"createPropertyText":{"__isSmartRef__":true,"id":13393},"createScrollClip":{"__isSmartRef__":true,"id":13396},"resetDefaults":{"__isSmartRef__":true,"id":13399},"testMutabilityOf":{"__isSmartRef__":true,"id":13402},"getClassNameOf":{"__isSmartRef__":true,"id":13405},"getTypeOf":{"__isSmartRef__":true,"id":13408},"addScriptsToTreeNode":{"__isSmartRef__":true,"id":13411},"addScriptsToExpander":{"__isSmartRef__":true,"id":13414},"containsValues":{"__isSmartRef__":true,"id":13417},"getDisplayStringFor":{"__isSmartRef__":true,"id":13420},"getTypeStringFor":{"__isSmartRef__":true,"id":13423},"update":{"__isSmartRef__":true,"id":13426},"addScriptsToText":{"__isSmartRef__":true,"id":13429}},"13375":{"varMapping":{"__isSmartRef__":true,"id":13376},"source":"function renderTree(data) {\n\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":13377},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13376":{"this":{"__isSmartRef__":true,"id":2131}},"13377":{},"13378":{"varMapping":{"__isSmartRef__":true,"id":13379},"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":13380},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13379":{"this":{"__isSmartRef__":true,"id":2131}},"13380":{},"13381":{"varMapping":{"__isSmartRef__":true,"id":13382},"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":13383},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13382":{"this":{"__isSmartRef__":true,"id":2131}},"13383":{},"13384":{"varMapping":{"__isSmartRef__":true,"id":13385},"source":"function reset() {\n this.removeAllMorphs();\n this.resetDefaults();\n this.rootNode = null; \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":13386},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13385":{"this":{"__isSmartRef__":true,"id":2131}},"13386":{},"13387":{"varMapping":{"__isSmartRef__":true,"id":13388},"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":13389},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13388":{"this":{"__isSmartRef__":true,"id":2131}},"13389":{},"13390":{"varMapping":{"__isSmartRef__":true,"id":13391},"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":13392},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13391":{"this":{"__isSmartRef__":true,"id":2131}},"13392":{},"13393":{"varMapping":{"__isSmartRef__":true,"id":13394},"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":13395},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13394":{"this":{"__isSmartRef__":true,"id":2131}},"13395":{},"13396":{"varMapping":{"__isSmartRef__":true,"id":13397},"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":13398},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13397":{"this":{"__isSmartRef__":true,"id":2131}},"13398":{},"13399":{"varMapping":{"__isSmartRef__":true,"id":13400},"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":13401},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13400":{"this":{"__isSmartRef__":true,"id":2131}},"13401":{},"13402":{"varMapping":{"__isSmartRef__":true,"id":13403},"source":"function testMutabilityOf(value) {\n var type = this.getTypeOf(value);\n return (type === \"array\" || type === \"object\");\n}","funcProperties":{"__isSmartRef__":true,"id":13404},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13403":{"this":{"__isSmartRef__":true,"id":2131}},"13404":{},"13405":{"varMapping":{"__isSmartRef__":true,"id":13406},"source":"function getClassNameOf(object) {\n var constructor = Class.getConstructor(object);\n if (constructor && constructor.displayName) {\n var fullClassName = constructor.displayName;\n return fullClassName.split(\".\").pop(); \n } else {\n return this.getTypeOf(object);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13407},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13406":{"this":{"__isSmartRef__":true,"id":2131}},"13407":{},"13408":{"varMapping":{"__isSmartRef__":true,"id":13409},"source":"function getTypeOf(value) {\n // Caution: Only works correctly for arrays if created in same context, e.g. frame, because of instanceof\n var type = typeof value;\n if (type === \"object\") {\n if (value) {\n if (value instanceof Array) {\n return \"array\";\n } \n } else {\n return null;\n }\n } \n return type;\n}","funcProperties":{"__isSmartRef__":true,"id":13410},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13409":{"this":{"__isSmartRef__":true,"id":2131}},"13410":{},"13411":{"varMapping":{"__isSmartRef__":true,"id":13412},"source":"function addScriptsToTreeNode(treeNode) {\n\n treeNode.addScript(function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !this.treeView.containsValues(this.data)) {\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 onMouseUp(evt) {\n if ($super(evt)) return true;\n this.expander.toggle();\n return false;\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 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 // 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 (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":13413},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13412":{"this":{"__isSmartRef__":true,"id":2131}},"13413":{},"13414":{"varMapping":{"__isSmartRef__":true,"id":13415},"source":"function addScriptsToExpander(expander) {\n\n expander.addScript(function onMouseUp(evt) {\n if ($super(evt)) return true;\n this.toggle();\n return false;\n });\n\n expander.addScript(function toggle() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && treeNode.treeView.containsValues(treeNode.data)) {\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 (treeNode.treeView.testMutabilityOf(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n Properties.own(treeNode.data).sort().each(function(prop) {\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 });\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":13416},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13415":{"this":{"__isSmartRef__":true,"id":2131}},"13416":{},"13417":{"varMapping":{"__isSmartRef__":true,"id":13418},"source":"function containsValues(value) {\n return (this.testMutabilityOf(value) && Properties.own(value).length > 0);\n}","funcProperties":{"__isSmartRef__":true,"id":13419},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13418":{"this":{"__isSmartRef__":true,"id":2131}},"13419":{},"13420":{"varMapping":{"__isSmartRef__":true,"id":13421},"source":"function getDisplayStringFor(treeNode) {\n return treeNode.label + \": \" + (this.testMutabilityOf(treeNode.data) ? this.getTypeStringFor(treeNode.data) : treeNode.data)\n}","funcProperties":{"__isSmartRef__":true,"id":13422},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13421":{"this":{"__isSmartRef__":true,"id":2131}},"13422":{},"13423":{"varMapping":{"__isSmartRef__":true,"id":13424},"source":"function getTypeStringFor(object) {\n var name; \n if (object.getName) name = object.getName();\n if (!name) {\n name = this.getClassNameOf(object);\n var displayTypeAndEmptiness = function (type, firstBracket, secondBracket) {\n if (name === type) {\n name = \"\";\n name += firstBracket; \n if (Properties.own(object).length > 0) name += \"...\";\n name += secondBracket;\n }\n }\n displayTypeAndEmptiness(\"object\", \"{\", \"}\");\n displayTypeAndEmptiness(\"array\", \"[\", \"]\");\n }\n return name;\n}","funcProperties":{"__isSmartRef__":true,"id":13425},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13424":{"this":{"__isSmartRef__":true,"id":2131}},"13425":{},"13426":{"varMapping":{"__isSmartRef__":true,"id":13427},"source":"function update() {\n this.rootNode.update();\n}","funcProperties":{"__isSmartRef__":true,"id":13428},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13427":{"this":{"__isSmartRef__":true,"id":2131}},"13428":{},"13429":{"varMapping":{"__isSmartRef__":true,"id":13430},"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":13431},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13430":{"this":{"__isSmartRef__":true,"id":2131}},"13431":{},"13432":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13433},"id":39,"renderContextTable":{"__isSmartRef__":true,"id":13440},"textChunks":[{"__isSmartRef__":true,"id":13441}],"eventHandler":{"__isSmartRef__":true,"id":13443},"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":13444},"priorExtent":{"__isSmartRef__":true,"id":13445},"_MaxTextWidth":249.96194292390481,"_MinTextWidth":249.96194292390481,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":13446},"doitContext":{"__isSmartRef__":true,"id":2187},"previousSelection":[14,14],"priorSelectionRange":[17,14],"charsReplaced":"1,2","lastFindLoc":20,"__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"isBeingDragged":false,"showsHalos":false,"name":"Workspace","owner":{"__isSmartRef__":true,"id":2130},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":13447},"isCopyMorphRef":true,"morphRefId":1,"scriptAnnotations":{"__isSmartRef__":true,"id":13448},"lastDragTime":1317079672221,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13451},"__LivelyClassName__":"lively.morphic.Text"},"13433":{"_Position":{"__isSmartRef__":true,"id":13434},"renderContextTable":{"__isSmartRef__":true,"id":13435},"_Extent":{"__isSmartRef__":true,"id":13436},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":13437},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13438},"_Fill":{"__isSmartRef__":true,"id":13439},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13434":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13435":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13436":{"x":259.9619429239048,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13437":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13438":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13439":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13440":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13441":{"style":{"__isSmartRef__":true,"id":13442},"chunkOwner":{"__isSmartRef__":true,"id":13432},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13442":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13443":{"morph":{"__isSmartRef__":true,"id":13432},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13444":{"x":10,"y":324.99799699599487,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13445":{"x":259.9619429239048,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13446":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true,"adjustForNewBounds":true},"13447":{"x":164.35052570087606,"y":-17.252879506132672,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13448":{"reset":{"__isSmartRef__":true,"id":13449}},"13449":{"time":{"__isSmartRef__":true,"id":13450},"user":"lauritz"},"13450":{"isSerializedDate":true,"string":"Tue Sep 20 2011 16:26:58 GMT-0700 (PDT)"},"13451":{"reset":{"__isSmartRef__":true,"id":13452}},"13452":{"varMapping":{"__isSmartRef__":true,"id":13453},"source":"function reset() {\n this.doitContext = null;\n this.setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":13454},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13453":{"this":{"__isSmartRef__":true,"id":13432}},"13454":{},"13455":{"position":{"__isSmartRef__":true,"id":13456},"_Extent":{"__isSmartRef__":true,"id":13457},"_BorderWidth":2.6340000000000003,"_BorderColor":{"__isSmartRef__":true,"id":13458},"_Fill":{"__isSmartRef__":true,"id":13459},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":13460},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13461},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13456":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13457":{"x":279.9619429239048,"y":415.9999999999999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13458":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13459":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13460":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13461":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13462":{"x":1.0000000000001137,"y":22.00000000000128,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13463":{"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":13464}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"13464":{"date":{"__isSmartRef__":true,"id":13465},"author":"lauritz","message":"Disabled grabbing and dragging on other submorphs as well..."},"13465":{"isSerializedDate":true,"string":"Tue Oct 25 2011 11:21:08 GMT-0700 (PDT)"},"13466":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13467":{"morph":{"__isSmartRef__":true,"id":2130},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13468":{"x":280.9619429239048,"y":415.9999999999999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13469":{"x":176.3545317088861,"y":19.080120160200238,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13470":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true,"layouter":{"__isSmartRef__":true,"id":13471}},"13471":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":2130},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"13472":{"reset":{"__isSmartRef__":true,"id":13473},"moveFocusTo":{"__isSmartRef__":true,"id":13475},"explore":{"__isSmartRef__":true,"id":13477}},"13473":{"time":{"__isSmartRef__":true,"id":13474},"user":"lauritz"},"13474":{"isSerializedDate":true,"string":"Tue Sep 20 2011 16:48:08 GMT-0700 (PDT)"},"13475":{"time":{"__isSmartRef__":true,"id":13476},"user":"lauritz"},"13476":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:41:09 GMT-0700 (PDT)"},"13477":{"time":{"__isSmartRef__":true,"id":13478},"user":"lauritz"},"13478":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:48:20 GMT-0700 (PDT)"},"13479":{"reset":{"__isSmartRef__":true,"id":13480},"moveFocusTo":{"__isSmartRef__":true,"id":13483},"explore":{"__isSmartRef__":true,"id":13486}},"13480":{"varMapping":{"__isSmartRef__":true,"id":13481},"source":"function reset() {\n this.workspace.reset();\n this.treeView.reset();\n this.focusedNode = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13482},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13481":{"this":{"__isSmartRef__":true,"id":2130}},"13482":{},"13483":{"varMapping":{"__isSmartRef__":true,"id":13484},"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 \n this.focusedNode.text.setFill(this.focusedNode.treeView.colors.focusedText);\n}","funcProperties":{"__isSmartRef__":true,"id":13485},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13484":{"this":{"__isSmartRef__":true,"id":2130}},"13485":{},"13486":{"varMapping":{"__isSmartRef__":true,"id":13487},"source":"function explore(object) {\n this.reset();\n this.treeView.renderTree(object);\n this.moveFocusTo(this.treeView.rootNode);\n}","funcProperties":{"__isSmartRef__":true,"id":13488},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13487":{"this":{"__isSmartRef__":true,"id":2130}},"13488":{},"13489":{"renderContextTable":{"__isSmartRef__":true,"id":13490},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13491},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":13492},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13490":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13491":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13492":{"x":281.49672894514134,"y":437.92138184230294,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13493":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13494":{"morph":{"__isSmartRef__":true,"id":1946},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13495":{"adjustForNewBounds":true},"13496":{"x":664.2256745014358,"y":251.49999999999943,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13497":{"x":281.49672894514134,"y":437.92138184230294,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13498":{"x":0,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13499":{"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"A Smalltalk-like Explorer. Displays object properties in a tree and provides a small workspace. The workspace's context is set to the last clicked tree node.","migrationLevel":4,"partName":"Explorer","changes":[{"__isSmartRef__":true,"id":13500},{"__isSmartRef__":true,"id":13502},{"__isSmartRef__":true,"id":13504},{"__isSmartRef__":true,"id":13506}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"13500":{"date":{"__isSmartRef__":true,"id":13501},"author":"lauritz","message":"Disabled grabbing and dragging on other morphs as well."},"13501":{"isSerializedDate":true,"string":"Tue Oct 25 2011 11:23:10 GMT-0700 (PDT)"},"13502":{"date":{"__isSmartRef__":true,"id":13503},"author":"lauritz","message":"Disabled dragging and grabbing on tree nodes. Those should only be clickable."},"13503":{"isSerializedDate":true,"string":"Tue Oct 25 2011 10:25:14 GMT-0700 (PDT)"},"13504":{"date":{"__isSmartRef__":true,"id":13505},"author":"lauritz","message":"Fixed a bug by adding a condition to getClassNameOf. In case an object has no constructor."},"13505":{"isSerializedDate":true,"string":"Tue Oct 25 2011 13:37:11 GMT-0700 (PDT)"},"13506":{"date":{"__isSmartRef__":true,"id":13507},"author":"jenslincke","message":"reset scales","id":"5E64592A-C360-44DD-BDAE-AD956FBA7675"},"13507":{"isSerializedDate":true,"string":"Fri Oct 28 2011 07:11:21 GMT-0700 (PDT)"},"13508":{"x":493,"y":489,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13509":{"explore":{"__isSmartRef__":true,"id":13510},"reset":{"__isSmartRef__":true,"id":13512}},"13510":{"time":{"__isSmartRef__":true,"id":13511},"user":"lauritz"},"13511":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:25:04 GMT-0700 (PDT)"},"13512":{"time":{"__isSmartRef__":true,"id":13513},"user":"lauritz"},"13513":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:25:04 GMT-0700 (PDT)"},"13514":{"explore":{"__isSmartRef__":true,"id":13515},"reset":{"__isSmartRef__":true,"id":13518}},"13515":{"varMapping":{"__isSmartRef__":true,"id":13516},"source":"function explore(object) {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":13517},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13516":{"this":{"__isSmartRef__":true,"id":1946}},"13517":{},"13518":{"varMapping":{"__isSmartRef__":true,"id":13519},"source":"function reset() {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":13520},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13519":{"this":{"__isSmartRef__":true,"id":1946}},"13520":{},"13521":{"partsSpaceName":"PartsBin/Tools","name":"MethodFinder","part":{"__isSmartRef__":true,"id":1611},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"json":"{\"id\":0,\"registry\":{\"0\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":1},{\"__isSmartRef__\":true,\"id\":148},{\"__isSmartRef__\":true,\"id\":183}],\"scripts\":[],\"id\":1431,\"shape\":{\"__isSmartRef__\":true,\"id\":402},\"droppingEnabled\":true,\"halosEnabled\":true,\"__layered_draggingEnabled__\":true,\"layout\":{\"__isSmartRef__\":true,\"id\":406},\"_Position\":{\"__isSmartRef__\":true,\"id\":407},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":408},\"targetMorph\":{\"__isSmartRef__\":true,\"id\":183},\"titleBar\":{\"__isSmartRef__\":true,\"id\":1},\"contentOffset\":{\"__isSmartRef__\":true,\"id\":409},\"collapsedTransform\":null,\"collapsedExtent\":null,\"expandedTransform\":null,\"expandedExtent\":null,\"ignoreEventsOnExpand\":false,\"highlighted\":true,\"prevDragPos\":{\"__isSmartRef__\":true,\"id\":410},\"showsHalos\":false,\"name\":\"MethodFinder\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":411},\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":412},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":413},\"isBeingDragged\":false,\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Rotation\":0,\"_Scale\":1,\"prevScroll\":[0,0],\"__LivelyClassName__\":\"lively.morphic.Window\",\"withoutLayers\":[\"Global.lively.morphic.GrabbingLayer\"]},\"1\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":2},{\"__isSmartRef__\":true,\"id\":16},{\"__isSmartRef__\":true,\"id\":62},{\"__isSmartRef__\":true,\"id\":96}],\"scripts\":[],\"id\":1441,\"shape\":{\"__isSmartRef__\":true,\"id\":131},\"droppingEnabled\":true,\"halosEnabled\":true,\"layout\":{\"__isSmartRef__\":true,\"id\":143},\"_Position\":{\"__isSmartRef__\":true,\"id\":144},\"eventsAreIgnored\":true,\"windowMorph\":{\"__isSmartRef__\":true,\"id\":0},\"label\":{\"__isSmartRef__\":true,\"id\":2},\"closeButton\":{\"__isSmartRef__\":true,\"id\":16},\"menuButton\":{\"__isSmartRef__\":true,\"id\":62},\"collapseButton\":{\"__isSmartRef__\":true,\"id\":96},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":145},\"owner\":{\"__isSmartRef__\":true,\"id\":0},\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":146},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":147},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"__LivelyClassName__\":\"lively.morphic.TitleBar\"},\"2\":{\"submorphs\":[],\"scripts\":[],\"id\":1442,\"shape\":{\"__isSmartRef__\":true,\"id\":3},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Padding\":{\"__isSmartRef__\":true,\"id\":9},\"_ClipMode\":\"hidden\",\"fixedWidth\":false,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"_Position\":{\"__isSmartRef__\":true,\"id\":10},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":11},\"_MaxTextWidth\":null,\"_MaxTextHeight\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":12}],\"evalEnabled\":false,\"isLabel\":true,\"eventsAreIgnored\":true,\"_FontSize\":10,\"owner\":{\"__isSmartRef__\":true,\"id\":1},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":14},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":15},\"_HandStyle\":\"default\",\"_PointerEvents\":\"none\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_MinTextWidth\":null,\"_MinTextHeight\":null,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"3\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":4},\"_Extent\":{\"__isSmartRef__\":true,\"id\":5},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":6},\"_Fill\":null,\"_BorderRadius\":0,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":7},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":8},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"4\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"5\":{\"x\":837.4170420843768,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"6\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"7\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"8\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"9\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"10\":{\"x\":20,\"y\":3,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"11\":{\"x\":837.4170420843768,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"12\":{\"style\":{\"__isSmartRef__\":true,\"id\":13},\"morph\":{\"__isSmartRef__\":true,\"id\":2},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":2},\"storedString\":\"MethodFinder\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"13\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"14\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"15\":{\"morph\":{\"__isSmartRef__\":true,\"id\":2},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"16\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":17}],\"scripts\":[],\"id\":1443,\"shape\":{\"__isSmartRef__\":true,\"id\":30},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":46},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":47},\"value\":false,\"toggle\":false,\"isActive\":true,\"normalFill\":{\"__isSmartRef__\":true,\"id\":34},\"lighterFill\":{\"__isSmartRef__\":true,\"id\":48},\"label\":{\"__isSmartRef__\":true,\"id\":17},\"owner\":{\"__isSmartRef__\":true,\"id\":1},\"layout\":{\"__isSmartRef__\":true,\"id\":57},\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":58},{\"__isSmartRef__\":true,\"id\":59}],\"doNotSerialize\":[\"$$getHelpText\",\"$$fire\"],\"doNotCopyProperties\":[\"$$getHelpText\",\"$$fire\"],\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":60},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":61},\"__LivelyClassName__\":\"lively.morphic.WindowControl\"},\"17\":{\"submorphs\":[],\"scripts\":[],\"id\":1444,\"shape\":{\"__isSmartRef__\":true,\"id\":18},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Padding\":{\"__isSmartRef__\":true,\"id\":23},\"_ClipMode\":\"hidden\",\"fixedWidth\":false,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"_Position\":{\"__isSmartRef__\":true,\"id\":24},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":25},\"_MaxTextWidth\":null,\"_MaxTextHeight\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":26}],\"evalEnabled\":false,\"owner\":{\"__isSmartRef__\":true,\"id\":16},\"isLabel\":true,\"eventsAreIgnored\":true,\"_FontSize\":8,\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":28},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":29},\"_HandStyle\":\"default\",\"_PointerEvents\":\"none\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_MinTextWidth\":null,\"_MinTextHeight\":null,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"18\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":19},\"_Extent\":{\"__isSmartRef__\":true,\"id\":20},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":6},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":21},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":22},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"19\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"20\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"21\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"22\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"23\":{\"x\":5,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"24\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"25\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"26\":{\"style\":{\"__isSmartRef__\":true,\"id\":27},\"morph\":{\"__isSmartRef__\":true,\"id\":17},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":17},\"storedString\":\"X\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"27\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"28\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"29\":{\"morph\":{\"__isSmartRef__\":true,\"id\":17},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"30\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":31},\"_Extent\":{\"__isSmartRef__\":true,\"id\":32},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":33},\"_Fill\":{\"__isSmartRef__\":true,\"id\":34},\"_StrokeOpacity\":0,\"_BorderRadius\":5,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":44},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":45},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"31\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"32\":{\"x\":17,\"y\":17,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"33\":{\"r\":0.8392156862745098,\"g\":0.8392156862745098,\"b\":0.8392156862745098,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"34\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":35},{\"__isSmartRef__\":true,\"id\":37},{\"__isSmartRef__\":true,\"id\":39},{\"__isSmartRef__\":true,\"id\":41}],\"vector\":{\"__isSmartRef__\":true,\"id\":43},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"35\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":36}},\"36\":{\"r\":0.9600000000000001,\"g\":0.9600000000000001,\"b\":0.9600000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"37\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":38}},\"38\":{\"r\":0.8200000000000001,\"g\":0.8200000000000001,\"b\":0.8200000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"39\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":40}},\"40\":{\"r\":0.8200000000000001,\"g\":0.8200000000000001,\"b\":0.8200000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"41\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":42}},\"42\":{\"r\":0.94,\"g\":0.94,\"b\":0.94,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"43\":{\"x\":0,\"y\":0,\"width\":0,\"height\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"44\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"45\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"46\":{\"x\":876.4170420843768,\"y\":3,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"47\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"48\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":49},{\"__isSmartRef__\":true,\"id\":51},{\"__isSmartRef__\":true,\"id\":53},{\"__isSmartRef__\":true,\"id\":55}],\"vector\":{\"__isSmartRef__\":true,\"id\":43},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"49\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":50}},\"50\":{\"r\":0.98,\"g\":0.98,\"b\":0.98,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"51\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":52}},\"52\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"53\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":54}},\"54\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"55\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":56}},\"56\":{\"r\":0.97,\"g\":0.97,\"b\":0.97,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"57\":{\"moveHorizontal\":true},\"58\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":16},\"sourceAttrName\":\"getHelpText\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"getCloseHelp\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"59\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":16},\"sourceAttrName\":\"fire\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"initiateShutdown\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"60\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"61\":{\"morph\":{\"__isSmartRef__\":true,\"id\":16},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"62\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":63}],\"scripts\":[],\"id\":1445,\"shape\":{\"__isSmartRef__\":true,\"id\":76},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":81},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":82},\"value\":false,\"toggle\":false,\"isActive\":true,\"normalFill\":{\"__isSmartRef__\":true,\"id\":34},\"lighterFill\":{\"__isSmartRef__\":true,\"id\":83},\"label\":{\"__isSmartRef__\":true,\"id\":63},\"owner\":{\"__isSmartRef__\":true,\"id\":1},\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":92},{\"__isSmartRef__\":true,\"id\":93}],\"doNotSerialize\":[\"$$getHelpText\",\"$$fire\"],\"doNotCopyProperties\":[\"$$getHelpText\",\"$$fire\"],\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":94},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":95},\"__LivelyClassName__\":\"lively.morphic.WindowControl\"},\"63\":{\"submorphs\":[],\"scripts\":[],\"id\":1446,\"shape\":{\"__isSmartRef__\":true,\"id\":64},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Padding\":{\"__isSmartRef__\":true,\"id\":69},\"_ClipMode\":\"hidden\",\"fixedWidth\":false,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"_Position\":{\"__isSmartRef__\":true,\"id\":70},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":71},\"_MaxTextWidth\":null,\"_MaxTextHeight\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":72}],\"evalEnabled\":false,\"owner\":{\"__isSmartRef__\":true,\"id\":62},\"isLabel\":true,\"eventsAreIgnored\":true,\"_FontSize\":8,\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":74},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":75},\"_HandStyle\":\"default\",\"_PointerEvents\":\"none\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_MinTextWidth\":null,\"_MinTextHeight\":null,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"64\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":65},\"_Extent\":{\"__isSmartRef__\":true,\"id\":66},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":6},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":67},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":68},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"65\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"66\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"67\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"68\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"69\":{\"x\":5,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"70\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"71\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"72\":{\"style\":{\"__isSmartRef__\":true,\"id\":73},\"morph\":{\"__isSmartRef__\":true,\"id\":63},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":63},\"storedString\":\"M\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"73\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"74\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"75\":{\"morph\":{\"__isSmartRef__\":true,\"id\":63},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"76\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":77},\"_Extent\":{\"__isSmartRef__\":true,\"id\":78},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":33},\"_Fill\":{\"__isSmartRef__\":true,\"id\":34},\"_StrokeOpacity\":0,\"_BorderRadius\":5,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":79},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":80},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"77\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"78\":{\"x\":17,\"y\":17,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"79\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"80\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"81\":{\"x\":3,\"y\":3,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"82\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"83\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":84},{\"__isSmartRef__\":true,\"id\":86},{\"__isSmartRef__\":true,\"id\":88},{\"__isSmartRef__\":true,\"id\":90}],\"vector\":{\"__isSmartRef__\":true,\"id\":43},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"84\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":85}},\"85\":{\"r\":0.98,\"g\":0.98,\"b\":0.98,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"86\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":87}},\"87\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"88\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":89}},\"89\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"90\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":91}},\"91\":{\"r\":0.97,\"g\":0.97,\"b\":0.97,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"92\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":62},\"sourceAttrName\":\"getHelpText\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"getMenuHelp\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"93\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":62},\"sourceAttrName\":\"fire\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"showTargetMorphMenu\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"94\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"95\":{\"morph\":{\"__isSmartRef__\":true,\"id\":62},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"96\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":97}],\"scripts\":[],\"id\":1447,\"shape\":{\"__isSmartRef__\":true,\"id\":110},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":115},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":116},\"value\":false,\"toggle\":false,\"isActive\":true,\"normalFill\":{\"__isSmartRef__\":true,\"id\":34},\"lighterFill\":{\"__isSmartRef__\":true,\"id\":117},\"label\":{\"__isSmartRef__\":true,\"id\":97},\"owner\":{\"__isSmartRef__\":true,\"id\":1},\"layout\":{\"__isSmartRef__\":true,\"id\":126},\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":127},{\"__isSmartRef__\":true,\"id\":128}],\"doNotSerialize\":[\"$$getHelpText\",\"$$fire\"],\"doNotCopyProperties\":[\"$$getHelpText\",\"$$fire\"],\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":129},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":130},\"__LivelyClassName__\":\"lively.morphic.WindowControl\"},\"97\":{\"submorphs\":[],\"scripts\":[],\"id\":1448,\"shape\":{\"__isSmartRef__\":true,\"id\":98},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"_Padding\":{\"__isSmartRef__\":true,\"id\":103},\"_ClipMode\":\"hidden\",\"fixedWidth\":false,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"_Position\":{\"__isSmartRef__\":true,\"id\":104},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":105},\"_MaxTextWidth\":null,\"_MaxTextHeight\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":106}],\"evalEnabled\":false,\"owner\":{\"__isSmartRef__\":true,\"id\":96},\"isLabel\":true,\"eventsAreIgnored\":true,\"_FontSize\":8,\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":108},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":109},\"_HandStyle\":\"default\",\"_PointerEvents\":\"none\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_MinTextWidth\":null,\"_MinTextHeight\":null,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"98\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":99},\"_Extent\":{\"__isSmartRef__\":true,\"id\":100},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":6},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":101},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":102},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"99\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"100\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"101\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"102\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"103\":{\"x\":5,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"104\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"105\":{\"x\":17,\"y\":17,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"106\":{\"style\":{\"__isSmartRef__\":true,\"id\":107},\"morph\":{\"__isSmartRef__\":true,\"id\":97},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":97},\"storedString\":\"–\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"107\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"108\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"109\":{\"morph\":{\"__isSmartRef__\":true,\"id\":97},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"110\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":111},\"_Extent\":{\"__isSmartRef__\":true,\"id\":112},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":33},\"_Fill\":{\"__isSmartRef__\":true,\"id\":34},\"_StrokeOpacity\":0,\"_BorderRadius\":5,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":113},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":114},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"111\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"112\":{\"x\":17,\"y\":17,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"113\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"114\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"115\":{\"x\":857.4170420843768,\"y\":3,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"116\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"117\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":118},{\"__isSmartRef__\":true,\"id\":120},{\"__isSmartRef__\":true,\"id\":122},{\"__isSmartRef__\":true,\"id\":124}],\"vector\":{\"__isSmartRef__\":true,\"id\":43},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"118\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":119}},\"119\":{\"r\":0.98,\"g\":0.98,\"b\":0.98,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"120\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":121}},\"121\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"122\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":123}},\"123\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"124\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":125}},\"125\":{\"r\":0.97,\"g\":0.97,\"b\":0.97,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"126\":{\"moveHorizontal\":true},\"127\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":96},\"sourceAttrName\":\"getHelpText\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"getCollapseHelp\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"128\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":96},\"sourceAttrName\":\"fire\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":0},\"targetMethodName\":\"toggleCollapse\",\"converter\":null,\"converterString\":null,\"updater\":null,\"updaterString\":null,\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"129\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"130\":{\"morph\":{\"__isSmartRef__\":true,\"id\":96},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"131\":{\"_Position\":{\"__isSmartRef__\":true,\"id\":132},\"_Extent\":{\"__isSmartRef__\":true,\"id\":133},\"_BorderWidth\":2,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":134},\"_Fill\":{\"__isSmartRef__\":true,\"id\":135},\"_StrokeOpacity\":1,\"_BorderRadius\":\"8px 8px 0px 0px\",\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":141},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":142},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"132\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"133\":{\"x\":896.4170420843768,\"y\":22,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"134\":{\"r\":0.4,\"g\":0.4,\"b\":0.4,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"135\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":136},{\"__isSmartRef__\":true,\"id\":138}],\"vector\":{\"__isSmartRef__\":true,\"id\":140},\"__LivelyClassName__\":\"lively.morphic.LinearGradient\",\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\"},\"136\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":137}},\"137\":{\"r\":1,\"g\":1,\"b\":1,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"138\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":139}},\"139\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"140\":{\"x\":0,\"y\":0,\"width\":0,\"height\":1,\"__LivelyClassName__\":\"Rectangle\",\"__SourceModuleName__\":\"Global\"},\"141\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"142\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"143\":{\"resizeWidth\":true,\"adjustForNewBounds\":true},\"144\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"145\":{\"x\":896.4170420843768,\"y\":22,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"146\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"147\":{\"morph\":{\"__isSmartRef__\":true,\"id\":1},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"148\":{\"submorphs\":[],\"scripts\":[],\"id\":1449,\"shape\":{\"__isSmartRef__\":true,\"id\":149},\"droppingEnabled\":true,\"halosEnabled\":true,\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":156},\"showsHalos\":false,\"name\":\"ResizeCorner2\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":157},\"__SourceModuleName__\":\"Global.lively.morphic.Core\",\"__layered_draggingEnabled__\":true,\"dragStartPoint\":null,\"originalExtent\":{\"__isSmartRef__\":true,\"id\":158},\"originalTargetExtent\":null,\"owner\":{\"__isSmartRef__\":true,\"id\":0},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":159},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":160},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Rotation\":0,\"_Scale\":1.0000000000000002,\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":161},\"__LivelyClassName__\":\"lively.morphic.Box\"},\"149\":{\"position\":{\"__isSmartRef__\":true,\"id\":150},\"_Extent\":{\"__isSmartRef__\":true,\"id\":151},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":152},\"_Fill\":{\"__isSmartRef__\":true,\"id\":153},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":154},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":155},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"150\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"151\":{\"x\":13,\"y\":15,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"152\":{\"r\":0.568,\"g\":0.568,\"b\":0.568,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"153\":{\"r\":0.258,\"g\":0.258,\"b\":0.258,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"154\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"155\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"156\":{\"x\":883.4170420843768,\"y\":492.002005010021,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"157\":{\"partsSpaceName\":\"PartsBin/NewWorld\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"migrationLevel\":2,\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"158\":{\"x\":239,\"y\":138,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"159\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"160\":{\"morph\":{\"__isSmartRef__\":true,\"id\":148},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"161\":{\"onDrag\":{\"__isSmartRef__\":true,\"id\":162},\"onDragEnd\":{\"__isSmartRef__\":true,\"id\":169},\"onDragStart\":{\"__isSmartRef__\":true,\"id\":176}},\"162\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":163},\"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\":168},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"163\":{\"this\":{\"__isSmartRef__\":true,\"id\":148},\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":164}},\"164\":{\"$super\":{\"__isSmartRef__\":true,\"id\":165}},\"165\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":166},\"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\":167},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"166\":{\"obj\":{\"__isSmartRef__\":true,\"id\":148},\"name\":\"onDrag\"},\"167\":{},\"168\":{},\"169\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":170},\"source\":\"function onDragEnd(evt) {\\n\\tthis.dragStartPoint = null;\\n\\tthis.originalTargetExtent = null;\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":175},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"170\":{\"this\":{\"__isSmartRef__\":true,\"id\":148},\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":171}},\"171\":{\"$super\":{\"__isSmartRef__\":true,\"id\":172}},\"172\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":173},\"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\":174},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"173\":{\"obj\":{\"__isSmartRef__\":true,\"id\":148},\"name\":\"onDragEnd\"},\"174\":{},\"175\":{},\"176\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":177},\"source\":\"function onDragStart(evt) {\\n\\tthis.dragStartPoint = evt.mousePoint;\\n\\tthis.originalTargetExtent = this.owner.getExtent();\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":182},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"177\":{\"this\":{\"__isSmartRef__\":true,\"id\":148},\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":178}},\"178\":{\"$super\":{\"__isSmartRef__\":true,\"id\":179}},\"179\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":180},\"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\":181},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"180\":{\"obj\":{\"__isSmartRef__\":true,\"id\":148},\"name\":\"onDragStart\"},\"181\":{},\"182\":{},\"183\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":184},{\"__isSmartRef__\":true,\"id\":199},{\"__isSmartRef__\":true,\"id\":246},{\"__isSmartRef__\":true,\"id\":261},{\"__isSmartRef__\":true,\"id\":291},{\"__isSmartRef__\":true,\"id\":306}],\"scripts\":[],\"id\":1432,\"shape\":{\"__isSmartRef__\":true,\"id\":353},\"droppingEnabled\":true,\"halosEnabled\":true,\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":359},\"showsHalos\":false,\"name\":\"MethodFinderPane\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":360},\"__SourceModuleName__\":\"Global.lively.morphic.Core\",\"owner\":{\"__isSmartRef__\":true,\"id\":0},\"isCopyMorphRef\":true,\"morphRefId\":1,\"layout\":{\"__isSmartRef__\":true,\"id\":361},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":362},\"targetFunction\":null,\"targetObject\":null,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":363},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":364},\"scriptAnnotations\":{\"__isSmartRef__\":true,\"id\":365},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Rotation\":0,\"_Scale\":1,\"prevScroll\":[0,0],\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":374},\"__LivelyClassName__\":\"lively.morphic.Box\"},\"184\":{\"submorphs\":[],\"scripts\":[],\"id\":1433,\"shape\":{\"__isSmartRef__\":true,\"id\":185},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"fixedWidth\":true,\"fixedHeight\":true,\"allowsInput\":true,\"_FontFamily\":\"Arial, sans-serif\",\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":191},\"_MaxTextWidth\":290,\"_MaxTextHeight\":null,\"textColor\":{\"__isSmartRef__\":true,\"id\":188},\"showsHalos\":false,\"_FontSize\":14,\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"name\":\"searchText\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":192},\"owner\":{\"__isSmartRef__\":true,\"id\":183},\"charsReplaced\":\"selection\",\"lastFindLoc\":9,\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":193}],\"doNotSerialize\":[\"$$savedTextString\"],\"doNotCopyProperties\":[\"$$savedTextString\"],\"isInputLine\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"allowInput\":true,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":194}],\"priorSelectionRange\":[3,3],\"prevScroll\":[0,0],\"_ClipMode\":\"hidden\",\"priorExtent\":{\"__isSmartRef__\":true,\"id\":196},\"lastSearchString\":\"prev\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":197},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":198},\"_Rotation\":0,\"_MinTextWidth\":290,\"_MinTextHeight\":null,\"previousSelection\":[3,3],\"savedTextString\":\"onDrag\",\"__LivelyClassName__\":\"lively.morphic.Text\"},\"185\":{\"fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"_Position\":{\"__isSmartRef__\":true,\"id\":186},\"_Extent\":{\"__isSmartRef__\":true,\"id\":187},\"_BorderWidth\":1,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":188},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":189},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":190},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"186\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"187\":{\"x\":292,\"y\":25,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"188\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"189\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"190\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"191\":{\"x\":17,\"y\":24,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"192\":{\"partsSpaceName\":\"PartsBin/NewWorld\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"193\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":184},\"sourceAttrName\":\"savedTextString\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":183},\"targetMethodName\":\"search\",\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"194\":{\"style\":{\"__isSmartRef__\":true,\"id\":195},\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":184},\"storedString\":\"enter method name her\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\"},\"195\":{\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\"},\"196\":{\"x\":292,\"y\":25,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"197\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"198\":{\"morph\":{\"__isSmartRef__\":true,\"id\":184},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"199\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":200}],\"scripts\":[],\"id\":1434,\"shape\":{\"__isSmartRef__\":true,\"id\":215},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":231},\"value\":false,\"toggle\":false,\"isActive\":true,\"normalFill\":{\"__isSmartRef__\":true,\"id\":219},\"lighterFill\":{\"__isSmartRef__\":true,\"id\":232},\"label\":{\"__isSmartRef__\":true,\"id\":200},\"showsHalos\":false,\"name\":\"searchButton\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":241},\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"owner\":{\"__isSmartRef__\":true,\"id\":183},\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":242}],\"doNotSerialize\":[\"$$fire\"],\"doNotCopyProperties\":[\"$$fire\"],\"priorExtent\":{\"__isSmartRef__\":true,\"id\":243},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":244},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":245},\"_Rotation\":0,\"__LivelyClassName__\":\"lively.morphic.Button\"},\"200\":{\"submorphs\":[],\"scripts\":[],\"id\":1435,\"shape\":{\"__isSmartRef__\":true,\"id\":201},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"fixedWidth\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":207},\"_MaxTextWidth\":77,\"_MaxTextHeight\":null,\"padding\":{\"__isSmartRef__\":true,\"id\":208},\"_Padding\":{\"__isSmartRef__\":true,\"id\":209},\"owner\":{\"__isSmartRef__\":true,\"id\":199},\"isLabel\":true,\"eventsAreIgnored\":true,\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"textStyle\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":210}],\"prevScroll\":[0,0],\"_ClipMode\":\"hidden\",\"priorExtent\":{\"__isSmartRef__\":true,\"id\":212},\"_Align\":\"center\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":213},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":214},\"_HandStyle\":\"default\",\"_PointerEvents\":\"none\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_MinTextWidth\":77,\"_MinTextHeight\":null,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"201\":{\"position\":{\"__isSmartRef__\":true,\"id\":202},\"_Extent\":{\"__isSmartRef__\":true,\"id\":203},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":204},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":205},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":206},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"202\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"203\":{\"x\":77,\"y\":20,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"204\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"205\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"206\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"207\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"208\":{\"x\":5,\"y\":5,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"209\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"210\":{\"style\":{\"__isSmartRef__\":true,\"id\":211},\"morph\":{\"__isSmartRef__\":true,\"id\":200},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":200},\"storedString\":\"search\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"211\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"212\":{\"x\":77,\"y\":20,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"213\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"214\":{\"morph\":{\"__isSmartRef__\":true,\"id\":200},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"215\":{\"position\":{\"__isSmartRef__\":true,\"id\":216},\"_Extent\":{\"__isSmartRef__\":true,\"id\":217},\"_BorderWidth\":1,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":218},\"_Fill\":{\"__isSmartRef__\":true,\"id\":219},\"_BorderRadius\":5,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":229},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":230},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"216\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"217\":{\"x\":77,\"y\":20,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"218\":{\"r\":0.4,\"g\":0.4,\"b\":0.4,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"219\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":220},{\"__isSmartRef__\":true,\"id\":222},{\"__isSmartRef__\":true,\"id\":224},{\"__isSmartRef__\":true,\"id\":226}],\"vector\":{\"__isSmartRef__\":true,\"id\":228},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"220\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":221}},\"221\":{\"r\":0.9600000000000001,\"g\":0.9600000000000001,\"b\":0.9600000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"222\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":223}},\"223\":{\"r\":0.8200000000000001,\"g\":0.8200000000000001,\"b\":0.8200000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"224\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":225}},\"225\":{\"r\":0.8200000000000001,\"g\":0.8200000000000001,\"b\":0.8200000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"226\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":227}},\"227\":{\"r\":0.94,\"g\":0.94,\"b\":0.94,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"228\":{\"x\":0,\"y\":0,\"width\":0,\"height\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"229\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"230\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"231\":{\"x\":315,\"y\":26,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"232\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":233},{\"__isSmartRef__\":true,\"id\":235},{\"__isSmartRef__\":true,\"id\":237},{\"__isSmartRef__\":true,\"id\":239}],\"vector\":{\"__isSmartRef__\":true,\"id\":228},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"233\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":234}},\"234\":{\"r\":0.98,\"g\":0.98,\"b\":0.98,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"235\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":236}},\"236\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"237\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":238}},\"238\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"239\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":240}},\"240\":{\"r\":0.97,\"g\":0.97,\"b\":0.97,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"241\":{\"partsSpaceName\":\"PartsBin/NewWorld\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"242\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":199},\"sourceAttrName\":\"fire\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":184},\"targetMethodName\":\"doSave\",\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"243\":{\"x\":77,\"y\":21,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"244\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"245\":{\"morph\":{\"__isSmartRef__\":true,\"id\":199},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"246\":{\"submorphs\":[],\"scripts\":[],\"id\":1436,\"shape\":{\"__isSmartRef__\":true,\"id\":247},\"droppingEnabled\":true,\"halosEnabled\":true,\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":254},\"itemList\":[],\"showsHalos\":false,\"name\":\"searchResultList\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":255},\"__SourceModuleName__\":\"Global.lively.morphic.Core\",\"owner\":{\"__isSmartRef__\":true,\"id\":183},\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":256}],\"doNotSerialize\":[\"$$selection\"],\"doNotCopyProperties\":[\"$$selection\"],\"prevScroll\":[0,48],\"resizeHeight\":true,\"resizeWidth\":true,\"layout\":{\"__isSmartRef__\":true,\"id\":257},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":258},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":259},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":260},\"_Rotation\":0,\"__LivelyClassName__\":\"lively.morphic.List\"},\"247\":{\"position\":{\"__isSmartRef__\":true,\"id\":248},\"_Extent\":{\"__isSmartRef__\":true,\"id\":249},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":250},\"_Fill\":{\"__isSmartRef__\":true,\"id\":251},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":252},\"_Padding\":{\"__isSmartRef__\":true,\"id\":253},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"248\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"249\":{\"x\":875.3800299912526,\"y\":145.98799096394293,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"250\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"251\":{\"r\":0.95,\"g\":0.95,\"b\":0.95,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"252\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"253\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"254\":{\"x\":8,\"y\":60,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"255\":{\"partsSpaceName\":\"PartsBin/NewWorld\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"256\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":246},\"sourceAttrName\":\"selection\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":183},\"targetMethodName\":\"browse\",\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"257\":{\"resizeWidth\":true},\"258\":{\"x\":874.3800299912526,\"y\":145.98799096394293,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"259\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\"},\"260\":{\"morph\":{\"__isSmartRef__\":true,\"id\":246},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"261\":{\"submorphs\":[],\"scripts\":[],\"id\":1437,\"shape\":{\"__isSmartRef__\":true,\"id\":262},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"fixedWidth\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":true,\"_FontFamily\":\"Monaco, Courier\",\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":269},\"_MaxTextWidth\":872.0469590469621,\"_MaxTextHeight\":null,\"textStyle\":null,\"layout\":{\"__isSmartRef__\":true,\"id\":270},\"doitContext\":{\"__isSmartRef__\":true,\"id\":183},\"charsReplaced\":\"\",\"lastFindLoc\":127,\"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\":271}],\"priorSelectionRange\":[0,0],\"_ClipMode\":\"auto\",\"prevScroll\":[0,0],\"_FontSize\":9,\"owner\":{\"__isSmartRef__\":true,\"id\":183},\"priorExtent\":{\"__isSmartRef__\":true,\"id\":273},\"lastSyntaxHighlightTime\":1317994960034,\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":274},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":275},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Rotation\":0,\"_Scale\":0.9979990019999998,\"_MinTextWidth\":872.0469590469621,\"_MinTextHeight\":null,\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":276},\"__LivelyClassName__\":\"lively.morphic.Text\"},\"262\":{\"position\":{\"__isSmartRef__\":true,\"id\":263},\"_Extent\":{\"__isSmartRef__\":true,\"id\":264},\"_BorderWidth\":1,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":265},\"_Fill\":{\"__isSmartRef__\":true,\"id\":266},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":267},\"_ClipMode\":\"auto\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":268},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"263\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"264\":{\"x\":874.0469590469621,\"y\":227.48209598213498,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"265\":{\"r\":0.4,\"g\":0.4,\"b\":0.4,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"266\":{\"r\":0.95,\"g\":0.95,\"b\":0.95,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"267\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"268\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"269\":{\"x\":10.701682800375693,\"y\":247.98173452400079,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"270\":{\"resizeWidth\":true,\"resizeHeight\":true,\"moveVertical\":false,\"moveHorizontal\":false},\"271\":{\"style\":{\"__isSmartRef__\":true,\"id\":272},\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":261},\"storedString\":\"no code\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\"},\"272\":{\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\"},\"273\":{\"x\":874.0469590469621,\"y\":227.48209598213498,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"274\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"275\":{\"morph\":{\"__isSmartRef__\":true,\"id\":261},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"276\":{\"doSave\":{\"__isSmartRef__\":true,\"id\":277},\"getDoitContext\":{\"__isSmartRef__\":true,\"id\":284}},\"277\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":278},\"source\":\"function doSave() {\\n\\t$super()\\n\\talertOK(\\\"eval all for \\\" + this.getDoitContext())\\n\\tthis.boundEval(this.textString)\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":283},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"278\":{\"this\":{\"__isSmartRef__\":true,\"id\":261},\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":279}},\"279\":{\"$super\":{\"__isSmartRef__\":true,\"id\":280}},\"280\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":281},\"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\":282},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"281\":{\"obj\":{\"__isSmartRef__\":true,\"id\":261},\"name\":\"doSave\"},\"282\":{},\"283\":{},\"284\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":285},\"source\":\"function getDoitContext() {\\n\\treturn this.owner.targetObject\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":290},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"285\":{\"this\":{\"__isSmartRef__\":true,\"id\":261},\"__serializedLivelyClosures__\":{\"__isSmartRef__\":true,\"id\":286}},\"286\":{\"$super\":{\"__isSmartRef__\":true,\"id\":287}},\"287\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":288},\"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\":289},\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"lively.Closure\"},\"288\":{\"obj\":{\"__isSmartRef__\":true,\"id\":261},\"name\":\"getDoitContext\"},\"289\":{},\"290\":{},\"291\":{\"submorphs\":[],\"scripts\":[],\"id\":1438,\"shape\":{\"__isSmartRef__\":true,\"id\":292},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"fixedWidth\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":true,\"_FontFamily\":\"Monaco, Courier\",\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":299},\"_MaxTextWidth\":872.0469590469621,\"_MaxTextHeight\":null,\"textStyle\":null,\"layout\":{\"__isSmartRef__\":true,\"id\":300},\"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\":301}],\"priorSelectionRange\":[37,37],\"_ClipMode\":\"hidden\",\"prevScroll\":[0,0],\"_FontSize\":10,\"priorExtent\":{\"__isSmartRef__\":true,\"id\":303},\"owner\":{\"__isSmartRef__\":true,\"id\":183},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":304},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":305},\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_Rotation\":0,\"_Scale\":0.9979990019999998,\"_MinTextWidth\":872.0469590469621,\"_MinTextHeight\":null,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"292\":{\"position\":{\"__isSmartRef__\":true,\"id\":293},\"_Extent\":{\"__isSmartRef__\":true,\"id\":294},\"_BorderWidth\":1,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":295},\"_Fill\":{\"__isSmartRef__\":true,\"id\":296},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":297},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":298},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"293\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"294\":{\"x\":874.0469590469621,\"y\":20.48209598213498,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"295\":{\"r\":0.4,\"g\":0.4,\"b\":0.4,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"296\":{\"r\":0.95,\"g\":0.95,\"b\":0.95,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"297\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"298\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"299\":{\"x\":6.701682800375693,\"y\":215.98173452400079,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"300\":{\"resizeWidth\":true,\"resizeHeight\":false,\"moveVertical\":false,\"moveHorizontal\":false},\"301\":{\"style\":{\"__isSmartRef__\":true,\"id\":302},\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":291},\"storedString\":\"\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\"},\"302\":{\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\",\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\"},\"303\":{\"x\":874.0469590469621,\"y\":20.48209598213498,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"304\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"305\":{\"morph\":{\"__isSmartRef__\":true,\"id\":291},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"306\":{\"submorphs\":[{\"__isSmartRef__\":true,\"id\":307}],\"scripts\":[],\"id\":1439,\"shape\":{\"__isSmartRef__\":true,\"id\":322},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":338},\"value\":false,\"toggle\":false,\"isActive\":true,\"normalFill\":{\"__isSmartRef__\":true,\"id\":326},\"lighterFill\":{\"__isSmartRef__\":true,\"id\":339},\"label\":{\"__isSmartRef__\":true,\"id\":307},\"showsHalos\":false,\"name\":\"browse\",\"partsBinMetaInfo\":{\"__isSmartRef__\":true,\"id\":348},\"__SourceModuleName__\":\"Global.lively.morphic.Widgets\",\"attributeConnections\":[{\"__isSmartRef__\":true,\"id\":349}],\"doNotSerialize\":[\"$$fire\"],\"doNotCopyProperties\":[\"$$fire\"],\"priorExtent\":{\"__isSmartRef__\":true,\"id\":350},\"owner\":{\"__isSmartRef__\":true,\"id\":183},\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":351},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":352},\"_Rotation\":0,\"_Scale\":1,\"__LivelyClassName__\":\"lively.morphic.Button\"},\"307\":{\"submorphs\":[],\"scripts\":[],\"id\":1440,\"shape\":{\"__isSmartRef__\":true,\"id\":308},\"grabbingEnabled\":false,\"droppingEnabled\":false,\"halosEnabled\":true,\"fixedWidth\":true,\"_WhiteSpaceHandling\":\"pre-wrap\",\"fixedHeight\":true,\"allowInput\":false,\"_FontFamily\":\"Helvetica\",\"registeredForMouseEvents\":true,\"_Position\":{\"__isSmartRef__\":true,\"id\":314},\"_MaxTextWidth\":78,\"_MaxTextHeight\":null,\"padding\":{\"__isSmartRef__\":true,\"id\":315},\"_Padding\":{\"__isSmartRef__\":true,\"id\":316},\"owner\":{\"__isSmartRef__\":true,\"id\":306},\"isLabel\":true,\"eventsAreIgnored\":true,\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"textStyle\":null,\"textChunks\":[{\"__isSmartRef__\":true,\"id\":317}],\"prevScroll\":[0,0],\"_ClipMode\":\"hidden\",\"priorExtent\":{\"__isSmartRef__\":true,\"id\":319},\"_Align\":\"center\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":320},\"eventHandler\":{\"__isSmartRef__\":true,\"id\":321},\"_HandStyle\":\"default\",\"_PointerEvents\":\"none\",\"attributeConnections\":[],\"doNotSerialize\":[],\"doNotCopyProperties\":[],\"_MinTextWidth\":78,\"_MinTextHeight\":null,\"__LivelyClassName__\":\"lively.morphic.Text\"},\"308\":{\"position\":{\"__isSmartRef__\":true,\"id\":309},\"_Extent\":{\"__isSmartRef__\":true,\"id\":310},\"_BorderWidth\":0,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":311},\"_Fill\":null,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":312},\"_ClipMode\":\"hidden\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":313},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"309\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"310\":{\"x\":78,\"y\":20,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"311\":{\"r\":0,\"g\":0,\"b\":0,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"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\",\"__LivelyClassName__\":\"Rectangle\"},\"314\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"315\":{\"x\":5,\"y\":5,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"316\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"317\":{\"style\":{\"__isSmartRef__\":true,\"id\":318},\"morph\":{\"__isSmartRef__\":true,\"id\":307},\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"chunkOwner\":{\"__isSmartRef__\":true,\"id\":307},\"storedString\":\"browse\",\"__LivelyClassName__\":\"lively.morphic.TextChunk\"},\"318\":{\"__SourceModuleName__\":\"Global.lively.morphic.TextCore\",\"__LivelyClassName__\":\"lively.morphic.TextEmphasis\"},\"319\":{\"x\":78,\"y\":20,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"320\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"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\",\"enableTextEvents\":\"enableTextEventsHTML\",\"setFontFamily\":\"setFontFamilyHTML\",\"setFontSize\":\"setFontSizeHTML\",\"setTextColor\":\"setTextColorHTML\",\"setPadding\":\"setPaddingHTML\",\"setAlign\":\"setAlignHTML\",\"setVerticalAlign\":\"setVerticalAlignHTML\",\"setDisplay\":\"setDisplayHTML\",\"setWhiteSpaceHandling\":\"setWhiteSpaceHandlingHTML\",\"focusMorph\":\"focusMorphHTML\"},\"321\":{\"morph\":{\"__isSmartRef__\":true,\"id\":307},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"322\":{\"position\":{\"__isSmartRef__\":true,\"id\":323},\"_Extent\":{\"__isSmartRef__\":true,\"id\":324},\"_BorderWidth\":1,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":325},\"_Fill\":{\"__isSmartRef__\":true,\"id\":326},\"_BorderRadius\":5,\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":336},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":337},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"323\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"324\":{\"x\":78,\"y\":20,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"325\":{\"r\":0.4,\"g\":0.4,\"b\":0.4,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"326\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":327},{\"__isSmartRef__\":true,\"id\":329},{\"__isSmartRef__\":true,\"id\":331},{\"__isSmartRef__\":true,\"id\":333}],\"vector\":{\"__isSmartRef__\":true,\"id\":335},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"327\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":328}},\"328\":{\"r\":0.9600000000000001,\"g\":0.9600000000000001,\"b\":0.9600000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"329\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":330}},\"330\":{\"r\":0.8200000000000001,\"g\":0.8200000000000001,\"b\":0.8200000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"331\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":332}},\"332\":{\"r\":0.8200000000000001,\"g\":0.8200000000000001,\"b\":0.8200000000000001,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"333\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":334}},\"334\":{\"r\":0.94,\"g\":0.94,\"b\":0.94,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"335\":{\"x\":0,\"y\":0,\"width\":0,\"height\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"336\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"337\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"338\":{\"x\":401.0439335888881,\"y\":26.725910952184506,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"339\":{\"stops\":[{\"__isSmartRef__\":true,\"id\":340},{\"__isSmartRef__\":true,\"id\":342},{\"__isSmartRef__\":true,\"id\":344},{\"__isSmartRef__\":true,\"id\":346}],\"vector\":{\"__isSmartRef__\":true,\"id\":335},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"__LivelyClassName__\":\"lively.morphic.LinearGradient\"},\"340\":{\"offset\":0,\"color\":{\"__isSmartRef__\":true,\"id\":341}},\"341\":{\"r\":0.98,\"g\":0.98,\"b\":0.98,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"342\":{\"offset\":0.4,\"color\":{\"__isSmartRef__\":true,\"id\":343}},\"343\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"344\":{\"offset\":0.6,\"color\":{\"__isSmartRef__\":true,\"id\":345}},\"345\":{\"r\":0.91,\"g\":0.91,\"b\":0.91,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"346\":{\"offset\":1,\"color\":{\"__isSmartRef__\":true,\"id\":347}},\"347\":{\"r\":0.97,\"g\":0.97,\"b\":0.97,\"a\":1,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Color\"},\"348\":{\"partsSpaceName\":\"PartsBin/NewWorld\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"349\":{\"sourceObj\":{\"__isSmartRef__\":true,\"id\":306},\"sourceAttrName\":\"fire\",\"targetObj\":{\"__isSmartRef__\":true,\"id\":183},\"targetMethodName\":\"browseMethod\",\"__SourceModuleName__\":\"Global.lively.bindings\",\"__LivelyClassName__\":\"AttributeConnection\"},\"350\":{\"x\":77,\"y\":20,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"351\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"352\":{\"morph\":{\"__isSmartRef__\":true,\"id\":306},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"353\":{\"position\":{\"__isSmartRef__\":true,\"id\":354},\"_Extent\":{\"__isSmartRef__\":true,\"id\":355},\"_BorderWidth\":2,\"_BorderColor\":{\"__isSmartRef__\":true,\"id\":6},\"_Fill\":{\"__isSmartRef__\":true,\"id\":356},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":357},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":358},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"354\":{\"x\":0,\"y\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"355\":{\"x\":896.4170420843768,\"y\":485.002005010021,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"356\":{\"r\":1,\"g\":1,\"b\":1,\"a\":1,\"__LivelyClassName__\":\"Color\",\"__SourceModuleName__\":\"Global\"},\"357\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"358\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"359\":{\"x\":0,\"y\":22,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"360\":{\"partsSpaceName\":\"PartsBin/NewWorld\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"migrationLevel\":4,\"requiredModules\":[\"lively.ide\"],\"partName\":\"MethodFinderPane\",\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"361\":{\"resizeWidth\":true,\"resizeHeight\":true,\"adjustForNewBounds\":true},\"362\":{\"x\":896.4170420843768,\"y\":485.002005010021,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"363\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"364\":{\"morph\":{\"__isSmartRef__\":true,\"id\":183},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"365\":{\"browseMethod\":{\"__isSmartRef__\":true,\"id\":366},\"openMethodInSystemBrowser\":{\"__isSmartRef__\":true,\"id\":368},\"browse\":{\"__isSmartRef__\":true,\"id\":370},\"itemsFromFinds\":{\"__isSmartRef__\":true,\"id\":372}},\"366\":{\"time\":{\"__isSmartRef__\":true,\"id\":367},\"user\":\"jenslincke\"},\"367\":{\"isSerializedDate\":true,\"string\":\"Fri Oct 07 2011 15:42:47 GMT+0200 (CEST)\"},\"368\":{\"time\":{\"__isSmartRef__\":true,\"id\":369},\"user\":\"jenslincke\"},\"369\":{\"isSerializedDate\":true,\"string\":\"Fri Oct 07 2011 15:42:47 GMT+0200 (CEST)\"},\"370\":{\"time\":{\"__isSmartRef__\":true,\"id\":371},\"user\":\"jenslincke\"},\"371\":{\"isSerializedDate\":true,\"string\":\"Fri Oct 07 2011 15:26:25 GMT+0200 (CEST)\"},\"372\":{\"time\":{\"__isSmartRef__\":true,\"id\":373},\"user\":\"jenslincke\"},\"373\":{\"isSerializedDate\":true,\"string\":\"Fri Oct 07 2011 15:42:47 GMT+0200 (CEST)\"},\"374\":{\"search\":{\"__isSmartRef__\":true,\"id\":375},\"browse\":{\"__isSmartRef__\":true,\"id\":378},\"reset\":{\"__isSmartRef__\":true,\"id\":381},\"setSearch\":{\"__isSmartRef__\":true,\"id\":384},\"emphasizeStringIn\":{\"__isSmartRef__\":true,\"id\":387},\"withAllMethodsDo\":{\"__isSmartRef__\":true,\"id\":390},\"itemsFromFinds\":{\"__isSmartRef__\":true,\"id\":393},\"browseMethod\":{\"__isSmartRef__\":true,\"id\":396},\"openMethodInSystemBrowser\":{\"__isSmartRef__\":true,\"id\":399}},\"375\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":376},\"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) {\\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 var string = name + \\\": \\\" + eaMethod; \\n var item = {object: object, method: eaMethod, string: string, type: type};\\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\":377},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"376\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"377\":{},\"378\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":379},\"source\":\"function browse(methodItem) {\\n if (! methodItem) return;\\n var methodName = methodItem.method;\\n var object = methodItem.object;\\n var orgFunc = object[methodName];\\n if (!orgFunc) {\\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\\\", tab = lively.morphic.Text.prototype.tab;\\n if (orgFunc.declaredClass) {\\n source += orgFunc.declaredClass + \\\".addMethods({\\\\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\\\" + 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 this.get('sourceText').emphasizeRegex(new RegExp(this.get('searchText').textString, \\\"g\\\"), {color: Color.red});\\n\\n var info = '' + orgFunc.sourceModule ;\\n if (orgFunc.belongsToTrait)\\n info += ' ' + orgFunc.belongsToTrait;\\n\\n this.get('infoText').setTextString(info)\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":380},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"379\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"380\":{},\"381\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":382},\"source\":\"function reset() {\\n this.get('searchResultList').updateList([]);\\n this.get('searchResultList').setSelection(null);\\n this.get('searchText').setTextString('enter method name her');\\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\":383},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"382\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"383\":{},\"384\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":385},\"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\":386},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"385\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"386\":{},\"387\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":388},\"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\":389},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"388\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"389\":{},\"390\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":391},\"source\":\"function withAllMethodsDo(func) {\\n var visited = [];\\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\":392},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"391\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"392\":{},\"393\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":394},\"source\":\"function itemsFromFinds(finds) {\\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 return {\\n isListItem: true,\\n value: ea,\\n string: string,\\n }\\n })\\n items = items.sortBy(function(ea) {return ea.string})\\n return items\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":395},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"394\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"395\":{},\"396\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":397},\"source\":\"function browseMethod() {\\n alertOK('browseMethod')\\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().openScriptEditorFor(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 alert('not implemented yet for ' + this.targetFunction)\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":398},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"397\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"398\":{},\"399\":{\"varMapping\":{\"__isSmartRef__\":true,\"id\":400},\"source\":\"function openMethodInSystemBrowser(objectName, methodName) {\\n alert(\\\"browse \\\" + objectName + \\\":\\\" + methodName)\\n // objectName = 'SelectionMorphTrait', methodName = 'onDrag'\\n var uri = new URL(this.targetFunction.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 return path.include(objectName) && (!methodName || path.include(methodName)) \\n });\\n\\n alertOK(\\\"found following places to browse: \\\" + fileFragments)\\n if (fileFragments.length > 0) {\\n fileFragments[0].browseIt()\\n }\\n\\n}\",\"funcProperties\":{\"__isSmartRef__\":true,\"id\":401},\"__LivelyClassName__\":\"lively.Closure\",\"__SourceModuleName__\":\"Global\"},\"400\":{\"this\":{\"__isSmartRef__\":true,\"id\":183}},\"401\":{},\"402\":{\"_BorderWidth\":0,\"_Fill\":null,\"_StrokeOpacity\":0,\"_BorderRadius\":0,\"_Extent\":{\"__isSmartRef__\":true,\"id\":403},\"__SourceModuleName__\":\"Global.lively.morphic.Shapes\",\"renderContextTable\":{\"__isSmartRef__\":true,\"id\":404},\"_ClipMode\":\"visible\",\"_Padding\":{\"__isSmartRef__\":true,\"id\":405},\"__LivelyClassName__\":\"lively.morphic.Shapes.Rectangle\"},\"403\":{\"x\":896.4170420843768,\"y\":507.002005010021,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"404\":{\"init\":\"initHTML\",\"appendShape\":\"renderHTML\",\"setPosition\":\"setPositionHTML\",\"setExtent\":\"setExtentHTML\",\"setPadding\":\"setPaddingHTML\",\"setFill\":\"setFillHTML\",\"setBorderColor\":\"setBorderColorHTML\",\"setBorderWidth\":\"setBorderWidthHTML\",\"setStrokeOpacity\":\"setStrokeOpacityHTML\",\"setBorderRadius\":\"setBorderRadiusHTML\",\"setBorderStyle\":\"setBorderStyleHTML\",\"setOpacity\":\"setOpacityHTML\",\"setClipMode\":\"setClipModeHTML\"},\"405\":{\"x\":0,\"y\":0,\"width\":0,\"height\":0,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Rectangle\"},\"406\":{\"adjustForNewBounds\":true},\"407\":{\"x\":0,\"y\":0,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"408\":{\"x\":896.4170420843768,\"y\":507.002005010021,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"409\":{\"x\":0,\"y\":22,\"__SourceModuleName__\":\"Global\",\"__LivelyClassName__\":\"Point\"},\"410\":{\"x\":360,\"y\":111,\"__LivelyClassName__\":\"Point\",\"__SourceModuleName__\":\"Global\"},\"411\":{\"requiredModules\":[\"lively.ide\"],\"migrationLevel\":4,\"partsSpaceName\":\"PartsBin/Tools\",\"__SourceModuleName__\":\"Global.lively.PartsBin\",\"comment\":\"A method finder that searches all loaded classes and methods for matches in the source. \",\"partName\":\"MethodFinder\",\"__LivelyClassName__\":\"lively.PartsBin.PartsBinMetaInfo\"},\"412\":{\"replaceRenderContext\":\"replaceRenderContextHTML\",\"init\":\"initHTML\",\"append\":\"appendHTML\",\"remove\":\"removeHTML\",\"triggerEvent\":\"triggerEventHTML\",\"setTransform\":\"setTransformHTML\",\"setPosition\":\"setPositionHTML\",\"setRotation\":\"setRotationHTML\",\"setExtent\":\"setExtentHTML\",\"setScale\":\"setScaleHTML\",\"setVisible\":\"setVisibleHTML\",\"setOrigin\":\"setOriginHTML\",\"setPivotPoint\":\"setPivotPointHTML\",\"setClipMode\":\"setClipModeHTML\",\"showsVerticalScrollBar\":\"showsVerticalScrollBarHTML\",\"showsHorizontalScrollBar\":\"showsHorizontalScrollBarHTML\",\"getScrollBarExtent\":\"getScrollBarExtentHTML\",\"setHandStyle\":\"setHandStyleHTML\",\"setPointerEvents\":\"setPointerEventsHTML\",\"setToolTip\":\"setToolTipHTML\",\"focus\":\"focusHTML\",\"blur\":\"blurHTML\",\"setFocusable\":\"setFocusableHTML\"},\"413\":{\"morph\":{\"__isSmartRef__\":true,\"id\":0},\"__SourceModuleName__\":\"Global.lively.morphic.Events\",\"__LivelyClassName__\":\"lively.morphic.EventHandler\"},\"isSimplifiedRegistry\":true}}","loadedMetaInfo":{"__isSmartRef__":true,"id":13522},"__LivelyClassName__":"lively.PartsBin.PartItem","__SourceModuleName__":"Global.lively.PartsBin"},"13522":{"requiredModules":["lively.ide"],"migrationLevel":4,"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"A method finder that searches all loaded classes and methods for matches in the source. \n\nChanges:\n- added support for Traits","partName":"MethodFinder","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"13523":{"namespaceIdentifier":"Global.lively.morphic.Layout","createTime":{"__isSmartRef__":true,"id":13524},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1888}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Layout.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1914},{"__isSmartRef__":true,"id":13525}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13524":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13525":{"namespaceIdentifier":"Global.apps.dwarfcassowary.js.DwarfCassowary","createTime":{"__isSmartRef__":true,"id":13526},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13523}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/apps/dwarfcassowary/js/DwarfCassowary.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13527}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13526":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13527":{"namespaceIdentifier":"Global.apps.dwarfcassowary.js.HashSet","createTime":{"__isSmartRef__":true,"id":13528},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13525}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/apps/dwarfcassowary/js/HashSet.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13529}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13528":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13529":{"namespaceIdentifier":"Global.apps.dwarfcassowary.js.Hashtable","createTime":{"__isSmartRef__":true,"id":13530},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13527}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/apps/dwarfcassowary/js/Hashtable.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13530":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13531":{"namespaceIdentifier":"Global.lively.ide.BrowserFramework","createTime":{"__isSmartRef__":true,"id":13532},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":13533},{"__isSmartRef__":true,"id":13537},{"__isSmartRef__":true,"id":13539},{"__isSmartRef__":true,"id":13535},{"__isSmartRef__":true,"id":13563}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ide/BrowserFramework.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13576},{"__isSmartRef__":true,"id":1914},{"__isSmartRef__":true,"id":13578}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13532":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13533":{"namespaceIdentifier":"Global.lively.ide.SystemCodeBrowser","createTime":{"__isSmartRef__":true,"id":13534},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ide/SystemCodeBrowser.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13531},{"__isSmartRef__":true,"id":13535},{"__isSmartRef__":true,"id":13537},{"__isSmartRef__":true,"id":13541},{"__isSmartRef__":true,"id":13539},{"__isSmartRef__":true,"id":13563}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13534":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13535":{"namespaceIdentifier":"Global.lively.ide.SystemBrowserNodes","createTime":{"__isSmartRef__":true,"id":13536},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":13533}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ide/SystemBrowserNodes.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13531}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13536":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13537":{"namespaceIdentifier":"Global.lively.ide.BrowserCommands","createTime":{"__isSmartRef__":true,"id":13538},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":13533},{"__isSmartRef__":true,"id":13539}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ide/BrowserCommands.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13531}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13538":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13539":{"namespaceIdentifier":"Global.lively.ide.LocalBrowser","createTime":{"__isSmartRef__":true,"id":13540},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":13533}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ide/LocalBrowser.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1892},{"__isSmartRef__":true,"id":13531},{"__isSmartRef__":true,"id":13537}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13540":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13541":{"namespaceIdentifier":"Global.lively.ide.SourceDatabase","createTime":{"__isSmartRef__":true,"id":13542},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":13533}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ide/SourceDatabase.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13543}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13542":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13543":{"namespaceIdentifier":"Global.lively.ide.FileParsing","createTime":{"__isSmartRef__":true,"id":13544},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13541}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ide/FileParsing.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13545},{"__isSmartRef__":true,"id":13551}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13544":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13545":{"namespaceIdentifier":"Global.lively.Ometa","createTime":{"__isSmartRef__":true,"id":13546},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13543}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/Ometa.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1902},{"__isSmartRef__":true,"id":13547},{"__isSmartRef__":true,"id":13553}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13546":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13547":{"namespaceIdentifier":"Global.ometa.ometa-base","createTime":{"__isSmartRef__":true,"id":13548},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13545},{"__isSmartRef__":true,"id":13549}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/ometa/ometa-base.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13561}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13548":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13549":{"namespaceIdentifier":"Global.ometa.parser","createTime":{"__isSmartRef__":true,"id":13550},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13551},{"__isSmartRef__":true,"id":13553}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/ometa/parser.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13547}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13550":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13551":{"namespaceIdentifier":"Global.lively.LKFileParser","createTime":{"__isSmartRef__":true,"id":13552},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13543}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/LKFileParser.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13549}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13552":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13553":{"namespaceIdentifier":"Global.ometa.lk-parser-extensions","createTime":{"__isSmartRef__":true,"id":13554},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13545}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/ometa/lk-parser-extensions.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13549},{"__isSmartRef__":true,"id":13555},{"__isSmartRef__":true,"id":13557},{"__isSmartRef__":true,"id":13559}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13554":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13555":{"namespaceIdentifier":"Global.ometa.bs-ometa-optimizer","createTime":{"__isSmartRef__":true,"id":13556},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13553}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/ometa/bs-ometa-optimizer.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13547}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13556":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13557":{"namespaceIdentifier":"Global.ometa.bs-js-compiler","createTime":{"__isSmartRef__":true,"id":13558},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13553}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/ometa/bs-js-compiler.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13549}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13558":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13559":{"namespaceIdentifier":"Global.ometa.bs-ometa-compiler","createTime":{"__isSmartRef__":true,"id":13560},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13553}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/ometa/bs-ometa-compiler.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13549},{"__isSmartRef__":true,"id":13557}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13560":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13561":{"namespaceIdentifier":"Global.ometa.lib","createTime":{"__isSmartRef__":true,"id":13562},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13547}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/ometa/lib.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13562":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13563":{"namespaceIdentifier":"Global.lively.ide.SyntaxHighlighting","createTime":{"__isSmartRef__":true,"id":13564},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13533}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/ide/SyntaxHighlighting.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13565},{"__isSmartRef__":true,"id":13531}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13564":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13565":{"namespaceIdentifier":"Global.lively.morphic","createTime":{"__isSmartRef__":true,"id":13566},"Serialization":{"__isSmartRef__":true,"id":1898},"Core":{"__isSmartRef__":true,"id":1896},"TextCore":{"__isSmartRef__":true,"id":1910},"Widgets":{"__isSmartRef__":true,"id":1914},"Shapes":{"__isSmartRef__":true,"id":1926},"Events":{"__isSmartRef__":true,"id":1916},"Styles":{"__isSmartRef__":true,"id":1936},"HTML":{"__isSmartRef__":true,"id":1918},"SVG":{"__isSmartRef__":true,"id":1922},"Canvas":{"__isSmartRef__":true,"id":1928},"Rendering":{"__isSmartRef__":true,"id":1920},"PathShapes":{"__isSmartRef__":true,"id":1924},"jQueryMorphAddons":{"__isSmartRef__":true,"id":1932},"EventSimulator":{"__isSmartRef__":true,"id":13567},"ClickOnLineHack":{"__isSmartRef__":true,"id":13568},"EventExperiments":{"__isSmartRef__":true,"id":13570},"Layout":{"__isSmartRef__":true,"id":13523},"Complete":{"__isSmartRef__":true,"id":1888},"Halos":{"__isSmartRef__":true,"id":13574},"CompatLayer":{"__isSmartRef__":true,"id":13576},"MorphAddons":{"__isSmartRef__":true,"id":13578},"AdditionalMorphs":{"__isSmartRef__":true,"id":13580},"ScriptingSupport":{"__isSmartRef__":true,"id":1886},"ObjectMigration":{"__isSmartRef__":true,"id":13582},"Experiments":{"__isSmartRef__":true,"id":13584},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13572},{"__isSmartRef__":true,"id":13563}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic.js","Compat":{"__isSmartRef__":true,"id":13586},"PathOriginHackLayer":{"__isSmartRef__":true,"id":13588},"Connectors":{"__isSmartRef__":true,"id":1884},"wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1888},{"__isSmartRef__":true,"id":13576}],"pendingRequirements":[],"callbacks":[],"BindingsExtensionLayer":{"__isSmartRef__":true,"id":13594},"CopyStyleLayer":{"__isSmartRef__":true,"id":13596},"_isLoaded":true,"GrabbingDefaultLayer":{"__isSmartRef__":true,"id":13614},"GrabbingLayer":{"__isSmartRef__":true,"id":13616},"VisualBindingsLayer":{"__isSmartRef__":true,"id":13663},"__LivelyClassName__":"Namespace"},"13566":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:14 GMT-0700 (PDT)"},"13567":{},"13568":{"namespaceIdentifier":"Global.lively.morphic.ClickOnLineHack","createTime":{"__isSmartRef__":true,"id":13569},"wasDefined":true,"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/ClickOnLineHack.js","privateRequirements":[{"__isSmartRef__":true,"id":1916},{"__isSmartRef__":true,"id":1912}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13569":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13570":{"namespaceIdentifier":"Global.lively.morphic.EventExperiments","createTime":{"__isSmartRef__":true,"id":13571},"wasDefined":true,"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/EventExperiments.js","privateRequirements":[{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":13572},{"__isSmartRef__":true,"id":13574}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13571":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13572":{"namespaceIdentifier":"Global.lively.LayerableMorphs","createTime":{"__isSmartRef__":true,"id":13573},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13570}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/LayerableMorphs.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":13565}],"pendingRequirements":[],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13573":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13574":{"namespaceIdentifier":"Global.lively.morphic.Halos","createTime":{"__isSmartRef__":true,"id":13575},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13570},{"__isSmartRef__":true,"id":1888}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Halos.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1916},{"__isSmartRef__":true,"id":1914}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13575":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13576":{"namespaceIdentifier":"Global.lively.morphic.CompatLayer","createTime":{"__isSmartRef__":true,"id":13577},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13531}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/CompatLayer.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1912}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13577":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13578":{"namespaceIdentifier":"Global.lively.morphic.MorphAddons","createTime":{"__isSmartRef__":true,"id":13579},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":13531},{"__isSmartRef__":true,"id":1888}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/MorphAddons.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1916},{"__isSmartRef__":true,"id":1914},{"__isSmartRef__":true,"id":1936}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13579":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13580":{"namespaceIdentifier":"Global.lively.morphic.AdditionalMorphs","createTime":{"__isSmartRef__":true,"id":13581},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1888}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/AdditionalMorphs.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":13574}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13581":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13582":{"namespaceIdentifier":"Global.lively.morphic.ObjectMigration","createTime":{"__isSmartRef__":true,"id":13583},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1888}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/ObjectMigration.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1898},{"__isSmartRef__":true,"id":1912}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13583":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13584":{"namespaceIdentifier":"Global.lively.morphic.Experiments","createTime":{"__isSmartRef__":true,"id":13585},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1888}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/Experiments.js","wasDefined":true,"privateRequirements":[{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":1896}],"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13585":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:19 GMT-0700 (PDT)"},"13586":{"namespaceIdentifier":"Global.lively.morphic.Compat","createTime":{"__isSmartRef__":true,"id":13587},"__LivelyClassName__":"Namespace"},"13587":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13588":{"3":{"__isSmartRef__":true,"id":13589},"4":{"__isSmartRef__":true,"id":13592},"name":"PathOriginHackLayer","namespaceName":"Global.lively.morphic","__LivelyClassName__":"Layer","__SourceModuleName__":"Global.cop.Layers"},"13589":{"_layered_object":{"__isSmartRef__":true,"id":13590}},"13590":{"isPath":true,"style":{"__isSmartRef__":true,"id":13591},"_layer_object_id":3,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"13591":{"borderWidth":1,"borderColor":{"__isSmartRef__":true,"id":779}},"13592":{"_layered_object":{"__isSmartRef__":true,"id":13593}},"13593":{"_layer_object_id":4,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"13594":{"6":{"__isSmartRef__":true,"id":13595},"name":"BindingsExtensionLayer","namespaceName":"Global.lively.morphic","__LivelyClassName__":"Layer","__SourceModuleName__":"Global.cop.Layers"},"13595":{"_layered_object":{"__isSmartRef__":true,"id":1880}},"13596":{"0":{"__isSmartRef__":true,"id":13597},"name":"CopyStyleLayer","namespaceName":"Global.lively.morphic","__LivelyClassName__":"Layer","__SourceModuleName__":"Global.cop.Layers"},"13597":{"_layered_object":{"__isSmartRef__":true,"id":13598}},"13598":{"style":{"__isSmartRef__":true,"id":13599},"isMorph":true,"idCounter":583,"canvasDispatchTable":{"__isSmartRef__":true,"id":13600},"svgDispatchTable":{"__isSmartRef__":true,"id":13601},"htmlDispatchTable":{"__isSmartRef__":true,"id":13602},"dragTriggerDistance":5,"doNotSerialize":["_renderContext","halos","magnets"],"_layer_object_id":0,"connections":{"__isSmartRef__":true,"id":13603},"lookupLayersIn":["owner"],"_focusedMorph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"13599":{"enableDropping":true,"enableHalos":true},"13600":{"init":"initCANVAS","append":"appendCANVAS","remove":"removeCANVAS","setPosition":"attributeChangedCANVAS"},"13601":{"replaceRenderContext":"replaceRenderContextSVG","init":"initSVG","append":"appendSVG","remove":"removeSVG","setPosition":"setPositionSVG","setRotation":"setRotationSVG","setPointerEvents":"setPointerEventsSVG","setHandStyle":"setHandStyleSVG"},"13602":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13603":{"name":{"__isSmartRef__":true,"id":13604},"position":{"__isSmartRef__":true,"id":13605},"rotation":{"__isSmartRef__":true,"id":13606},"scale":{"__isSmartRef__":true,"id":13607},"setScale":{"__isSmartRef__":true,"id":13608},"borderWidth":{"__isSmartRef__":true,"id":13609},"borderColor":{"__isSmartRef__":true,"id":13610},"fill":{"__isSmartRef__":true,"id":13611},"extent":{"__isSmartRef__":true,"id":13612},"globalTransform":{"__isSmartRef__":true,"id":13613}},"13604":{},"13605":{"map":"_Position"},"13606":{"map":"_Rotation"},"13607":{"map":"_Scale"},"13608":{},"13609":{"map":"shape._BorderWidth"},"13610":{"map":"shape._BorderColor"},"13611":{"map":"shape._Fill"},"13612":{"map":"shape._Extent"},"13613":{"connectionClassType":"lively.morphic.GeometryTransformConnection"},"13614":{"0":{"__isSmartRef__":true,"id":13615},"name":"GrabbingDefaultLayer","namespaceName":"Global.lively.morphic","__LivelyClassName__":"Layer","__SourceModuleName__":"Global.cop.Layers"},"13615":{"_layered_object":{"__isSmartRef__":true,"id":13598}},"13616":{"0":{"__isSmartRef__":true,"id":13617},"5":{"__isSmartRef__":true,"id":13618},"name":"GrabbingLayer","namespaceName":"Global.lively.morphic","__LivelyClassName__":"Layer","__SourceModuleName__":"Global.cop.Layers"},"13617":{"_layered_object":{"__isSmartRef__":true,"id":13598}},"13618":{"_layered_object":{"__isSmartRef__":true,"id":13619}},"13619":{"isText":true,"allowInput":true,"style":{"__isSmartRef__":true,"id":13620},"autoAdjustPadding":true,"suppressDropping":true,"tab":" ","canvasDispatchTable":{"__isSmartRef__":true,"id":13622},"svgDispatchTable":{"__isSmartRef__":true,"id":13623},"htmlDispatchTable":{"__isSmartRef__":true,"id":13624},"accessibleInInactiveWindow":false,"doNotSerialize":["charsTyped"],"_layer_object_id":5,"connections":{"__isSmartRef__":true,"id":13625},"syntaxHighlightingCharLimit":4000,"_cachedScrollBarExtent":{"__isSmartRef__":true,"id":13628},"renderContextTable":{"__isSmartRef__":true,"id":13602},"textChunks":[{"__isSmartRef__":true,"id":13629}],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13620":{"borderWidth":1,"borderColor":{"__isSmartRef__":true,"id":779},"fill":{"__isSmartRef__":true,"id":13621},"fixedWidth":true,"fixedHeight":true,"enableGrabbing":false,"enableDropping":false,"allowInput":true,"clipMode":"visible","fontFamily":"Helvetica","fontSize":10,"padding":{"__isSmartRef__":true,"id":778}},"13621":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13622":{"updateText":"attributeChangedCANVAS"},"13623":{"renderText":"renderTextSVG","updateText":"updateTextSVG","setTextExtent":"setTextExtentSVG","getTextExtent":"getTextExtentSVG","setMaxTextWidth":"setMaxTextWidthSVG","setMaxTextHeight":"setMaxTextHeightSVG","getTextString":"getTextStringSVG","ignoreTextEvents":"ignoreTextEventsSVG"},"13624":{"updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13625":{"textString":{"__isSmartRef__":true,"id":13626},"savedTextString":{"__isSmartRef__":true,"id":13627}},"13626":{},"13627":{},"13628":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13629":{"style":{"__isSmartRef__":true,"id":13630},"chunkOwner":{"__isSmartRef__":true,"id":13631},"storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13630":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13631":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13632},"id":583,"renderContextTable":{"__isSmartRef__":true,"id":13637},"_WhiteSpaceHandling":"pre-wrap","eventHandler":{"__isSmartRef__":true,"id":13638},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13639},"priorExtent":{"__isSmartRef__":true,"id":13640},"_MaxTextWidth":20,"_MinTextWidth":20,"_MaxTextHeight":null,"_MinTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":13641}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13643},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13632":{"_Position":{"__isSmartRef__":true,"id":13633},"renderContextTable":{"__isSmartRef__":true,"id":13634},"_Extent":{"__isSmartRef__":true,"id":13635},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13636},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13633":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13634":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13635":{"x":20,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13636":{"x":0,"y":3,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13637":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13638":{"morph":{"__isSmartRef__":true,"id":13631},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13639":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13640":{"x":20,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13641":{"style":{"__isSmartRef__":true,"id":13642},"chunkOwner":{"__isSmartRef__":true,"id":13631},"storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13642":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13643":{"submorphs":[{"__isSmartRef__":true,"id":13631}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13644},"id":582,"renderContextTable":{"__isSmartRef__":true,"id":13649},"eventHandler":{"__isSmartRef__":true,"id":13650},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13651},"priorExtent":{"__isSmartRef__":true,"id":13652},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":810},"lighterFill":{"__isSmartRef__":true,"id":13653},"label":{"__isSmartRef__":true,"id":13631},"attributeConnections":[{"__isSmartRef__":true,"id":13662}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13644":{"_Position":{"__isSmartRef__":true,"id":13645},"renderContextTable":{"__isSmartRef__":true,"id":13646},"_Extent":{"__isSmartRef__":true,"id":13647},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13648},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":809},"_Fill":{"__isSmartRef__":true,"id":810},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13645":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13646":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13647":{"x":20,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13648":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13649":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13650":{"morph":{"__isSmartRef__":true,"id":13643},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13651":{"x":575,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13652":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13653":{"stops":[{"__isSmartRef__":true,"id":13654},{"__isSmartRef__":true,"id":13656},{"__isSmartRef__":true,"id":13658},{"__isSmartRef__":true,"id":13660}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13654":{"offset":0,"color":{"__isSmartRef__":true,"id":13655}},"13655":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13656":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13657}},"13657":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13658":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13659}},"13659":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13660":{"offset":1,"color":{"__isSmartRef__":true,"id":13661}},"13661":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13662":{"sourceObj":{"__isSmartRef__":true,"id":13643},"sourceAttrName":"fire","targetMethodName":"remove","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13663":{"0":{"__isSmartRef__":true,"id":13664},"9":{"__isSmartRef__":true,"id":13665},"name":"VisualBindingsLayer","namespaceName":"Global.lively.morphic","__LivelyClassName__":"Layer","__SourceModuleName__":"Global.cop.Layers"},"13664":{"_layered_object":{"__isSmartRef__":true,"id":13598}},"13665":{"_layered_object":{"__isSmartRef__":true,"id":1867}},"13666":{"namespaceIdentifier":"Global.lively.bindings.Core","createTime":{"__isSmartRef__":true,"id":13667},"dependendModules":[],"debugDependendModules":[{"__isSmartRef__":true,"id":1882}],"__cachedUri":"http://lively-kernel.org/repository/webwerkstatt/core/lively/bindings/Core.js","wasDefined":true,"callbacks":[],"_isLoaded":true,"__LivelyClassName__":"Namespace"},"13667":{"isSerializedDate":true,"string":"Fri Oct 28 2011 11:26:20 GMT-0700 (PDT)"},"13668":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"13669":{"sourceObj":{"__isSmartRef__":true,"id":1856},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":1793},"targetMethodName":"browse","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"13670":{"resizeWidth":true},"13671":{"x":874.3800299912526,"y":145.98799096394293,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13672":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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"},"13673":{"morph":{"__isSmartRef__":true,"id":1856},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13674":{"submorphs":[],"scripts":[],"id":514,"shape":{"__isSmartRef__":true,"id":13675},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":13682},"_MaxTextWidth":857.0469590469621,"_MaxTextHeight":null,"textStyle":null,"layout":{"__isSmartRef__":true,"id":13683},"doitContext":{"__isSmartRef__":true,"id":1793},"charsReplaced":"","lastFindLoc":101,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"sourceText","savedTextString":"// changes here only affect runtime\nImporter.addMethods({\n getBaseDocument: function () {\n debugger;\n if (Config.standAlone) {\n var doc = new DOMParser().parseFromString(Exporter.stringify(document), \"text/xml\");\n svgNode = doc.getElementsByTagName('svg')[0];\n if (svgNode)\n $A(svgNode.childNodes).forEach(function(node) { svgNode.removeChild(node) });\n return doc\n }\n\n // FIXME memoize\n var webRes = new WebResource(URL.source).get(), status = webRes.status;\n if (!status.isSuccess()) {\n console.log(\"failure retrieving \" + URL.source + \", status \" + status);\n return null;\n }\n var doc = webRes.contentDocument;\n console.log(\"problems to parse \" + URL.source);\n if (!doc)\n return null;\n // FIX for IE9+\n if (doc.documentElement == null) {\n doc = new ActiveXObject('MSXML2.DOMDocument.6.0');\n doc.validateOnParse = false;\n doc.setProperty('ProhibitDTD', false);\n doc.setProperty('SelectionLanguage', 'XPath');\n doc.setProperty('SelectionNamespaces', XPathEmulator.prototype.createNSResolver());\n doc.loadXML(webRes.content);\n }\n this.clearCanvas(doc);\n return doc;\n }\n});","textChunks":[{"__isSmartRef__":true,"id":13684},{"__isSmartRef__":true,"id":13686},{"__isSmartRef__":true,"id":13688},{"__isSmartRef__":true,"id":13691},{"__isSmartRef__":true,"id":13693},{"__isSmartRef__":true,"id":13696},{"__isSmartRef__":true,"id":13698},{"__isSmartRef__":true,"id":13700},{"__isSmartRef__":true,"id":13702},{"__isSmartRef__":true,"id":13705},{"__isSmartRef__":true,"id":13707},{"__isSmartRef__":true,"id":13709},{"__isSmartRef__":true,"id":13711},{"__isSmartRef__":true,"id":13713},{"__isSmartRef__":true,"id":13715},{"__isSmartRef__":true,"id":13717},{"__isSmartRef__":true,"id":13719},{"__isSmartRef__":true,"id":13721},{"__isSmartRef__":true,"id":13723},{"__isSmartRef__":true,"id":13725},{"__isSmartRef__":true,"id":13727},{"__isSmartRef__":true,"id":13729},{"__isSmartRef__":true,"id":13731},{"__isSmartRef__":true,"id":13733},{"__isSmartRef__":true,"id":13735},{"__isSmartRef__":true,"id":13737},{"__isSmartRef__":true,"id":13739},{"__isSmartRef__":true,"id":13741},{"__isSmartRef__":true,"id":13744},{"__isSmartRef__":true,"id":13746},{"__isSmartRef__":true,"id":13748},{"__isSmartRef__":true,"id":13750},{"__isSmartRef__":true,"id":13752},{"__isSmartRef__":true,"id":13754},{"__isSmartRef__":true,"id":13756},{"__isSmartRef__":true,"id":13758},{"__isSmartRef__":true,"id":13760},{"__isSmartRef__":true,"id":13762},{"__isSmartRef__":true,"id":13764},{"__isSmartRef__":true,"id":13766},{"__isSmartRef__":true,"id":13768},{"__isSmartRef__":true,"id":13770},{"__isSmartRef__":true,"id":13772},{"__isSmartRef__":true,"id":13774},{"__isSmartRef__":true,"id":13776},{"__isSmartRef__":true,"id":13778},{"__isSmartRef__":true,"id":13780},{"__isSmartRef__":true,"id":13782},{"__isSmartRef__":true,"id":13784},{"__isSmartRef__":true,"id":13786},{"__isSmartRef__":true,"id":13788},{"__isSmartRef__":true,"id":13790},{"__isSmartRef__":true,"id":13792},{"__isSmartRef__":true,"id":13794},{"__isSmartRef__":true,"id":13796},{"__isSmartRef__":true,"id":13798},{"__isSmartRef__":true,"id":13800},{"__isSmartRef__":true,"id":13802},{"__isSmartRef__":true,"id":13804},{"__isSmartRef__":true,"id":13806},{"__isSmartRef__":true,"id":13808},{"__isSmartRef__":true,"id":13810},{"__isSmartRef__":true,"id":13812},{"__isSmartRef__":true,"id":13814},{"__isSmartRef__":true,"id":13816},{"__isSmartRef__":true,"id":13818},{"__isSmartRef__":true,"id":13820},{"__isSmartRef__":true,"id":13822},{"__isSmartRef__":true,"id":13824},{"__isSmartRef__":true,"id":13826},{"__isSmartRef__":true,"id":13828},{"__isSmartRef__":true,"id":13830},{"__isSmartRef__":true,"id":13832},{"__isSmartRef__":true,"id":13834},{"__isSmartRef__":true,"id":13836},{"__isSmartRef__":true,"id":13838},{"__isSmartRef__":true,"id":13840},{"__isSmartRef__":true,"id":13842},{"__isSmartRef__":true,"id":13844},{"__isSmartRef__":true,"id":13846},{"__isSmartRef__":true,"id":13848},{"__isSmartRef__":true,"id":13850},{"__isSmartRef__":true,"id":13852},{"__isSmartRef__":true,"id":13854},{"__isSmartRef__":true,"id":13856},{"__isSmartRef__":true,"id":13858},{"__isSmartRef__":true,"id":13860},{"__isSmartRef__":true,"id":13862},{"__isSmartRef__":true,"id":13864},{"__isSmartRef__":true,"id":13866},{"__isSmartRef__":true,"id":13868},{"__isSmartRef__":true,"id":13870},{"__isSmartRef__":true,"id":13872},{"__isSmartRef__":true,"id":13874},{"__isSmartRef__":true,"id":13876}],"priorSelectionRange":[92,92],"_ClipMode":"auto","prevScroll":[0,0],"_FontSize":9,"owner":{"__isSmartRef__":true,"id":1793},"priorExtent":{"__isSmartRef__":true,"id":13878},"lastSyntaxHighlightTime":1319826629769,"renderContextTable":{"__isSmartRef__":true,"id":13879},"eventHandler":{"__isSmartRef__":true,"id":13880},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"_Scale":0.9979990019999998,"_MinTextWidth":857.0469590469621,"_MinTextHeight":null,"previousSelection":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13881},"__LivelyClassName__":"lively.morphic.Text"},"13675":{"position":{"__isSmartRef__":true,"id":13676},"_Extent":{"__isSmartRef__":true,"id":13677},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13678},"_Fill":{"__isSmartRef__":true,"id":13679},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":13680},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":13681},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13676":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13677":{"x":874.0469590469621,"y":227.48209598213498,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13678":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13679":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13680":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13681":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13682":{"x":10.701682800375693,"y":247.98173452400079,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13683":{"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false},"13684":{"style":{"__isSmartRef__":true,"id":13685},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"// changes here only affect runtime","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13685":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13686":{"style":{"__isSmartRef__":true,"id":13687},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13687":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13688":{"style":{"__isSmartRef__":true,"id":13689},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"Importer","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13689":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13690":{"r":0,"g":0,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13691":{"style":{"__isSmartRef__":true,"id":13692},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":".","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13692":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13693":{"style":{"__isSmartRef__":true,"id":13694},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"addMethods","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13694":{"color":{"__isSmartRef__":true,"id":13695},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13695":{"r":0.5019607843137255,"g":0.5019607843137255,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13696":{"style":{"__isSmartRef__":true,"id":13697},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13697":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13698":{"style":{"__isSmartRef__":true,"id":13699},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13699":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13700":{"style":{"__isSmartRef__":true,"id":13701},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13701":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13702":{"style":{"__isSmartRef__":true,"id":13703},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"getBaseDocument","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13703":{"color":{"__isSmartRef__":true,"id":13704},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13704":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13705":{"style":{"__isSmartRef__":true,"id":13706},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":":","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13706":{"color":{"__isSmartRef__":true,"id":1370},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13707":{"style":{"__isSmartRef__":true,"id":13708},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13708":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13709":{"style":{"__isSmartRef__":true,"id":13710},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13710":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13711":{"style":{"__isSmartRef__":true,"id":13712},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" () ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13712":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13713":{"style":{"__isSmartRef__":true,"id":13714},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"{\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13714":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13715":{"style":{"__isSmartRef__":true,"id":13716},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" debugger;\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13716":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13717":{"style":{"__isSmartRef__":true,"id":13718},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13718":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13719":{"style":{"__isSmartRef__":true,"id":13720},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" (Config.standAlone) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13720":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13721":{"style":{"__isSmartRef__":true,"id":13722},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13722":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13723":{"style":{"__isSmartRef__":true,"id":13724},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13724":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13725":{"style":{"__isSmartRef__":true,"id":13726},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13726":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13727":{"style":{"__isSmartRef__":true,"id":13728},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" doc = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13728":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13729":{"style":{"__isSmartRef__":true,"id":13730},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13730":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13731":{"style":{"__isSmartRef__":true,"id":13732},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" DOMParser().parseFromString(Exporter.stringify(document), ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13732":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13733":{"style":{"__isSmartRef__":true,"id":13734},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\"text/xml\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13734":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13735":{"style":{"__isSmartRef__":true,"id":13736},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":");\n svgNode = doc.getElementsByTagName(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13736":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13737":{"style":{"__isSmartRef__":true,"id":13738},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"'svg'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13738":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13739":{"style":{"__isSmartRef__":true,"id":13740},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":")[","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13740":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13741":{"style":{"__isSmartRef__":true,"id":13742},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13742":{"color":{"__isSmartRef__":true,"id":13743},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13743":{"r":0,"g":0,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13744":{"style":{"__isSmartRef__":true,"id":13745},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"];\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13745":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13746":{"style":{"__isSmartRef__":true,"id":13747},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13747":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13748":{"style":{"__isSmartRef__":true,"id":13749},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" (svgNode)\n $A(svgNode.childNodes).forEach(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13749":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13750":{"style":{"__isSmartRef__":true,"id":13751},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13751":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13752":{"style":{"__isSmartRef__":true,"id":13753},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"(node) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13753":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13754":{"style":{"__isSmartRef__":true,"id":13755},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13755":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13756":{"style":{"__isSmartRef__":true,"id":13757},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" svgNode.removeChild(node) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13757":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13758":{"style":{"__isSmartRef__":true,"id":13759},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13759":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13760":{"style":{"__isSmartRef__":true,"id":13761},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":");\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13761":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13762":{"style":{"__isSmartRef__":true,"id":13763},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13763":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13764":{"style":{"__isSmartRef__":true,"id":13765},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" doc\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13765":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13766":{"style":{"__isSmartRef__":true,"id":13767},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13767":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13768":{"style":{"__isSmartRef__":true,"id":13769},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13769":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13770":{"style":{"__isSmartRef__":true,"id":13771},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"// FIXME memoize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13771":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13772":{"style":{"__isSmartRef__":true,"id":13773},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13773":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13774":{"style":{"__isSmartRef__":true,"id":13775},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13775":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13776":{"style":{"__isSmartRef__":true,"id":13777},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" webRes = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13777":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13778":{"style":{"__isSmartRef__":true,"id":13779},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13779":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13780":{"style":{"__isSmartRef__":true,"id":13781},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" WebResource(URL.source).get(), status = webRes.status;\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13781":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13782":{"style":{"__isSmartRef__":true,"id":13783},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13783":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13784":{"style":{"__isSmartRef__":true,"id":13785},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" (!status.isSuccess()) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13786":{"style":{"__isSmartRef__":true,"id":13787},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13787":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13788":{"style":{"__isSmartRef__":true,"id":13789},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n console.log(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13789":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13790":{"style":{"__isSmartRef__":true,"id":13791},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\"failure retrieving \"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13791":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13792":{"style":{"__isSmartRef__":true,"id":13793},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" + URL.source + ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13793":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13794":{"style":{"__isSmartRef__":true,"id":13795},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\", status \"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13795":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13796":{"style":{"__isSmartRef__":true,"id":13797},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" + status);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13797":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13798":{"style":{"__isSmartRef__":true,"id":13799},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13799":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13800":{"style":{"__isSmartRef__":true,"id":13801},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" null;\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13801":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13802":{"style":{"__isSmartRef__":true,"id":13803},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13803":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13804":{"style":{"__isSmartRef__":true,"id":13805},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13805":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13806":{"style":{"__isSmartRef__":true,"id":13807},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13807":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13808":{"style":{"__isSmartRef__":true,"id":13809},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" doc = webRes.contentDocument;\n console.log(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13809":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13810":{"style":{"__isSmartRef__":true,"id":13811},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\"problems to parse \"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13811":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13812":{"style":{"__isSmartRef__":true,"id":13813},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" + URL.source);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13813":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13814":{"style":{"__isSmartRef__":true,"id":13815},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13815":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13816":{"style":{"__isSmartRef__":true,"id":13817},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" (!doc)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13817":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13818":{"style":{"__isSmartRef__":true,"id":13819},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13819":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13820":{"style":{"__isSmartRef__":true,"id":13821},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" null;\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13821":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13822":{"style":{"__isSmartRef__":true,"id":13823},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"// FIX for IE9+","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13823":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13824":{"style":{"__isSmartRef__":true,"id":13825},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13825":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13826":{"style":{"__isSmartRef__":true,"id":13827},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13827":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13828":{"style":{"__isSmartRef__":true,"id":13829},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" (doc.documentElement == null) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13829":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13830":{"style":{"__isSmartRef__":true,"id":13831},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13831":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13832":{"style":{"__isSmartRef__":true,"id":13833},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n doc = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13833":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13834":{"style":{"__isSmartRef__":true,"id":13835},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13835":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13836":{"style":{"__isSmartRef__":true,"id":13837},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" ActiveXObject(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13837":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13838":{"style":{"__isSmartRef__":true,"id":13839},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"'MSXML2.DOMDocument.6.0'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13839":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13840":{"style":{"__isSmartRef__":true,"id":13841},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":");\n doc.validateOnParse = false;\n doc.setProperty(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13841":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13842":{"style":{"__isSmartRef__":true,"id":13843},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"'ProhibitDTD'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13843":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13844":{"style":{"__isSmartRef__":true,"id":13845},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":", false);\n doc.setProperty(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13845":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13846":{"style":{"__isSmartRef__":true,"id":13847},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"'SelectionLanguage'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13847":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13848":{"style":{"__isSmartRef__":true,"id":13849},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13849":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13850":{"style":{"__isSmartRef__":true,"id":13851},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"'XPath'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13851":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13852":{"style":{"__isSmartRef__":true,"id":13853},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":");\n doc.setProperty(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13853":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13854":{"style":{"__isSmartRef__":true,"id":13855},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"'SelectionNamespaces'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13855":{"color":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13856":{"style":{"__isSmartRef__":true,"id":13857},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":", XPathEmulator.prototype.createNSResolver());\n doc.loadXML(webRes.content);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13857":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13858":{"style":{"__isSmartRef__":true,"id":13859},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13859":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13860":{"style":{"__isSmartRef__":true,"id":13861},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13861":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13862":{"style":{"__isSmartRef__":true,"id":13863},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13863":{"color":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13864":{"style":{"__isSmartRef__":true,"id":13865},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":".clearCanvas(doc);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13865":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13866":{"style":{"__isSmartRef__":true,"id":13867},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13867":{"color":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13868":{"style":{"__isSmartRef__":true,"id":13869},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":" doc;\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13869":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13870":{"style":{"__isSmartRef__":true,"id":13871},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13871":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13872":{"style":{"__isSmartRef__":true,"id":13873},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13873":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13874":{"style":{"__isSmartRef__":true,"id":13875},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13875":{"color":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13876":{"style":{"__isSmartRef__":true,"id":13877},"chunkOwner":{"__isSmartRef__":true,"id":13674},"storedString":");","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13877":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13878":{"x":874.0469590469621,"y":227.48209598213498,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13879":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13880":{"morph":{"__isSmartRef__":true,"id":13674},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13881":{"doSave":{"__isSmartRef__":true,"id":13882},"getDoitContext":{"__isSmartRef__":true,"id":13889}},"13882":{"varMapping":{"__isSmartRef__":true,"id":13883},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":13888},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13883":{"this":{"__isSmartRef__":true,"id":13674},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13884}},"13884":{"$super":{"__isSmartRef__":true,"id":13885}},"13885":{"varMapping":{"__isSmartRef__":true,"id":13886},"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":13887},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13886":{"obj":{"__isSmartRef__":true,"id":13674},"name":"doSave"},"13887":{},"13888":{},"13889":{"varMapping":{"__isSmartRef__":true,"id":13890},"source":"function getDoitContext() {\n\treturn this.owner.targetObject\n}","funcProperties":{"__isSmartRef__":true,"id":13895},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13890":{"this":{"__isSmartRef__":true,"id":13674},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13891}},"13891":{"$super":{"__isSmartRef__":true,"id":13892}},"13892":{"varMapping":{"__isSmartRef__":true,"id":13893},"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":13894},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13893":{"obj":{"__isSmartRef__":true,"id":13674},"name":"getDoitContext"},"13894":{},"13895":{},"13896":{"submorphs":[],"scripts":[],"id":515,"shape":{"__isSmartRef__":true,"id":13897},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":13904},"_MaxTextWidth":872.0469590469621,"_MaxTextHeight":null,"textStyle":null,"layout":{"__isSmartRef__":true,"id":13905},"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":13906}],"priorSelectionRange":[43,43],"_ClipMode":"hidden","prevScroll":[0,0],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":13908},"owner":{"__isSmartRef__":true,"id":1793},"renderContextTable":{"__isSmartRef__":true,"id":13909},"eventHandler":{"__isSmartRef__":true,"id":13910},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"_Scale":0.9979990019999998,"_MinTextWidth":872.0469590469621,"_MinTextHeight":null,"previousSelection":[37,37],"__LivelyClassName__":"lively.morphic.Text"},"13897":{"position":{"__isSmartRef__":true,"id":13898},"_Extent":{"__isSmartRef__":true,"id":13899},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13900},"_Fill":{"__isSmartRef__":true,"id":13901},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":13902},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13903},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13898":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13899":{"x":874.0469590469621,"y":20.48209598213498,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13900":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13901":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13902":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13903":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13904":{"x":6.701682800375693,"y":215.98173452400079,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13905":{"resizeWidth":true,"resizeHeight":false,"moveVertical":false,"moveHorizontal":false},"13906":{"style":{"__isSmartRef__":true,"id":13907},"chunkOwner":{"__isSmartRef__":true,"id":13896},"storedString":"module(Global.lively.DOMAbstraction)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13907":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13908":{"x":874.0469590469621,"y":20.48209598213498,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13909":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13910":{"morph":{"__isSmartRef__":true,"id":13896},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13911":{"submorphs":[{"__isSmartRef__":true,"id":13912}],"scripts":[],"id":516,"shape":{"__isSmartRef__":true,"id":13927},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":13943},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13931},"lighterFill":{"__isSmartRef__":true,"id":13944},"label":{"__isSmartRef__":true,"id":13912},"showsHalos":false,"name":"browse","partsBinMetaInfo":{"__isSmartRef__":true,"id":13953},"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[{"__isSmartRef__":true,"id":13954}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"priorExtent":{"__isSmartRef__":true,"id":13955},"owner":{"__isSmartRef__":true,"id":1793},"renderContextTable":{"__isSmartRef__":true,"id":13956},"eventHandler":{"__isSmartRef__":true,"id":13957},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"13912":{"submorphs":[],"scripts":[],"id":517,"shape":{"__isSmartRef__":true,"id":13913},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":13919},"_MaxTextWidth":78,"_MaxTextHeight":null,"padding":{"__isSmartRef__":true,"id":13920},"_Padding":{"__isSmartRef__":true,"id":13921},"owner":{"__isSmartRef__":true,"id":13911},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textStyle":null,"textChunks":[{"__isSmartRef__":true,"id":13922}],"prevScroll":[0,0],"_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":13924},"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":13925},"eventHandler":{"__isSmartRef__":true,"id":13926},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":78,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"13913":{"position":{"__isSmartRef__":true,"id":13914},"_Extent":{"__isSmartRef__":true,"id":13915},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":13916},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":13917},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13918},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13914":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13915":{"x":78,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13916":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13917":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13918":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13919":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13920":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13921":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13922":{"style":{"__isSmartRef__":true,"id":13923},"morph":{"__isSmartRef__":true,"id":13912},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":13912},"storedString":"browse","__LivelyClassName__":"lively.morphic.TextChunk"},"13923":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"13924":{"x":78,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13925":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13926":{"morph":{"__isSmartRef__":true,"id":13912},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13927":{"position":{"__isSmartRef__":true,"id":13928},"_Extent":{"__isSmartRef__":true,"id":13929},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13930},"_Fill":{"__isSmartRef__":true,"id":13931},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":13941},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13942},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13928":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13929":{"x":78,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13930":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13931":{"stops":[{"__isSmartRef__":true,"id":13932},{"__isSmartRef__":true,"id":13934},{"__isSmartRef__":true,"id":13936},{"__isSmartRef__":true,"id":13938}],"vector":{"__isSmartRef__":true,"id":13940},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"13932":{"offset":0,"color":{"__isSmartRef__":true,"id":13933}},"13933":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13934":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13935}},"13935":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13936":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13937}},"13937":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13938":{"offset":1,"color":{"__isSmartRef__":true,"id":13939}},"13939":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13940":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13941":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13942":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13943":{"x":401.0439335888881,"y":26.725910952184506,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13944":{"stops":[{"__isSmartRef__":true,"id":13945},{"__isSmartRef__":true,"id":13947},{"__isSmartRef__":true,"id":13949},{"__isSmartRef__":true,"id":13951}],"vector":{"__isSmartRef__":true,"id":13940},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"13945":{"offset":0,"color":{"__isSmartRef__":true,"id":13946}},"13946":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13947":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13948}},"13948":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13949":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13950}},"13950":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13951":{"offset":1,"color":{"__isSmartRef__":true,"id":13952}},"13952":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13953":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"13954":{"sourceObj":{"__isSmartRef__":true,"id":13911},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1793},"targetMethodName":"browseMethod","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"13955":{"x":77,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13956":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13957":{"morph":{"__isSmartRef__":true,"id":13911},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13958":{"position":{"__isSmartRef__":true,"id":13959},"_Extent":{"__isSmartRef__":true,"id":13960},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1617},"_Fill":{"__isSmartRef__":true,"id":13961},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":13962},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13963},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13959":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13960":{"x":896.4170420843768,"y":485.002005010021,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13961":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13962":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13963":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13964":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13965":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"requiredModules":["lively.ide"],"partName":"MethodFinderPane","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"13966":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"13967":{"x":896.4170420843768,"y":485.002005010021,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13968":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13969":{"morph":{"__isSmartRef__":true,"id":1793},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13970":{"browseMethod":{"__isSmartRef__":true,"id":13971},"openMethodInSystemBrowser":{"__isSmartRef__":true,"id":13973},"browse":{"__isSmartRef__":true,"id":13975},"itemsFromFinds":{"__isSmartRef__":true,"id":13977}},"13971":{"time":{"__isSmartRef__":true,"id":13972},"user":"jenslincke"},"13972":{"isSerializedDate":true,"string":"Fri Oct 07 2011 06:42:47 GMT-0700 (PDT)"},"13973":{"time":{"__isSmartRef__":true,"id":13974},"user":"jenslincke"},"13974":{"isSerializedDate":true,"string":"Fri Oct 07 2011 06:42:47 GMT-0700 (PDT)"},"13975":{"time":{"__isSmartRef__":true,"id":13976},"user":"jenslincke"},"13976":{"isSerializedDate":true,"string":"Fri Oct 07 2011 06:26:25 GMT-0700 (PDT)"},"13977":{"time":{"__isSmartRef__":true,"id":13978},"user":"jenslincke"},"13978":{"isSerializedDate":true,"string":"Fri Oct 07 2011 06:42:47 GMT-0700 (PDT)"},"13979":{"search":{"__isSmartRef__":true,"id":13980},"browse":{"__isSmartRef__":true,"id":13983},"reset":{"__isSmartRef__":true,"id":13986},"setSearch":{"__isSmartRef__":true,"id":13989},"emphasizeStringIn":{"__isSmartRef__":true,"id":13992},"withAllMethodsDo":{"__isSmartRef__":true,"id":13995},"itemsFromFinds":{"__isSmartRef__":true,"id":13998},"browseMethod":{"__isSmartRef__":true,"id":14001},"openMethodInSystemBrowser":{"__isSmartRef__":true,"id":14004}},"13980":{"varMapping":{"__isSmartRef__":true,"id":13981},"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) {\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 var string = name + \": \" + eaMethod; \n var item = {object: object, method: eaMethod, string: string, type: type};\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":13982},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13981":{"this":{"__isSmartRef__":true,"id":1793}},"13982":{},"13983":{"varMapping":{"__isSmartRef__":true,"id":13984},"source":"function browse(methodItem) {\n if (! methodItem) return;\n var methodName = methodItem.method;\n var object = methodItem.object;\n var orgFunc = object[methodName];\n if (!orgFunc) {\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\", tab = lively.morphic.Text.prototype.tab;\n if (orgFunc.declaredClass) {\n source += orgFunc.declaredClass + \".addMethods({\\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\" + 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 this.get('sourceText').emphasizeRegex(new RegExp(this.get('searchText').textString, \"g\"), {color: Color.red});\n\n var info = '' + orgFunc.sourceModule ;\n if (orgFunc.belongsToTrait)\n info += ' ' + orgFunc.belongsToTrait;\n\n this.get('infoText').setTextString(info)\n}","funcProperties":{"__isSmartRef__":true,"id":13985},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13984":{"this":{"__isSmartRef__":true,"id":1793}},"13985":{},"13986":{"varMapping":{"__isSmartRef__":true,"id":13987},"source":"function reset() {\n this.get('searchResultList').updateList([]);\n this.get('searchResultList').setSelection(null);\n this.get('searchText').setTextString('enter method name her');\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":13988},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13987":{"this":{"__isSmartRef__":true,"id":1793}},"13988":{},"13989":{"varMapping":{"__isSmartRef__":true,"id":13990},"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":13991},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13990":{"this":{"__isSmartRef__":true,"id":1793}},"13991":{},"13992":{"varMapping":{"__isSmartRef__":true,"id":13993},"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":13994},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13993":{"this":{"__isSmartRef__":true,"id":1793}},"13994":{},"13995":{"varMapping":{"__isSmartRef__":true,"id":13996},"source":"function withAllMethodsDo(func) {\n var visited = [];\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":13997},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13996":{"this":{"__isSmartRef__":true,"id":1793}},"13997":{},"13998":{"varMapping":{"__isSmartRef__":true,"id":13999},"source":"function itemsFromFinds(finds) {\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 return {\n isListItem: true,\n value: ea,\n string: string,\n }\n })\n items = items.sortBy(function(ea) {return ea.string})\n return items\n}","funcProperties":{"__isSmartRef__":true,"id":14000},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13999":{"this":{"__isSmartRef__":true,"id":1793}},"14000":{},"14001":{"varMapping":{"__isSmartRef__":true,"id":14002},"source":"function browseMethod() {\n alertOK('browseMethod')\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().openScriptEditorFor(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 alert('not implemented yet for ' + this.targetFunction)\n}","funcProperties":{"__isSmartRef__":true,"id":14003},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14002":{"this":{"__isSmartRef__":true,"id":1793}},"14003":{},"14004":{"varMapping":{"__isSmartRef__":true,"id":14005},"source":"function openMethodInSystemBrowser(objectName, methodName) {\n alert(\"browse \" + objectName + \":\" + methodName)\n // objectName = 'SelectionMorphTrait', methodName = 'onDrag'\n var uri = new URL(this.targetFunction.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 return path.include(objectName) && (!methodName || path.include(methodName)) \n });\n\n alertOK(\"found following places to browse: \" + fileFragments)\n if (fileFragments.length > 0) {\n fileFragments[0].browseIt()\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14006},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14005":{"this":{"__isSmartRef__":true,"id":1793}},"14006":{},"14007":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":14008},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14009},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14010},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14008":{"x":896.4170420843768,"y":507.002005010021,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14009":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14010":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14011":{"adjustForNewBounds":true},"14012":{"x":356.7914789578116,"y":267.9989974949895,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14013":{"x":896.4170420843768,"y":507.002005010021,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14014":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14015":{"x":360,"y":111,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14016":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14017":{"morph":{"__isSmartRef__":true,"id":1611},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14018":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":14019},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":0},"_Position":{"__isSmartRef__":true,"id":14025},"owner":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","carriesGrabbedMorphs":false,"_Scale":1.002003004005006,"_Rotation":0,"renderContextTable":{"__isSmartRef__":true,"id":14026},"eventHandler":{"__isSmartRef__":true,"id":14027},"clickedOnMorph":{"__isSmartRef__":true,"id":0},"lastScrollTime":1319826658001,"internalClickedOnMorph":{"__isSmartRef__":true,"id":14028},"scrollFocusMorph":{"__isSmartRef__":true,"id":14060},"__LivelyClassName__":"lively.morphic.HandMorph","withLayers":["Global.NoMagnetsLayer"]},"14019":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":14020},"_Extent":{"__isSmartRef__":true,"id":14021},"_Fill":{"__isSmartRef__":true,"id":14022},"renderContextTable":{"__isSmartRef__":true,"id":14023},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14024},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14020":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14021":{"x":2,"y":2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14022":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14023":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14024":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14025":{"x":56,"y":716,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14026":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14027":{"morph":{"__isSmartRef__":true,"id":14018},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14028":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14029},"id":532,"renderContextTable":{"__isSmartRef__":true,"id":14039},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":14040}],"eventHandler":{"__isSmartRef__":true,"id":14042},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10.5,"_Position":{"__isSmartRef__":true,"id":14043},"priorExtent":{"__isSmartRef__":true,"id":14044},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":780},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14045},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14029":{"_Position":{"__isSmartRef__":true,"id":14030},"renderContextTable":{"__isSmartRef__":true,"id":14031},"_Extent":{"__isSmartRef__":true,"id":14032},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":14033},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":{"__isSmartRef__":true,"id":14034},"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14030":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14031":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14032":{"x":228,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14033":{"x":3,"y":2,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14034":{"stops":[{"__isSmartRef__":true,"id":14035},{"__isSmartRef__":true,"id":14037}],"vector":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14035":{"offset":0,"color":{"__isSmartRef__":true,"id":14036}},"14036":{"r":0.39215686274509803,"g":0.5137254901960784,"b":0.9725490196078431,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14037":{"offset":1,"color":{"__isSmartRef__":true,"id":14038}},"14038":{"r":0.13333333333333333,"g":0.3333333333333333,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14039":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14040":{"style":{"__isSmartRef__":true,"id":14041},"chunkOwner":{"__isSmartRef__":true,"id":14028},"storedString":"save world","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14041":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14042":{"morph":{"__isSmartRef__":true,"id":14028},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14043":{"x":0,"y":207,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14044":{"x":257,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14045":{"onMouseWheel":{"__isSmartRef__":true,"id":14046},"onSelectStart":{"__isSmartRef__":true,"id":14053}},"14046":{"varMapping":{"__isSmartRef__":true,"id":14047},"source":"function onMouseWheel(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":14052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14047":{"this":{"__isSmartRef__":true,"id":14028},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14048}},"14048":{"$super":{"__isSmartRef__":true,"id":14049}},"14049":{"varMapping":{"__isSmartRef__":true,"id":14050},"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":14051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14050":{"obj":{"__isSmartRef__":true,"id":14028},"name":"onMouseWheel"},"14051":{},"14052":{},"14053":{"varMapping":{"__isSmartRef__":true,"id":14054},"source":"function onSelectStart(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":14059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14054":{"this":{"__isSmartRef__":true,"id":14028},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14055}},"14055":{"$super":{"__isSmartRef__":true,"id":14056}},"14056":{"varMapping":{"__isSmartRef__":true,"id":14057},"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":14058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14057":{"obj":{"__isSmartRef__":true,"id":14028},"name":"onSelectStart"},"14058":{},"14059":{},"14060":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14061},"id":579,"renderContextTable":{"__isSmartRef__":true,"id":14066},"_WhiteSpaceHandling":"pre","eventHandler":{"__isSmartRef__":true,"id":14067},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10.5,"_Position":{"__isSmartRef__":true,"id":14068},"priorExtent":{"__isSmartRef__":true,"id":14069},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":14070}],"evalEnabled":false,"_HandStyle":"default","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14072},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14061":{"_Position":{"__isSmartRef__":true,"id":14062},"renderContextTable":{"__isSmartRef__":true,"id":14063},"_Extent":{"__isSmartRef__":true,"id":14064},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":14065},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":779},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14062":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14063":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14064":{"x":228,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14065":{"x":3,"y":2,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14066":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","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","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14067":{"morph":{"__isSmartRef__":true,"id":14060},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14068":{"x":0,"y":207,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14069":{"x":257,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14070":{"style":{"__isSmartRef__":true,"id":14071},"chunkOwner":{"__isSmartRef__":true,"id":14060},"storedString":"save world","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14071":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14072":{"onMouseWheel":{"__isSmartRef__":true,"id":14073},"onSelectStart":{"__isSmartRef__":true,"id":14080}},"14073":{"varMapping":{"__isSmartRef__":true,"id":14074},"source":"function onMouseWheel(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":14079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14074":{"this":{"__isSmartRef__":true,"id":14060},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14075}},"14075":{"$super":{"__isSmartRef__":true,"id":14076}},"14076":{"varMapping":{"__isSmartRef__":true,"id":14077},"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":14078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14077":{"obj":{"__isSmartRef__":true,"id":14060},"name":"onMouseWheel"},"14078":{},"14079":{},"14080":{"varMapping":{"__isSmartRef__":true,"id":14081},"source":"function onSelectStart(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":14086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14081":{"this":{"__isSmartRef__":true,"id":14060},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14082}},"14082":{"$super":{"__isSmartRef__":true,"id":14083}},"14083":{"varMapping":{"__isSmartRef__":true,"id":14084},"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":14085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14084":{"obj":{"__isSmartRef__":true,"id":14060},"name":"onSelectStart"},"14085":{},"14086":{},"14087":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":14088},"_Extent":{"__isSmartRef__":true,"id":14089},"_Fill":{"__isSmartRef__":true,"id":14090},"renderContextTable":{"__isSmartRef__":true,"id":14091},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14088":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14089":{"x":2800,"y":2900,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14090":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14091":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14092":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14093":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14094":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14095":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14096":{"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":14097},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14098},"__LivelyClassName__":"AttributeConnection"},"14097":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"14098":{"updater":{"__isSmartRef__":true,"id":14099}},"14099":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":14097},"source":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","funcProperties":{"__isSmartRef__":true,"id":14100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14100":{},"14101":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/users/fbo/configPlayground.xhtml","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"isSimplifiedRegistry":true}}]]>