>update: TypeError: Cannot call method 'getContent' of null","draggingEnabled":true,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16165},"eventHandler":{"__isSmartRef__":true,"id":16166},"eventStartPos":null,"attributeConnections":[{"__isSmartRef__":true,"id":16167}],"doNotSerialize":["$$savedWorldAsURL"],"doNotCopyProperties":["$$savedWorldAsURL"],"clickedOnMorphTime":1326842141629,"worldMenuOpened":true,"savedWorldAsURL":{"__isSmartRef__":true,"id":16172},"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.World"},"1":{"submorphs":[],"scripts":[],"id":257,"shape":{"__isSmartRef__":true,"id":2},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8},"_MaxTextWidth":718,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":9},"showsHalos":false,"_FontSize":25,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":10},"_TextColor":{"__isSmartRef__":true,"id":11},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"textChunks":[{"__isSmartRef__":true,"id":12}],"charsReplaced":"Use this page as a template for your own worlds","lastFindLoc":47,"_ClipMode":"visible","renderContextTable":{"__isSmartRef__":true,"id":14},"priorExtent":{"__isSmartRef__":true,"id":15},"eventHandler":{"__isSmartRef__":true,"id":16},"priorSelectionRange":[1,1],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":718,"_MinTextHeight":null,"previousSelection":[19,27],"__LivelyClassName__":"lively.morphic.Text"},"2":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3},"_Extent":{"__isSmartRef__":true,"id":4},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5},"renderContextTable":{"__isSmartRef__":true,"id":6},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4":{"x":718,"y":38,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"6":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"8":{"x":23,"y":28,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"9":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"10":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"11":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12":{"style":{"__isSmartRef__":true,"id":13},"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"Tables\n","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15":{"x":718,"y":38,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"16":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17":{"submorphs":[{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":33},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":85},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":137},{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":202},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":228},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":254},{"__isSmartRef__":true,"id":267},{"__isSmartRef__":true,"id":280},{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":333},{"__isSmartRef__":true,"id":346},{"__isSmartRef__":true,"id":359},{"__isSmartRef__":true,"id":372},{"__isSmartRef__":true,"id":385},{"__isSmartRef__":true,"id":398},{"__isSmartRef__":true,"id":411},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":476},{"__isSmartRef__":true,"id":489},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":528},{"__isSmartRef__":true,"id":541},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":567},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":606},{"__isSmartRef__":true,"id":619},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":658},{"__isSmartRef__":true,"id":671},{"__isSmartRef__":true,"id":684},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":710},{"__isSmartRef__":true,"id":723},{"__isSmartRef__":true,"id":736},{"__isSmartRef__":true,"id":749},{"__isSmartRef__":true,"id":762},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":788},{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":814},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":866},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":892},{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":918},{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":944},{"__isSmartRef__":true,"id":957},{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":983},{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":1009},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1035},{"__isSmartRef__":true,"id":1048},{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1113},{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1152},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1178},{"__isSmartRef__":true,"id":1191},{"__isSmartRef__":true,"id":1204},{"__isSmartRef__":true,"id":1217},{"__isSmartRef__":true,"id":1230},{"__isSmartRef__":true,"id":1243},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1269},{"__isSmartRef__":true,"id":1282},{"__isSmartRef__":true,"id":1295},{"__isSmartRef__":true,"id":1308},{"__isSmartRef__":true,"id":1321},{"__isSmartRef__":true,"id":1334},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1360},{"__isSmartRef__":true,"id":1373},{"__isSmartRef__":true,"id":1386},{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1438}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1451},"derivationIds":[null],"id":"A56782CB-E8DD-4D1C-9826-B4E65E1411E2","renderContextTable":{"__isSmartRef__":true,"id":1457},"eventHandler":{"__isSmartRef__":true,"id":1458},"droppingEnabled":true,"halosEnabled":true,"defaultCellHeight":30,"defaultCellWidth":80,"borderSize":50,"colNames":[null,null,null,null,null,null,null,null,null,null],"numCols":10,"numRows":10,"activeCellContent":"20","rows":[[{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":202},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":228},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":254},{"__isSmartRef__":true,"id":267}],[{"__isSmartRef__":true,"id":280},{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":333},{"__isSmartRef__":true,"id":346},{"__isSmartRef__":true,"id":359},{"__isSmartRef__":true,"id":372},{"__isSmartRef__":true,"id":385},{"__isSmartRef__":true,"id":398}],[{"__isSmartRef__":true,"id":411},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":476},{"__isSmartRef__":true,"id":489},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":528}],[{"__isSmartRef__":true,"id":541},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":567},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":606},{"__isSmartRef__":true,"id":619},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":658}],[{"__isSmartRef__":true,"id":671},{"__isSmartRef__":true,"id":684},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":710},{"__isSmartRef__":true,"id":723},{"__isSmartRef__":true,"id":736},{"__isSmartRef__":true,"id":749},{"__isSmartRef__":true,"id":762},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":788}],[{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":814},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":866},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":892},{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":918}],[{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":944},{"__isSmartRef__":true,"id":957},{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":983},{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":1009},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1035},{"__isSmartRef__":true,"id":1048}],[{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1113},{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1152},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1178}],[{"__isSmartRef__":true,"id":1191},{"__isSmartRef__":true,"id":1204},{"__isSmartRef__":true,"id":1217},{"__isSmartRef__":true,"id":1230},{"__isSmartRef__":true,"id":1243},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1269},{"__isSmartRef__":true,"id":1282},{"__isSmartRef__":true,"id":1295},{"__isSmartRef__":true,"id":1308}],[{"__isSmartRef__":true,"id":1321},{"__isSmartRef__":true,"id":1334},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1360},{"__isSmartRef__":true,"id":1373},{"__isSmartRef__":true,"id":1386},{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1438}]],"dataModel":[],"priorExtent":{"__isSmartRef__":true,"id":1459},"colHeads":[{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":33},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":85},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":137}],"layout":{"__isSmartRef__":true,"id":1460},"isInLayoutCycle":false,"owner":{"__isSmartRef__":true,"id":0},"showsHalos":false,"_Position":{"__isSmartRef__":true,"id":1462},"distanceToDragEvent":{"__isSmartRef__":true,"id":1463},"attributeConnections":[{"__isSmartRef__":true,"id":1464}],"doNotSerialize":["$$activeCell"],"doNotCopyProperties":["$$activeCell"],"activeCell":{"__isSmartRef__":true,"id":306},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1485},"__LivelyClassName__":"lively.morphic.DataGrid","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"18":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19},"derivationIds":[null],"id":"571014A2-ACF9-4FE2-B85C-B51471F7EEAA","renderContextTable":{"__isSmartRef__":true,"id":26},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":27}],"eventHandler":{"__isSmartRef__":true,"id":29},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":30},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":31},"name":"[0]","_Position":{"__isSmartRef__":true,"id":32},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"19":{"_Position":{"__isSmartRef__":true,"id":20},"renderContextTable":{"__isSmartRef__":true,"id":21},"_Extent":{"__isSmartRef__":true,"id":22},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":25},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"20":{"x":0,"y":0,"__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":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"23":{"x":4,"y":2,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"24":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"25":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"26":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"27":{"style":{"__isSmartRef__":true,"id":28},"chunkOwner":{"__isSmartRef__":true,"id":18},"storedString":"[0]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29":{"morph":{"__isSmartRef__":true,"id":18},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"31":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"32":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"33":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":34},"derivationIds":[null],"id":"8789365C-0D17-4576-9128-CA23145275A6","renderContextTable":{"__isSmartRef__":true,"id":39},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":40}],"eventHandler":{"__isSmartRef__":true,"id":42},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":43},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":44},"name":"[1]","_Position":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"34":{"_Position":{"__isSmartRef__":true,"id":35},"renderContextTable":{"__isSmartRef__":true,"id":36},"_Extent":{"__isSmartRef__":true,"id":37},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":38},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"35":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"36":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"37":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"38":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"39":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"40":{"style":{"__isSmartRef__":true,"id":41},"chunkOwner":{"__isSmartRef__":true,"id":33},"storedString":"[1]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42":{"morph":{"__isSmartRef__":true,"id":33},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"44":{"x":1,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"45":{"x":80,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"46":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":47},"derivationIds":[null],"id":"2B3509B9-05A2-40F3-910C-A4E8C019505C","renderContextTable":{"__isSmartRef__":true,"id":52},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":53}],"eventHandler":{"__isSmartRef__":true,"id":55},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":56},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":57},"name":"[2]","_Position":{"__isSmartRef__":true,"id":58},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"47":{"_Position":{"__isSmartRef__":true,"id":48},"renderContextTable":{"__isSmartRef__":true,"id":49},"_Extent":{"__isSmartRef__":true,"id":50},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":51},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"48":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"49":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"50":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"51":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"52":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"53":{"style":{"__isSmartRef__":true,"id":54},"chunkOwner":{"__isSmartRef__":true,"id":46},"storedString":"[2]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"54":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"55":{"morph":{"__isSmartRef__":true,"id":46},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"56":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"57":{"x":2,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"58":{"x":160,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"59":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":60},"derivationIds":[null],"id":"D7CE52DC-8B81-4E86-AFEC-D64961DD6FA1","renderContextTable":{"__isSmartRef__":true,"id":65},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":66}],"eventHandler":{"__isSmartRef__":true,"id":68},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":69},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":70},"name":"[3]","_Position":{"__isSmartRef__":true,"id":71},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"60":{"_Position":{"__isSmartRef__":true,"id":61},"renderContextTable":{"__isSmartRef__":true,"id":62},"_Extent":{"__isSmartRef__":true,"id":63},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":64},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"61":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"62":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"63":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"64":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"65":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"66":{"style":{"__isSmartRef__":true,"id":67},"chunkOwner":{"__isSmartRef__":true,"id":59},"storedString":"[3]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"67":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"68":{"morph":{"__isSmartRef__":true,"id":59},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"69":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"70":{"x":3,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"71":{"x":240,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"72":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":73},"derivationIds":[null],"id":"E461AFA9-2106-4E7A-99FB-34FF6BC0EC64","renderContextTable":{"__isSmartRef__":true,"id":78},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":79}],"eventHandler":{"__isSmartRef__":true,"id":81},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":82},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":83},"name":"[4]","_Position":{"__isSmartRef__":true,"id":84},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"73":{"_Position":{"__isSmartRef__":true,"id":74},"renderContextTable":{"__isSmartRef__":true,"id":75},"_Extent":{"__isSmartRef__":true,"id":76},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":77},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"74":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"75":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"76":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"77":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"78":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"79":{"style":{"__isSmartRef__":true,"id":80},"chunkOwner":{"__isSmartRef__":true,"id":72},"storedString":"[4]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"80":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"81":{"morph":{"__isSmartRef__":true,"id":72},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"82":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"83":{"x":4,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"84":{"x":320,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"85":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":86},"derivationIds":[null],"id":"6E5E54A9-F4AE-4188-8D27-EA9921AFFF0A","renderContextTable":{"__isSmartRef__":true,"id":91},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":92}],"eventHandler":{"__isSmartRef__":true,"id":94},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":95},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":96},"name":"[5]","_Position":{"__isSmartRef__":true,"id":97},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"86":{"_Position":{"__isSmartRef__":true,"id":87},"renderContextTable":{"__isSmartRef__":true,"id":88},"_Extent":{"__isSmartRef__":true,"id":89},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":90},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"87":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"88":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"89":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"90":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"91":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"92":{"style":{"__isSmartRef__":true,"id":93},"chunkOwner":{"__isSmartRef__":true,"id":85},"storedString":"[5]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"93":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"94":{"morph":{"__isSmartRef__":true,"id":85},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"95":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"96":{"x":5,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"97":{"x":400,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"98":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":99},"derivationIds":[null],"id":"5DAC0FC7-992F-4D6F-A7DA-50E0EC45BE6D","renderContextTable":{"__isSmartRef__":true,"id":104},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":105}],"eventHandler":{"__isSmartRef__":true,"id":107},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":108},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":109},"name":"[6]","_Position":{"__isSmartRef__":true,"id":110},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"99":{"_Position":{"__isSmartRef__":true,"id":100},"renderContextTable":{"__isSmartRef__":true,"id":101},"_Extent":{"__isSmartRef__":true,"id":102},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":103},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"100":{"x":0,"y":0,"__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":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"103":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"104":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"105":{"style":{"__isSmartRef__":true,"id":106},"chunkOwner":{"__isSmartRef__":true,"id":98},"storedString":"[6]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"106":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"107":{"morph":{"__isSmartRef__":true,"id":98},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"108":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"109":{"x":6,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"110":{"x":480,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"111":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":112},"derivationIds":[null],"id":"094C7964-97DB-4EFB-92EA-81F7EFE59D26","renderContextTable":{"__isSmartRef__":true,"id":117},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":118}],"eventHandler":{"__isSmartRef__":true,"id":120},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":121},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":122},"name":"[7]","_Position":{"__isSmartRef__":true,"id":123},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"112":{"_Position":{"__isSmartRef__":true,"id":113},"renderContextTable":{"__isSmartRef__":true,"id":114},"_Extent":{"__isSmartRef__":true,"id":115},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":116},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"113":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"114":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"115":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"116":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"117":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"118":{"style":{"__isSmartRef__":true,"id":119},"chunkOwner":{"__isSmartRef__":true,"id":111},"storedString":"[7]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"119":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"120":{"morph":{"__isSmartRef__":true,"id":111},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"121":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"122":{"x":7,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"123":{"x":560,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"124":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":125},"derivationIds":[null],"id":"7D4F6373-317F-42AF-9AC9-1599E10A3892","renderContextTable":{"__isSmartRef__":true,"id":130},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":131}],"eventHandler":{"__isSmartRef__":true,"id":133},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":134},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":135},"name":"[8]","_Position":{"__isSmartRef__":true,"id":136},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"125":{"_Position":{"__isSmartRef__":true,"id":126},"renderContextTable":{"__isSmartRef__":true,"id":127},"_Extent":{"__isSmartRef__":true,"id":128},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":129},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"126":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"127":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"128":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"129":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"130":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"131":{"style":{"__isSmartRef__":true,"id":132},"chunkOwner":{"__isSmartRef__":true,"id":124},"storedString":"[8]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"132":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"133":{"morph":{"__isSmartRef__":true,"id":124},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"134":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"135":{"x":8,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"136":{"x":640,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"137":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":138},"derivationIds":[null],"id":"EFC8C6BE-70A1-48B4-8C08-E220A8541E66","renderContextTable":{"__isSmartRef__":true,"id":143},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":144}],"eventHandler":{"__isSmartRef__":true,"id":146},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":147},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":148},"name":"[9]","_Position":{"__isSmartRef__":true,"id":149},"__LivelyClassName__":"lively.morphic.DataGridColHead","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"138":{"_Position":{"__isSmartRef__":true,"id":139},"renderContextTable":{"__isSmartRef__":true,"id":140},"_Extent":{"__isSmartRef__":true,"id":141},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":142},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"139":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"140":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"141":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"142":{"r":0.8627450980392157,"g":0.8627450980392157,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"143":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"144":{"style":{"__isSmartRef__":true,"id":145},"chunkOwner":{"__isSmartRef__":true,"id":137},"storedString":"[9]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"145":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"146":{"morph":{"__isSmartRef__":true,"id":137},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"147":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"148":{"x":9,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"149":{"x":720,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"150":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":151},"derivationIds":[null],"id":"E8290333-C54E-4C1C-9BDF-F8660DA20CCE","renderContextTable":{"__isSmartRef__":true,"id":156},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":157}],"eventHandler":{"__isSmartRef__":true,"id":159},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":160},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":161},"name":"[0;0]","_Position":{"__isSmartRef__":true,"id":162},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"151":{"_Position":{"__isSmartRef__":true,"id":152},"renderContextTable":{"__isSmartRef__":true,"id":153},"_Extent":{"__isSmartRef__":true,"id":154},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":155},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"152":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"153":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"154":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"155":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"156":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"157":{"style":{"__isSmartRef__":true,"id":158},"chunkOwner":{"__isSmartRef__":true,"id":150},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"158":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"159":{"morph":{"__isSmartRef__":true,"id":150},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"160":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"161":{"x":0,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"162":{"x":0,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"163":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":164},"derivationIds":[null],"id":"D5918D3C-8EEA-4382-98B8-3FBBFD95AC49","renderContextTable":{"__isSmartRef__":true,"id":169},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":170}],"eventHandler":{"__isSmartRef__":true,"id":172},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":173},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":174},"name":"[1;0]","_Position":{"__isSmartRef__":true,"id":175},"previousSelection":[0,2],"priorSelectionRange":[2,2],"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"164":{"_Position":{"__isSmartRef__":true,"id":165},"renderContextTable":{"__isSmartRef__":true,"id":166},"_Extent":{"__isSmartRef__":true,"id":167},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":168},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"165":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"166":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"167":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"168":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"169":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"170":{"style":{"__isSmartRef__":true,"id":171},"chunkOwner":{"__isSmartRef__":true,"id":163},"storedString":"20","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"171":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"172":{"morph":{"__isSmartRef__":true,"id":163},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"173":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"174":{"x":1,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"175":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"176":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":177},"derivationIds":[null],"id":"AEB19CA1-113C-4732-A476-A567B7DAFA92","renderContextTable":{"__isSmartRef__":true,"id":182},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":183}],"eventHandler":{"__isSmartRef__":true,"id":185},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":186},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":187},"name":"[2;0]","_Position":{"__isSmartRef__":true,"id":188},"priorSelectionRange":[0,0],"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"177":{"_Position":{"__isSmartRef__":true,"id":178},"renderContextTable":{"__isSmartRef__":true,"id":179},"_Extent":{"__isSmartRef__":true,"id":180},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":181},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"178":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"179":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"180":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"181":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"182":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"183":{"style":{"__isSmartRef__":true,"id":184},"chunkOwner":{"__isSmartRef__":true,"id":176},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"184":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"185":{"morph":{"__isSmartRef__":true,"id":176},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"186":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"187":{"x":2,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"188":{"x":160,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"189":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":190},"derivationIds":[null],"id":"0E7F1316-8511-4D5D-ABAC-CDD0ABC22CAD","renderContextTable":{"__isSmartRef__":true,"id":195},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":196}],"eventHandler":{"__isSmartRef__":true,"id":198},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":199},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":200},"name":"[3;0]","_Position":{"__isSmartRef__":true,"id":201},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"190":{"_Position":{"__isSmartRef__":true,"id":191},"renderContextTable":{"__isSmartRef__":true,"id":192},"_Extent":{"__isSmartRef__":true,"id":193},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":194},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"191":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"192":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"193":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"194":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"195":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"196":{"style":{"__isSmartRef__":true,"id":197},"chunkOwner":{"__isSmartRef__":true,"id":189},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"197":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"198":{"morph":{"__isSmartRef__":true,"id":189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"199":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"200":{"x":3,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"201":{"x":240,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"202":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":203},"derivationIds":[null],"id":"C45A072E-5FCA-4FF3-ACBF-AE3EA4F30AAA","renderContextTable":{"__isSmartRef__":true,"id":208},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":209}],"eventHandler":{"__isSmartRef__":true,"id":211},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":212},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":213},"name":"[4;0]","_Position":{"__isSmartRef__":true,"id":214},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"203":{"_Position":{"__isSmartRef__":true,"id":204},"renderContextTable":{"__isSmartRef__":true,"id":205},"_Extent":{"__isSmartRef__":true,"id":206},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":207},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"204":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"207":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"208":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"209":{"style":{"__isSmartRef__":true,"id":210},"chunkOwner":{"__isSmartRef__":true,"id":202},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"210":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"211":{"morph":{"__isSmartRef__":true,"id":202},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"212":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"213":{"x":4,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"214":{"x":320,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"215":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":216},"derivationIds":[null],"id":"B787293E-12E1-4E2C-9AE1-CD622435D899","renderContextTable":{"__isSmartRef__":true,"id":221},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":222}],"eventHandler":{"__isSmartRef__":true,"id":224},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":225},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":226},"name":"[5;0]","_Position":{"__isSmartRef__":true,"id":227},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"216":{"_Position":{"__isSmartRef__":true,"id":217},"renderContextTable":{"__isSmartRef__":true,"id":218},"_Extent":{"__isSmartRef__":true,"id":219},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":220},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"217":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"218":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"219":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"220":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"221":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"222":{"style":{"__isSmartRef__":true,"id":223},"chunkOwner":{"__isSmartRef__":true,"id":215},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"223":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"224":{"morph":{"__isSmartRef__":true,"id":215},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"225":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"226":{"x":5,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"227":{"x":400,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"228":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":229},"derivationIds":[null],"id":"7836F2DB-320C-4561-A5FB-E4F6E5306FFA","renderContextTable":{"__isSmartRef__":true,"id":234},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":235}],"eventHandler":{"__isSmartRef__":true,"id":237},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":238},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":239},"name":"[6;0]","_Position":{"__isSmartRef__":true,"id":240},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"229":{"_Position":{"__isSmartRef__":true,"id":230},"renderContextTable":{"__isSmartRef__":true,"id":231},"_Extent":{"__isSmartRef__":true,"id":232},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":233},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"230":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"231":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"232":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"233":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"234":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"235":{"style":{"__isSmartRef__":true,"id":236},"chunkOwner":{"__isSmartRef__":true,"id":228},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"236":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"237":{"morph":{"__isSmartRef__":true,"id":228},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"238":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"239":{"x":6,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"240":{"x":480,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"241":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":242},"derivationIds":[null],"id":"6F696B1F-191F-4EDD-AC37-4297EA7D4DFC","renderContextTable":{"__isSmartRef__":true,"id":247},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":248}],"eventHandler":{"__isSmartRef__":true,"id":250},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":251},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":252},"name":"[7;0]","_Position":{"__isSmartRef__":true,"id":253},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"242":{"_Position":{"__isSmartRef__":true,"id":243},"renderContextTable":{"__isSmartRef__":true,"id":244},"_Extent":{"__isSmartRef__":true,"id":245},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":246},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"243":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"244":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"245":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"246":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"247":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"248":{"style":{"__isSmartRef__":true,"id":249},"chunkOwner":{"__isSmartRef__":true,"id":241},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"249":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"250":{"morph":{"__isSmartRef__":true,"id":241},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"251":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"252":{"x":7,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"253":{"x":560,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"254":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":255},"derivationIds":[null],"id":"9ABA14B6-39B2-4C36-A6CC-8267A18A3EA1","renderContextTable":{"__isSmartRef__":true,"id":260},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":261}],"eventHandler":{"__isSmartRef__":true,"id":263},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":264},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":265},"name":"[8;0]","_Position":{"__isSmartRef__":true,"id":266},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"255":{"_Position":{"__isSmartRef__":true,"id":256},"renderContextTable":{"__isSmartRef__":true,"id":257},"_Extent":{"__isSmartRef__":true,"id":258},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":259},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"256":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"257":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"258":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"259":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"261":{"style":{"__isSmartRef__":true,"id":262},"chunkOwner":{"__isSmartRef__":true,"id":254},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"262":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"263":{"morph":{"__isSmartRef__":true,"id":254},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"264":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"265":{"x":8,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"266":{"x":640,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"267":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":268},"derivationIds":[null],"id":"9BD6A1FD-0831-4AF8-BFCA-757ABA763DC0","renderContextTable":{"__isSmartRef__":true,"id":273},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":274}],"eventHandler":{"__isSmartRef__":true,"id":276},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":277},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":278},"name":"[9;0]","_Position":{"__isSmartRef__":true,"id":279},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"268":{"_Position":{"__isSmartRef__":true,"id":269},"renderContextTable":{"__isSmartRef__":true,"id":270},"_Extent":{"__isSmartRef__":true,"id":271},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":272},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"269":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"270":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"271":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"272":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"273":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"274":{"style":{"__isSmartRef__":true,"id":275},"chunkOwner":{"__isSmartRef__":true,"id":267},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"275":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"276":{"morph":{"__isSmartRef__":true,"id":267},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"277":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"278":{"x":9,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"279":{"x":720,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"280":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":281},"derivationIds":[null],"id":"6EABB410-B4F7-4D47-8FFC-D87FAF6853B8","renderContextTable":{"__isSmartRef__":true,"id":286},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":287}],"eventHandler":{"__isSmartRef__":true,"id":289},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":290},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":291},"name":"[0;1]","_Position":{"__isSmartRef__":true,"id":292},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"281":{"_Position":{"__isSmartRef__":true,"id":282},"renderContextTable":{"__isSmartRef__":true,"id":283},"_Extent":{"__isSmartRef__":true,"id":284},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":285},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"282":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"283":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"284":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"285":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"286":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"287":{"style":{"__isSmartRef__":true,"id":288},"chunkOwner":{"__isSmartRef__":true,"id":280},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"288":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"289":{"morph":{"__isSmartRef__":true,"id":280},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"290":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"291":{"x":0,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"292":{"x":0,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"293":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":294},"derivationIds":[null],"id":"5F791791-D774-4E44-B9C9-5BDB33762819","renderContextTable":{"__isSmartRef__":true,"id":299},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":300}],"eventHandler":{"__isSmartRef__":true,"id":302},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":303},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":304},"name":"[1;1]","_Position":{"__isSmartRef__":true,"id":305},"showsHalos":false,"priorSelectionRange":[0,0],"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"294":{"_Position":{"__isSmartRef__":true,"id":295},"renderContextTable":{"__isSmartRef__":true,"id":296},"_Extent":{"__isSmartRef__":true,"id":297},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":298},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"295":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"296":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"297":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"298":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"299":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"300":{"style":{"__isSmartRef__":true,"id":301},"chunkOwner":{"__isSmartRef__":true,"id":293},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"301":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"302":{"morph":{"__isSmartRef__":true,"id":293},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"303":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"304":{"x":1,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"305":{"x":80,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"306":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":307},"derivationIds":[null],"id":"3B34C230-D44E-438D-BF06-B005E3D953B7","renderContextTable":{"__isSmartRef__":true,"id":313},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":314}],"eventHandler":{"__isSmartRef__":true,"id":316},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"evalExpression":"cell(1,0)+cell(1,1)","doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":317},"_MaxTextWidth":68,"_MinTextWidth":68,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":318},"name":"[2;1]","_Position":{"__isSmartRef__":true,"id":319},"priorSelectionRange":[2,2],"previousSelection":[6,6],"isBeingDragged":false,"charsReplaced":"","lastFindLoc":11,"showsHalos":false,"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"307":{"_Position":{"__isSmartRef__":true,"id":308},"renderContextTable":{"__isSmartRef__":true,"id":309},"_Extent":{"__isSmartRef__":true,"id":310},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":311},"_Fill":{"__isSmartRef__":true,"id":312},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"308":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"309":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"310":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"311":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"312":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"313":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"314":{"style":{"__isSmartRef__":true,"id":315},"chunkOwner":{"__isSmartRef__":true,"id":306},"storedString":"=cell(1,0)+cell(1,1)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"315":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"316":{"morph":{"__isSmartRef__":true,"id":306},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"317":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"318":{"x":2,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"319":{"x":160,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"320":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":321},"derivationIds":[null],"id":"B85B7514-8586-493E-B86E-AB9054AAE70A","renderContextTable":{"__isSmartRef__":true,"id":326},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":327}],"eventHandler":{"__isSmartRef__":true,"id":329},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":330},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":331},"name":"[3;1]","_Position":{"__isSmartRef__":true,"id":332},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"321":{"_Position":{"__isSmartRef__":true,"id":322},"renderContextTable":{"__isSmartRef__":true,"id":323},"_Extent":{"__isSmartRef__":true,"id":324},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":325},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"322":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"323":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"324":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"325":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"326":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"327":{"style":{"__isSmartRef__":true,"id":328},"chunkOwner":{"__isSmartRef__":true,"id":320},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"328":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"329":{"morph":{"__isSmartRef__":true,"id":320},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"330":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"331":{"x":3,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"332":{"x":240,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"333":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":334},"derivationIds":[null],"id":"192DCD09-F052-4EB3-AA53-38F1281A132A","renderContextTable":{"__isSmartRef__":true,"id":339},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":340}],"eventHandler":{"__isSmartRef__":true,"id":342},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":343},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":344},"name":"[4;1]","_Position":{"__isSmartRef__":true,"id":345},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"334":{"_Position":{"__isSmartRef__":true,"id":335},"renderContextTable":{"__isSmartRef__":true,"id":336},"_Extent":{"__isSmartRef__":true,"id":337},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":338},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"335":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"338":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"339":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"340":{"style":{"__isSmartRef__":true,"id":341},"chunkOwner":{"__isSmartRef__":true,"id":333},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"341":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"342":{"morph":{"__isSmartRef__":true,"id":333},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"343":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"344":{"x":4,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"345":{"x":320,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"346":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":347},"derivationIds":[null],"id":"AC2642B7-B812-42F6-9F93-C8FAB005EB90","renderContextTable":{"__isSmartRef__":true,"id":352},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":353}],"eventHandler":{"__isSmartRef__":true,"id":355},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":356},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":357},"name":"[5;1]","_Position":{"__isSmartRef__":true,"id":358},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"347":{"_Position":{"__isSmartRef__":true,"id":348},"renderContextTable":{"__isSmartRef__":true,"id":349},"_Extent":{"__isSmartRef__":true,"id":350},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":351},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"348":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"351":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"352":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"353":{"style":{"__isSmartRef__":true,"id":354},"chunkOwner":{"__isSmartRef__":true,"id":346},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"354":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"355":{"morph":{"__isSmartRef__":true,"id":346},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"356":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"357":{"x":5,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"358":{"x":400,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"359":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":360},"derivationIds":[null],"id":"CB7C3BD0-3C38-4EA5-BA28-243DA7B789B5","renderContextTable":{"__isSmartRef__":true,"id":365},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":366}],"eventHandler":{"__isSmartRef__":true,"id":368},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":369},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":370},"name":"[6;1]","_Position":{"__isSmartRef__":true,"id":371},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"360":{"_Position":{"__isSmartRef__":true,"id":361},"renderContextTable":{"__isSmartRef__":true,"id":362},"_Extent":{"__isSmartRef__":true,"id":363},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":364},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"361":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"362":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"363":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"364":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"365":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"366":{"style":{"__isSmartRef__":true,"id":367},"chunkOwner":{"__isSmartRef__":true,"id":359},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"367":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"368":{"morph":{"__isSmartRef__":true,"id":359},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"369":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"370":{"x":6,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"371":{"x":480,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"372":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":373},"derivationIds":[null],"id":"6EFEEBD8-2B31-44D0-8275-A3A146AD54EC","renderContextTable":{"__isSmartRef__":true,"id":378},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":379}],"eventHandler":{"__isSmartRef__":true,"id":381},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":382},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":383},"name":"[7;1]","_Position":{"__isSmartRef__":true,"id":384},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"373":{"_Position":{"__isSmartRef__":true,"id":374},"renderContextTable":{"__isSmartRef__":true,"id":375},"_Extent":{"__isSmartRef__":true,"id":376},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":377},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"374":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"375":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"376":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"377":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"378":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"379":{"style":{"__isSmartRef__":true,"id":380},"chunkOwner":{"__isSmartRef__":true,"id":372},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"380":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"381":{"morph":{"__isSmartRef__":true,"id":372},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"382":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"383":{"x":7,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"384":{"x":560,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"385":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":386},"derivationIds":[null],"id":"5994AEAD-E2D9-43B2-B949-DE2B9603107D","renderContextTable":{"__isSmartRef__":true,"id":391},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":392}],"eventHandler":{"__isSmartRef__":true,"id":394},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":395},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":396},"name":"[8;1]","_Position":{"__isSmartRef__":true,"id":397},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"386":{"_Position":{"__isSmartRef__":true,"id":387},"renderContextTable":{"__isSmartRef__":true,"id":388},"_Extent":{"__isSmartRef__":true,"id":389},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":390},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"387":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"388":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"389":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"390":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"391":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"392":{"style":{"__isSmartRef__":true,"id":393},"chunkOwner":{"__isSmartRef__":true,"id":385},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"393":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"394":{"morph":{"__isSmartRef__":true,"id":385},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"395":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"396":{"x":8,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"397":{"x":640,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"398":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":399},"derivationIds":[null],"id":"4ADF84B7-E6FA-4527-A688-A687BF23B7DC","renderContextTable":{"__isSmartRef__":true,"id":404},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":405}],"eventHandler":{"__isSmartRef__":true,"id":407},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":408},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":409},"name":"[9;1]","_Position":{"__isSmartRef__":true,"id":410},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"399":{"_Position":{"__isSmartRef__":true,"id":400},"renderContextTable":{"__isSmartRef__":true,"id":401},"_Extent":{"__isSmartRef__":true,"id":402},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":403},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"400":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"401":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"402":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"403":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"404":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"405":{"style":{"__isSmartRef__":true,"id":406},"chunkOwner":{"__isSmartRef__":true,"id":398},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"406":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"407":{"morph":{"__isSmartRef__":true,"id":398},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"408":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"409":{"x":9,"y":2,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"410":{"x":720,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"411":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":412},"derivationIds":[null],"id":"A2C15EDD-C1ED-4003-BA28-AD3C705BD0A8","renderContextTable":{"__isSmartRef__":true,"id":417},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":418}],"eventHandler":{"__isSmartRef__":true,"id":420},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":421},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":422},"name":"[0;2]","_Position":{"__isSmartRef__":true,"id":423},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"412":{"_Position":{"__isSmartRef__":true,"id":413},"renderContextTable":{"__isSmartRef__":true,"id":414},"_Extent":{"__isSmartRef__":true,"id":415},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":416},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"413":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"414":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"415":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"416":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"417":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"418":{"style":{"__isSmartRef__":true,"id":419},"chunkOwner":{"__isSmartRef__":true,"id":411},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"419":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"420":{"morph":{"__isSmartRef__":true,"id":411},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"421":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"422":{"x":0,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"423":{"x":0,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"424":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":425},"derivationIds":[null],"id":"2D53AA71-5AD6-466E-8F1D-8DF2297FA6EF","renderContextTable":{"__isSmartRef__":true,"id":430},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":431}],"eventHandler":{"__isSmartRef__":true,"id":433},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":434},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":435},"name":"[1;2]","_Position":{"__isSmartRef__":true,"id":436},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"425":{"_Position":{"__isSmartRef__":true,"id":426},"renderContextTable":{"__isSmartRef__":true,"id":427},"_Extent":{"__isSmartRef__":true,"id":428},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"426":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"427":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"428":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"429":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"430":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"431":{"style":{"__isSmartRef__":true,"id":432},"chunkOwner":{"__isSmartRef__":true,"id":424},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"432":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"433":{"morph":{"__isSmartRef__":true,"id":424},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"434":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"435":{"x":1,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"436":{"x":80,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"437":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":438},"derivationIds":[null],"id":"7565CB09-F948-4F40-8385-36B34D1374D9","renderContextTable":{"__isSmartRef__":true,"id":443},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":444}],"eventHandler":{"__isSmartRef__":true,"id":446},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":447},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":448},"name":"[2;2]","_Position":{"__isSmartRef__":true,"id":449},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"438":{"_Position":{"__isSmartRef__":true,"id":439},"renderContextTable":{"__isSmartRef__":true,"id":440},"_Extent":{"__isSmartRef__":true,"id":441},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":442},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"439":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"440":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"441":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"442":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"443":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"444":{"style":{"__isSmartRef__":true,"id":445},"chunkOwner":{"__isSmartRef__":true,"id":437},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"445":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"446":{"morph":{"__isSmartRef__":true,"id":437},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"447":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"448":{"x":2,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"449":{"x":160,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"450":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":451},"derivationIds":[null],"id":"98E7A5B6-C6B4-44F7-9A09-6E7844203874","renderContextTable":{"__isSmartRef__":true,"id":456},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":457}],"eventHandler":{"__isSmartRef__":true,"id":459},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":460},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":461},"name":"[3;2]","_Position":{"__isSmartRef__":true,"id":462},"priorSelectionRange":[0,0],"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"451":{"_Position":{"__isSmartRef__":true,"id":452},"renderContextTable":{"__isSmartRef__":true,"id":453},"_Extent":{"__isSmartRef__":true,"id":454},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":455},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"452":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"453":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"454":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"455":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"456":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"457":{"style":{"__isSmartRef__":true,"id":458},"chunkOwner":{"__isSmartRef__":true,"id":450},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"458":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"459":{"morph":{"__isSmartRef__":true,"id":450},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"460":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"461":{"x":3,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"462":{"x":240,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"463":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":464},"derivationIds":[null],"id":"EF4DDBD0-DC20-442B-8B30-CB12B67D3AC8","renderContextTable":{"__isSmartRef__":true,"id":469},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":470}],"eventHandler":{"__isSmartRef__":true,"id":472},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":473},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":474},"name":"[4;2]","_Position":{"__isSmartRef__":true,"id":475},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"464":{"_Position":{"__isSmartRef__":true,"id":465},"renderContextTable":{"__isSmartRef__":true,"id":466},"_Extent":{"__isSmartRef__":true,"id":467},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":468},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"465":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"466":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"467":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"468":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"469":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"470":{"style":{"__isSmartRef__":true,"id":471},"chunkOwner":{"__isSmartRef__":true,"id":463},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"471":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"472":{"morph":{"__isSmartRef__":true,"id":463},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"473":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"474":{"x":4,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"475":{"x":320,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"476":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":477},"derivationIds":[null],"id":"3F0D1E3C-7EC6-48EB-B4E7-03F67530D598","renderContextTable":{"__isSmartRef__":true,"id":482},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":483}],"eventHandler":{"__isSmartRef__":true,"id":485},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":486},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":487},"name":"[5;2]","_Position":{"__isSmartRef__":true,"id":488},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"477":{"_Position":{"__isSmartRef__":true,"id":478},"renderContextTable":{"__isSmartRef__":true,"id":479},"_Extent":{"__isSmartRef__":true,"id":480},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":481},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"478":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"479":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"480":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"481":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"482":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"483":{"style":{"__isSmartRef__":true,"id":484},"chunkOwner":{"__isSmartRef__":true,"id":476},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"484":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"485":{"morph":{"__isSmartRef__":true,"id":476},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"486":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"487":{"x":5,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"488":{"x":400,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"489":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":490},"derivationIds":[null],"id":"B7604493-B826-4C76-BDE7-433754A458F7","renderContextTable":{"__isSmartRef__":true,"id":495},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":496}],"eventHandler":{"__isSmartRef__":true,"id":498},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":499},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":500},"name":"[6;2]","_Position":{"__isSmartRef__":true,"id":501},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"490":{"_Position":{"__isSmartRef__":true,"id":491},"renderContextTable":{"__isSmartRef__":true,"id":492},"_Extent":{"__isSmartRef__":true,"id":493},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":494},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"491":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"492":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"493":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"494":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"495":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"496":{"style":{"__isSmartRef__":true,"id":497},"chunkOwner":{"__isSmartRef__":true,"id":489},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"497":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"498":{"morph":{"__isSmartRef__":true,"id":489},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"499":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"500":{"x":6,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"501":{"x":480,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"502":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":503},"derivationIds":[null],"id":"A50CB2C4-D0E7-47A0-9856-013223C479CC","renderContextTable":{"__isSmartRef__":true,"id":508},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":509}],"eventHandler":{"__isSmartRef__":true,"id":511},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":512},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":513},"name":"[7;2]","_Position":{"__isSmartRef__":true,"id":514},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"503":{"_Position":{"__isSmartRef__":true,"id":504},"renderContextTable":{"__isSmartRef__":true,"id":505},"_Extent":{"__isSmartRef__":true,"id":506},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":507},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"504":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"505":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"506":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"507":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"508":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"509":{"style":{"__isSmartRef__":true,"id":510},"chunkOwner":{"__isSmartRef__":true,"id":502},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"510":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"511":{"morph":{"__isSmartRef__":true,"id":502},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"512":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"513":{"x":7,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"514":{"x":560,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"515":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":516},"derivationIds":[null],"id":"E89D066D-43FD-4F2D-952C-3C0EC13FEDFC","renderContextTable":{"__isSmartRef__":true,"id":521},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":522}],"eventHandler":{"__isSmartRef__":true,"id":524},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":525},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":526},"name":"[8;2]","_Position":{"__isSmartRef__":true,"id":527},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"516":{"_Position":{"__isSmartRef__":true,"id":517},"renderContextTable":{"__isSmartRef__":true,"id":518},"_Extent":{"__isSmartRef__":true,"id":519},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":520},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"517":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"518":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"519":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"520":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"521":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"522":{"style":{"__isSmartRef__":true,"id":523},"chunkOwner":{"__isSmartRef__":true,"id":515},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"523":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"524":{"morph":{"__isSmartRef__":true,"id":515},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"525":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"526":{"x":8,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"527":{"x":640,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"528":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":529},"derivationIds":[null],"id":"1DBE61AC-DC90-4191-B62A-65385C68AC27","renderContextTable":{"__isSmartRef__":true,"id":534},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":535}],"eventHandler":{"__isSmartRef__":true,"id":537},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":538},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":539},"name":"[9;2]","_Position":{"__isSmartRef__":true,"id":540},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"529":{"_Position":{"__isSmartRef__":true,"id":530},"renderContextTable":{"__isSmartRef__":true,"id":531},"_Extent":{"__isSmartRef__":true,"id":532},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":533},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"530":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"531":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"532":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"533":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"534":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"535":{"style":{"__isSmartRef__":true,"id":536},"chunkOwner":{"__isSmartRef__":true,"id":528},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"536":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"537":{"morph":{"__isSmartRef__":true,"id":528},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"538":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"539":{"x":9,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"540":{"x":720,"y":90,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"541":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":542},"derivationIds":[null],"id":"971D6767-A1FC-4A10-93C8-5C6BF4DB1243","renderContextTable":{"__isSmartRef__":true,"id":547},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":548}],"eventHandler":{"__isSmartRef__":true,"id":550},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":551},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":552},"name":"[0;3]","_Position":{"__isSmartRef__":true,"id":553},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"542":{"_Position":{"__isSmartRef__":true,"id":543},"renderContextTable":{"__isSmartRef__":true,"id":544},"_Extent":{"__isSmartRef__":true,"id":545},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":546},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"543":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"544":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"545":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"546":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"547":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"548":{"style":{"__isSmartRef__":true,"id":549},"chunkOwner":{"__isSmartRef__":true,"id":541},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"549":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"550":{"morph":{"__isSmartRef__":true,"id":541},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"551":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"552":{"x":0,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"553":{"x":0,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"554":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":555},"derivationIds":[null],"id":"AAB5CFF9-354D-4C4A-95C3-E1341DC365F7","renderContextTable":{"__isSmartRef__":true,"id":560},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":561}],"eventHandler":{"__isSmartRef__":true,"id":563},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":564},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":565},"name":"[1;3]","_Position":{"__isSmartRef__":true,"id":566},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"555":{"_Position":{"__isSmartRef__":true,"id":556},"renderContextTable":{"__isSmartRef__":true,"id":557},"_Extent":{"__isSmartRef__":true,"id":558},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":559},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"556":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"557":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"558":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"559":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"560":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"561":{"style":{"__isSmartRef__":true,"id":562},"chunkOwner":{"__isSmartRef__":true,"id":554},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"562":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"563":{"morph":{"__isSmartRef__":true,"id":554},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"564":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"565":{"x":1,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"566":{"x":80,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"567":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":568},"derivationIds":[null],"id":"F12219DC-E147-4B28-A92B-77FC3EAE3991","renderContextTable":{"__isSmartRef__":true,"id":573},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":574}],"eventHandler":{"__isSmartRef__":true,"id":576},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":577},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":578},"name":"[2;3]","_Position":{"__isSmartRef__":true,"id":579},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"568":{"_Position":{"__isSmartRef__":true,"id":569},"renderContextTable":{"__isSmartRef__":true,"id":570},"_Extent":{"__isSmartRef__":true,"id":571},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":572},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"569":{"x":0,"y":0,"__LivelyClassName__":"Point","__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":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"572":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"573":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"574":{"style":{"__isSmartRef__":true,"id":575},"chunkOwner":{"__isSmartRef__":true,"id":567},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"575":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"576":{"morph":{"__isSmartRef__":true,"id":567},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"577":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"578":{"x":2,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"579":{"x":160,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"580":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":581},"derivationIds":[null],"id":"DA32FE15-55F2-46F1-BC88-7C89A58866BF","renderContextTable":{"__isSmartRef__":true,"id":586},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":587}],"eventHandler":{"__isSmartRef__":true,"id":589},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":590},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":591},"name":"[3;3]","_Position":{"__isSmartRef__":true,"id":592},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"581":{"_Position":{"__isSmartRef__":true,"id":582},"renderContextTable":{"__isSmartRef__":true,"id":583},"_Extent":{"__isSmartRef__":true,"id":584},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":585},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"582":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"583":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"584":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"585":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"586":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"587":{"style":{"__isSmartRef__":true,"id":588},"chunkOwner":{"__isSmartRef__":true,"id":580},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"588":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"589":{"morph":{"__isSmartRef__":true,"id":580},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"590":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"591":{"x":3,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"592":{"x":240,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"593":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":594},"derivationIds":[null],"id":"35D38A69-0D38-4873-92C6-9BDE7DD49EDA","renderContextTable":{"__isSmartRef__":true,"id":599},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":600}],"eventHandler":{"__isSmartRef__":true,"id":602},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":603},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":604},"name":"[4;3]","_Position":{"__isSmartRef__":true,"id":605},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"594":{"_Position":{"__isSmartRef__":true,"id":595},"renderContextTable":{"__isSmartRef__":true,"id":596},"_Extent":{"__isSmartRef__":true,"id":597},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":598},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"595":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"596":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"597":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"598":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"599":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"600":{"style":{"__isSmartRef__":true,"id":601},"chunkOwner":{"__isSmartRef__":true,"id":593},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"601":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"602":{"morph":{"__isSmartRef__":true,"id":593},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"603":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"604":{"x":4,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"605":{"x":320,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"606":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":607},"derivationIds":[null],"id":"828825D3-9B92-473E-A73A-6BA57423B3EB","renderContextTable":{"__isSmartRef__":true,"id":612},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":613}],"eventHandler":{"__isSmartRef__":true,"id":615},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":616},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":617},"name":"[5;3]","_Position":{"__isSmartRef__":true,"id":618},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"607":{"_Position":{"__isSmartRef__":true,"id":608},"renderContextTable":{"__isSmartRef__":true,"id":609},"_Extent":{"__isSmartRef__":true,"id":610},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":611},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"608":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"609":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"610":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"611":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"612":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"613":{"style":{"__isSmartRef__":true,"id":614},"chunkOwner":{"__isSmartRef__":true,"id":606},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"614":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"615":{"morph":{"__isSmartRef__":true,"id":606},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"616":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"617":{"x":5,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"618":{"x":400,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"619":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":620},"derivationIds":[null],"id":"0CD7EABB-A94E-441C-9723-5DDE4C99ABBE","renderContextTable":{"__isSmartRef__":true,"id":625},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":626}],"eventHandler":{"__isSmartRef__":true,"id":628},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":629},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":630},"name":"[6;3]","_Position":{"__isSmartRef__":true,"id":631},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"620":{"_Position":{"__isSmartRef__":true,"id":621},"renderContextTable":{"__isSmartRef__":true,"id":622},"_Extent":{"__isSmartRef__":true,"id":623},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":624},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"621":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"622":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"623":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"624":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"625":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"626":{"style":{"__isSmartRef__":true,"id":627},"chunkOwner":{"__isSmartRef__":true,"id":619},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"627":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"628":{"morph":{"__isSmartRef__":true,"id":619},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"629":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"630":{"x":6,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"631":{"x":480,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"632":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":633},"derivationIds":[null],"id":"D84E826D-F4A6-4D8C-830B-875709779FBD","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":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":642},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":643},"name":"[7;3]","_Position":{"__isSmartRef__":true,"id":644},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"633":{"_Position":{"__isSmartRef__":true,"id":634},"renderContextTable":{"__isSmartRef__":true,"id":635},"_Extent":{"__isSmartRef__":true,"id":636},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":637},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"634":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"635":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"636":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"637":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"638":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"639":{"style":{"__isSmartRef__":true,"id":640},"chunkOwner":{"__isSmartRef__":true,"id":632},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"640":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"641":{"morph":{"__isSmartRef__":true,"id":632},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"642":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"643":{"x":7,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"644":{"x":560,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"645":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":646},"derivationIds":[null],"id":"1E485671-FCA0-484C-85C1-1A4CC058DAA1","renderContextTable":{"__isSmartRef__":true,"id":651},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":652}],"eventHandler":{"__isSmartRef__":true,"id":654},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":655},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":656},"name":"[8;3]","_Position":{"__isSmartRef__":true,"id":657},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"646":{"_Position":{"__isSmartRef__":true,"id":647},"renderContextTable":{"__isSmartRef__":true,"id":648},"_Extent":{"__isSmartRef__":true,"id":649},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":650},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"647":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"648":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"649":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"650":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"651":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"652":{"style":{"__isSmartRef__":true,"id":653},"chunkOwner":{"__isSmartRef__":true,"id":645},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"653":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"654":{"morph":{"__isSmartRef__":true,"id":645},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"655":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"656":{"x":8,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"657":{"x":640,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"658":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":659},"derivationIds":[null],"id":"F0EAA1B3-B320-4A44-ABFE-BE1A2DA2139D","renderContextTable":{"__isSmartRef__":true,"id":664},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":665}],"eventHandler":{"__isSmartRef__":true,"id":667},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":668},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":669},"name":"[9;3]","_Position":{"__isSmartRef__":true,"id":670},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"659":{"_Position":{"__isSmartRef__":true,"id":660},"renderContextTable":{"__isSmartRef__":true,"id":661},"_Extent":{"__isSmartRef__":true,"id":662},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":663},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"660":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"661":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"662":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"663":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"664":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"665":{"style":{"__isSmartRef__":true,"id":666},"chunkOwner":{"__isSmartRef__":true,"id":658},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"666":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"667":{"morph":{"__isSmartRef__":true,"id":658},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"668":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"669":{"x":9,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"670":{"x":720,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"671":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":672},"derivationIds":[null],"id":"1EBD90F2-348F-4072-8CF8-E38DCCEB1D37","renderContextTable":{"__isSmartRef__":true,"id":677},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":678}],"eventHandler":{"__isSmartRef__":true,"id":680},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":681},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":682},"name":"[0;4]","_Position":{"__isSmartRef__":true,"id":683},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"672":{"_Position":{"__isSmartRef__":true,"id":673},"renderContextTable":{"__isSmartRef__":true,"id":674},"_Extent":{"__isSmartRef__":true,"id":675},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":676},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"673":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"674":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"675":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"676":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"677":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"678":{"style":{"__isSmartRef__":true,"id":679},"chunkOwner":{"__isSmartRef__":true,"id":671},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"679":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"680":{"morph":{"__isSmartRef__":true,"id":671},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"681":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"682":{"x":0,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"683":{"x":0,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"684":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":685},"derivationIds":[null],"id":"9EEAC6AE-D372-4805-ABB5-865CD93A69EA","renderContextTable":{"__isSmartRef__":true,"id":690},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":691}],"eventHandler":{"__isSmartRef__":true,"id":693},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":694},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":695},"name":"[1;4]","_Position":{"__isSmartRef__":true,"id":696},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"685":{"_Position":{"__isSmartRef__":true,"id":686},"renderContextTable":{"__isSmartRef__":true,"id":687},"_Extent":{"__isSmartRef__":true,"id":688},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":689},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"686":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"687":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"688":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"689":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"690":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"691":{"style":{"__isSmartRef__":true,"id":692},"chunkOwner":{"__isSmartRef__":true,"id":684},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"692":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"693":{"morph":{"__isSmartRef__":true,"id":684},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"694":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"695":{"x":1,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"696":{"x":80,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"697":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":698},"derivationIds":[null],"id":"D50DBD2E-75F9-4FE8-8446-051FDD51ADF4","renderContextTable":{"__isSmartRef__":true,"id":703},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":704}],"eventHandler":{"__isSmartRef__":true,"id":706},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":707},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":708},"name":"[2;4]","_Position":{"__isSmartRef__":true,"id":709},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"698":{"_Position":{"__isSmartRef__":true,"id":699},"renderContextTable":{"__isSmartRef__":true,"id":700},"_Extent":{"__isSmartRef__":true,"id":701},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":702},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"699":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"700":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"701":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"702":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"703":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"704":{"style":{"__isSmartRef__":true,"id":705},"chunkOwner":{"__isSmartRef__":true,"id":697},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"705":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"706":{"morph":{"__isSmartRef__":true,"id":697},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"707":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"708":{"x":2,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"709":{"x":160,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"710":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":711},"derivationIds":[null],"id":"FDC09D09-29BF-4D9B-93BF-13BEB08AA6F7","renderContextTable":{"__isSmartRef__":true,"id":716},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":717}],"eventHandler":{"__isSmartRef__":true,"id":719},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":720},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":721},"name":"[3;4]","_Position":{"__isSmartRef__":true,"id":722},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"711":{"_Position":{"__isSmartRef__":true,"id":712},"renderContextTable":{"__isSmartRef__":true,"id":713},"_Extent":{"__isSmartRef__":true,"id":714},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":715},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"712":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"713":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"714":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"715":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"716":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"717":{"style":{"__isSmartRef__":true,"id":718},"chunkOwner":{"__isSmartRef__":true,"id":710},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"718":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"719":{"morph":{"__isSmartRef__":true,"id":710},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"720":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"721":{"x":3,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"722":{"x":240,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"723":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":724},"derivationIds":[null],"id":"E6F68E2E-9828-4830-BBC8-1562F4165A21","renderContextTable":{"__isSmartRef__":true,"id":729},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":730}],"eventHandler":{"__isSmartRef__":true,"id":732},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":733},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":734},"name":"[4;4]","_Position":{"__isSmartRef__":true,"id":735},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"724":{"_Position":{"__isSmartRef__":true,"id":725},"renderContextTable":{"__isSmartRef__":true,"id":726},"_Extent":{"__isSmartRef__":true,"id":727},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":728},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"725":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"726":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"727":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"728":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"729":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"730":{"style":{"__isSmartRef__":true,"id":731},"chunkOwner":{"__isSmartRef__":true,"id":723},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"731":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"732":{"morph":{"__isSmartRef__":true,"id":723},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"733":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"734":{"x":4,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"735":{"x":320,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"736":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":737},"derivationIds":[null],"id":"423DDBB8-DE5E-4BD7-93EE-1809EBC74671","renderContextTable":{"__isSmartRef__":true,"id":742},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":743}],"eventHandler":{"__isSmartRef__":true,"id":745},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":746},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":747},"name":"[5;4]","_Position":{"__isSmartRef__":true,"id":748},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"737":{"_Position":{"__isSmartRef__":true,"id":738},"renderContextTable":{"__isSmartRef__":true,"id":739},"_Extent":{"__isSmartRef__":true,"id":740},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":741},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"738":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"739":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"740":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"741":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"742":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"743":{"style":{"__isSmartRef__":true,"id":744},"chunkOwner":{"__isSmartRef__":true,"id":736},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"744":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"745":{"morph":{"__isSmartRef__":true,"id":736},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"746":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"747":{"x":5,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"748":{"x":400,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"749":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":750},"derivationIds":[null],"id":"F721AE5D-E053-4299-87A2-AFDB74B5A46B","renderContextTable":{"__isSmartRef__":true,"id":755},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":756}],"eventHandler":{"__isSmartRef__":true,"id":758},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":759},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":760},"name":"[6;4]","_Position":{"__isSmartRef__":true,"id":761},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"750":{"_Position":{"__isSmartRef__":true,"id":751},"renderContextTable":{"__isSmartRef__":true,"id":752},"_Extent":{"__isSmartRef__":true,"id":753},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":754},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"751":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"752":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"753":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"754":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"755":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"756":{"style":{"__isSmartRef__":true,"id":757},"chunkOwner":{"__isSmartRef__":true,"id":749},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"757":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"758":{"morph":{"__isSmartRef__":true,"id":749},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"759":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"760":{"x":6,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"761":{"x":480,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"762":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":763},"derivationIds":[null],"id":"0230C14B-E6DD-4598-BF68-48FE2332F711","renderContextTable":{"__isSmartRef__":true,"id":768},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":769}],"eventHandler":{"__isSmartRef__":true,"id":771},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":772},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":773},"name":"[7;4]","_Position":{"__isSmartRef__":true,"id":774},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"763":{"_Position":{"__isSmartRef__":true,"id":764},"renderContextTable":{"__isSmartRef__":true,"id":765},"_Extent":{"__isSmartRef__":true,"id":766},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":767},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"764":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"765":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"766":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"767":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"768":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"769":{"style":{"__isSmartRef__":true,"id":770},"chunkOwner":{"__isSmartRef__":true,"id":762},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"770":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"771":{"morph":{"__isSmartRef__":true,"id":762},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"772":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"773":{"x":7,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"774":{"x":560,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"775":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":776},"derivationIds":[null],"id":"9D64FD53-49E7-4391-9060-F81436705E2F","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":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":785},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":786},"name":"[8;4]","_Position":{"__isSmartRef__":true,"id":787},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"776":{"_Position":{"__isSmartRef__":true,"id":777},"renderContextTable":{"__isSmartRef__":true,"id":778},"_Extent":{"__isSmartRef__":true,"id":779},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":780},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"777":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"778":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"779":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"780":{"r":0.95,"g":0.95,"b":0.95,"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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"782":{"style":{"__isSmartRef__":true,"id":783},"chunkOwner":{"__isSmartRef__":true,"id":775},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"783":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"784":{"morph":{"__isSmartRef__":true,"id":775},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"785":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"786":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"787":{"x":640,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"788":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":789},"derivationIds":[null],"id":"C509F1CA-A2DD-4174-9458-69AE8D6FAAA7","renderContextTable":{"__isSmartRef__":true,"id":794},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":795}],"eventHandler":{"__isSmartRef__":true,"id":797},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":798},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":799},"name":"[9;4]","_Position":{"__isSmartRef__":true,"id":800},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"789":{"_Position":{"__isSmartRef__":true,"id":790},"renderContextTable":{"__isSmartRef__":true,"id":791},"_Extent":{"__isSmartRef__":true,"id":792},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":793},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"790":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"791":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"792":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"793":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"794":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"795":{"style":{"__isSmartRef__":true,"id":796},"chunkOwner":{"__isSmartRef__":true,"id":788},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"796":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"797":{"morph":{"__isSmartRef__":true,"id":788},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"798":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"799":{"x":9,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"800":{"x":720,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"801":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":802},"derivationIds":[null],"id":"EE3DDB3A-963A-4057-9E83-08817D0322FC","renderContextTable":{"__isSmartRef__":true,"id":807},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":808}],"eventHandler":{"__isSmartRef__":true,"id":810},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":811},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":812},"name":"[0;5]","_Position":{"__isSmartRef__":true,"id":813},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"802":{"_Position":{"__isSmartRef__":true,"id":803},"renderContextTable":{"__isSmartRef__":true,"id":804},"_Extent":{"__isSmartRef__":true,"id":805},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":806},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"803":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"804":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"805":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"806":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"807":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"808":{"style":{"__isSmartRef__":true,"id":809},"chunkOwner":{"__isSmartRef__":true,"id":801},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"809":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"810":{"morph":{"__isSmartRef__":true,"id":801},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"811":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"812":{"x":0,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"813":{"x":0,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"814":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":815},"derivationIds":[null],"id":"4371F70D-7DF2-43FA-B7C3-32E24242307A","renderContextTable":{"__isSmartRef__":true,"id":820},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":821}],"eventHandler":{"__isSmartRef__":true,"id":823},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":824},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":825},"name":"[1;5]","_Position":{"__isSmartRef__":true,"id":826},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"815":{"_Position":{"__isSmartRef__":true,"id":816},"renderContextTable":{"__isSmartRef__":true,"id":817},"_Extent":{"__isSmartRef__":true,"id":818},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":819},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"816":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"817":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"818":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"819":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"821":{"style":{"__isSmartRef__":true,"id":822},"chunkOwner":{"__isSmartRef__":true,"id":814},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"822":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"823":{"morph":{"__isSmartRef__":true,"id":814},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"824":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"825":{"x":1,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"826":{"x":80,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"827":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":828},"derivationIds":[null],"id":"2B4DB8D0-5F2A-45FB-A516-3A27F7EAA84F","renderContextTable":{"__isSmartRef__":true,"id":833},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":834}],"eventHandler":{"__isSmartRef__":true,"id":836},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":837},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":838},"name":"[2;5]","_Position":{"__isSmartRef__":true,"id":839},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"828":{"_Position":{"__isSmartRef__":true,"id":829},"renderContextTable":{"__isSmartRef__":true,"id":830},"_Extent":{"__isSmartRef__":true,"id":831},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":832},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"829":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"830":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"831":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"832":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"833":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"834":{"style":{"__isSmartRef__":true,"id":835},"chunkOwner":{"__isSmartRef__":true,"id":827},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"835":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"836":{"morph":{"__isSmartRef__":true,"id":827},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"837":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"838":{"x":2,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"839":{"x":160,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"840":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":841},"derivationIds":[null],"id":"0009EBDA-0C6A-4B7E-B32F-06D24CCB5F60","renderContextTable":{"__isSmartRef__":true,"id":846},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":847}],"eventHandler":{"__isSmartRef__":true,"id":849},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":850},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":851},"name":"[3;5]","_Position":{"__isSmartRef__":true,"id":852},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"841":{"_Position":{"__isSmartRef__":true,"id":842},"renderContextTable":{"__isSmartRef__":true,"id":843},"_Extent":{"__isSmartRef__":true,"id":844},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":845},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"842":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"843":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"844":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"845":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"846":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"847":{"style":{"__isSmartRef__":true,"id":848},"chunkOwner":{"__isSmartRef__":true,"id":840},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"848":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"849":{"morph":{"__isSmartRef__":true,"id":840},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"850":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"851":{"x":3,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"852":{"x":240,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":854},"derivationIds":[null],"id":"E022613E-6D3E-4927-810E-A9B7F19A9F9B","renderContextTable":{"__isSmartRef__":true,"id":859},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":860}],"eventHandler":{"__isSmartRef__":true,"id":862},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":863},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":864},"name":"[4;5]","_Position":{"__isSmartRef__":true,"id":865},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"854":{"_Position":{"__isSmartRef__":true,"id":855},"renderContextTable":{"__isSmartRef__":true,"id":856},"_Extent":{"__isSmartRef__":true,"id":857},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":858},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"855":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"856":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"857":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"858":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"859":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"860":{"style":{"__isSmartRef__":true,"id":861},"chunkOwner":{"__isSmartRef__":true,"id":853},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"861":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"862":{"morph":{"__isSmartRef__":true,"id":853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"863":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"864":{"x":4,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"865":{"x":320,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"866":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":867},"derivationIds":[null],"id":"279523A8-BC69-41D9-BA1D-7E0BECE5E853","renderContextTable":{"__isSmartRef__":true,"id":872},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":873}],"eventHandler":{"__isSmartRef__":true,"id":875},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":876},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":877},"name":"[5;5]","_Position":{"__isSmartRef__":true,"id":878},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"867":{"_Position":{"__isSmartRef__":true,"id":868},"renderContextTable":{"__isSmartRef__":true,"id":869},"_Extent":{"__isSmartRef__":true,"id":870},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":871},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"868":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"869":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"870":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"871":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"872":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"873":{"style":{"__isSmartRef__":true,"id":874},"chunkOwner":{"__isSmartRef__":true,"id":866},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"874":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"875":{"morph":{"__isSmartRef__":true,"id":866},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"876":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"877":{"x":5,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"878":{"x":400,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"879":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":880},"derivationIds":[null],"id":"DEE692D5-8B1B-41BF-B6C4-DDDE9E9C126F","renderContextTable":{"__isSmartRef__":true,"id":885},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":886}],"eventHandler":{"__isSmartRef__":true,"id":888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":889},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":890},"name":"[6;5]","_Position":{"__isSmartRef__":true,"id":891},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"880":{"_Position":{"__isSmartRef__":true,"id":881},"renderContextTable":{"__isSmartRef__":true,"id":882},"_Extent":{"__isSmartRef__":true,"id":883},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":884},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"881":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"882":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"883":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"884":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"885":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"886":{"style":{"__isSmartRef__":true,"id":887},"chunkOwner":{"__isSmartRef__":true,"id":879},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"887":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"888":{"morph":{"__isSmartRef__":true,"id":879},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"889":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"890":{"x":6,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"891":{"x":480,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"892":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":893},"derivationIds":[null],"id":"241BB4C2-742B-4174-BFBD-21899D9F9D21","renderContextTable":{"__isSmartRef__":true,"id":898},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":899}],"eventHandler":{"__isSmartRef__":true,"id":901},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":902},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":903},"name":"[7;5]","_Position":{"__isSmartRef__":true,"id":904},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"893":{"_Position":{"__isSmartRef__":true,"id":894},"renderContextTable":{"__isSmartRef__":true,"id":895},"_Extent":{"__isSmartRef__":true,"id":896},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":897},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"894":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"895":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"896":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"897":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"898":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"899":{"style":{"__isSmartRef__":true,"id":900},"chunkOwner":{"__isSmartRef__":true,"id":892},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"900":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"901":{"morph":{"__isSmartRef__":true,"id":892},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"902":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"903":{"x":7,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"904":{"x":560,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"905":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":906},"derivationIds":[null],"id":"BF64D492-C4D2-486F-95EE-AD87B83B926B","renderContextTable":{"__isSmartRef__":true,"id":911},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":912}],"eventHandler":{"__isSmartRef__":true,"id":914},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":915},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":916},"name":"[8;5]","_Position":{"__isSmartRef__":true,"id":917},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"906":{"_Position":{"__isSmartRef__":true,"id":907},"renderContextTable":{"__isSmartRef__":true,"id":908},"_Extent":{"__isSmartRef__":true,"id":909},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":910},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"907":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"908":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"909":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"910":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"911":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"912":{"style":{"__isSmartRef__":true,"id":913},"chunkOwner":{"__isSmartRef__":true,"id":905},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"913":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"914":{"morph":{"__isSmartRef__":true,"id":905},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"915":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"916":{"x":8,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"917":{"x":640,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"918":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":919},"derivationIds":[null],"id":"A9BEAAA1-9852-45DF-84D8-BF16E69AE0BB","renderContextTable":{"__isSmartRef__":true,"id":924},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":925}],"eventHandler":{"__isSmartRef__":true,"id":927},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":928},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":929},"name":"[9;5]","_Position":{"__isSmartRef__":true,"id":930},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"919":{"_Position":{"__isSmartRef__":true,"id":920},"renderContextTable":{"__isSmartRef__":true,"id":921},"_Extent":{"__isSmartRef__":true,"id":922},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":923},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"920":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"921":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"922":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"923":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"924":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"925":{"style":{"__isSmartRef__":true,"id":926},"chunkOwner":{"__isSmartRef__":true,"id":918},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"926":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"927":{"morph":{"__isSmartRef__":true,"id":918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"928":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"929":{"x":9,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"930":{"x":720,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"931":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":932},"derivationIds":[null],"id":"AD21BFE8-264A-40DC-A997-C8413E49791E","renderContextTable":{"__isSmartRef__":true,"id":937},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":938}],"eventHandler":{"__isSmartRef__":true,"id":940},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":941},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":942},"name":"[0;6]","_Position":{"__isSmartRef__":true,"id":943},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"932":{"_Position":{"__isSmartRef__":true,"id":933},"renderContextTable":{"__isSmartRef__":true,"id":934},"_Extent":{"__isSmartRef__":true,"id":935},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":936},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"933":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"934":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"935":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"936":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"938":{"style":{"__isSmartRef__":true,"id":939},"chunkOwner":{"__isSmartRef__":true,"id":931},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"939":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"940":{"morph":{"__isSmartRef__":true,"id":931},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"941":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"942":{"x":0,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"943":{"x":0,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"944":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":945},"derivationIds":[null],"id":"A528ADDF-6A41-489F-8257-93543A2AAB20","renderContextTable":{"__isSmartRef__":true,"id":950},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":951}],"eventHandler":{"__isSmartRef__":true,"id":953},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":954},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":955},"name":"[1;6]","_Position":{"__isSmartRef__":true,"id":956},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"945":{"_Position":{"__isSmartRef__":true,"id":946},"renderContextTable":{"__isSmartRef__":true,"id":947},"_Extent":{"__isSmartRef__":true,"id":948},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":949},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"946":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"947":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"948":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"949":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"950":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"951":{"style":{"__isSmartRef__":true,"id":952},"chunkOwner":{"__isSmartRef__":true,"id":944},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"952":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"953":{"morph":{"__isSmartRef__":true,"id":944},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"954":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"955":{"x":1,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"956":{"x":80,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"957":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":958},"derivationIds":[null],"id":"EDB7A318-72A1-4C0B-A554-B8397725021B","renderContextTable":{"__isSmartRef__":true,"id":963},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":964}],"eventHandler":{"__isSmartRef__":true,"id":966},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":967},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":968},"name":"[2;6]","_Position":{"__isSmartRef__":true,"id":969},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"958":{"_Position":{"__isSmartRef__":true,"id":959},"renderContextTable":{"__isSmartRef__":true,"id":960},"_Extent":{"__isSmartRef__":true,"id":961},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":962},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"959":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"960":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"961":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"962":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"963":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"964":{"style":{"__isSmartRef__":true,"id":965},"chunkOwner":{"__isSmartRef__":true,"id":957},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"965":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"966":{"morph":{"__isSmartRef__":true,"id":957},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"967":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"968":{"x":2,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"969":{"x":160,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"970":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":971},"derivationIds":[null],"id":"60440D89-F43D-41B5-B1BF-E11EFAADD1AC","renderContextTable":{"__isSmartRef__":true,"id":976},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":977}],"eventHandler":{"__isSmartRef__":true,"id":979},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":980},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":981},"name":"[3;6]","_Position":{"__isSmartRef__":true,"id":982},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"971":{"_Position":{"__isSmartRef__":true,"id":972},"renderContextTable":{"__isSmartRef__":true,"id":973},"_Extent":{"__isSmartRef__":true,"id":974},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":975},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"972":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"973":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"974":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"975":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"976":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"977":{"style":{"__isSmartRef__":true,"id":978},"chunkOwner":{"__isSmartRef__":true,"id":970},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"978":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"979":{"morph":{"__isSmartRef__":true,"id":970},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"980":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"981":{"x":3,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"982":{"x":240,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"983":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":984},"derivationIds":[null],"id":"5596A8E2-37B1-456D-B0D6-8B5B5E0AB7B5","renderContextTable":{"__isSmartRef__":true,"id":989},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":990}],"eventHandler":{"__isSmartRef__":true,"id":992},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":993},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":994},"name":"[4;6]","_Position":{"__isSmartRef__":true,"id":995},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"984":{"_Position":{"__isSmartRef__":true,"id":985},"renderContextTable":{"__isSmartRef__":true,"id":986},"_Extent":{"__isSmartRef__":true,"id":987},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":988},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"985":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"986":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"987":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"988":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"989":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"990":{"style":{"__isSmartRef__":true,"id":991},"chunkOwner":{"__isSmartRef__":true,"id":983},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"991":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"992":{"morph":{"__isSmartRef__":true,"id":983},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"993":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"994":{"x":4,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"995":{"x":320,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"996":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":997},"derivationIds":[null],"id":"86025397-AA72-49BE-9E3A-DFBD2FE8EDB5","renderContextTable":{"__isSmartRef__":true,"id":1002},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1003}],"eventHandler":{"__isSmartRef__":true,"id":1005},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1006},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1007},"name":"[5;6]","_Position":{"__isSmartRef__":true,"id":1008},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"997":{"_Position":{"__isSmartRef__":true,"id":998},"renderContextTable":{"__isSmartRef__":true,"id":999},"_Extent":{"__isSmartRef__":true,"id":1000},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1001},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"998":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"999":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1000":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1001":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1002":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1003":{"style":{"__isSmartRef__":true,"id":1004},"chunkOwner":{"__isSmartRef__":true,"id":996},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1004":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1005":{"morph":{"__isSmartRef__":true,"id":996},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1006":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1007":{"x":5,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1008":{"x":400,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1009":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1010},"derivationIds":[null],"id":"57D331C8-EB92-4F94-B32A-E793C9D60FF9","renderContextTable":{"__isSmartRef__":true,"id":1015},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1016}],"eventHandler":{"__isSmartRef__":true,"id":1018},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1019},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1020},"name":"[6;6]","_Position":{"__isSmartRef__":true,"id":1021},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1010":{"_Position":{"__isSmartRef__":true,"id":1011},"renderContextTable":{"__isSmartRef__":true,"id":1012},"_Extent":{"__isSmartRef__":true,"id":1013},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1014},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1011":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1012":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1013":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1014":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1015":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1016":{"style":{"__isSmartRef__":true,"id":1017},"chunkOwner":{"__isSmartRef__":true,"id":1009},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1017":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1018":{"morph":{"__isSmartRef__":true,"id":1009},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1019":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1020":{"x":6,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1021":{"x":480,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1022":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1023},"derivationIds":[null],"id":"1A36E22C-81E2-45B6-A63D-10B777CF40A6","renderContextTable":{"__isSmartRef__":true,"id":1028},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1029}],"eventHandler":{"__isSmartRef__":true,"id":1031},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1032},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1033},"name":"[7;6]","_Position":{"__isSmartRef__":true,"id":1034},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1023":{"_Position":{"__isSmartRef__":true,"id":1024},"renderContextTable":{"__isSmartRef__":true,"id":1025},"_Extent":{"__isSmartRef__":true,"id":1026},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1027},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1024":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1025":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1026":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1027":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1028":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1029":{"style":{"__isSmartRef__":true,"id":1030},"chunkOwner":{"__isSmartRef__":true,"id":1022},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1030":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1031":{"morph":{"__isSmartRef__":true,"id":1022},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1032":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1033":{"x":7,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1034":{"x":560,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1035":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1036},"derivationIds":[null],"id":"6FFAA265-8AED-4857-AC87-47CE32933A81","renderContextTable":{"__isSmartRef__":true,"id":1041},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1042}],"eventHandler":{"__isSmartRef__":true,"id":1044},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1045},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1046},"name":"[8;6]","_Position":{"__isSmartRef__":true,"id":1047},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1036":{"_Position":{"__isSmartRef__":true,"id":1037},"renderContextTable":{"__isSmartRef__":true,"id":1038},"_Extent":{"__isSmartRef__":true,"id":1039},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1040},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1037":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1038":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1039":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1040":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1041":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1042":{"style":{"__isSmartRef__":true,"id":1043},"chunkOwner":{"__isSmartRef__":true,"id":1035},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1043":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1044":{"morph":{"__isSmartRef__":true,"id":1035},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1045":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1046":{"x":8,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1047":{"x":640,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1048":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1049},"derivationIds":[null],"id":"E947648F-A0B0-48D4-AE4E-AE4ECBC09E05","renderContextTable":{"__isSmartRef__":true,"id":1054},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1055}],"eventHandler":{"__isSmartRef__":true,"id":1057},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1058},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1059},"name":"[9;6]","_Position":{"__isSmartRef__":true,"id":1060},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1049":{"_Position":{"__isSmartRef__":true,"id":1050},"renderContextTable":{"__isSmartRef__":true,"id":1051},"_Extent":{"__isSmartRef__":true,"id":1052},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1053},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1050":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1051":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1052":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1053":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1054":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1055":{"style":{"__isSmartRef__":true,"id":1056},"chunkOwner":{"__isSmartRef__":true,"id":1048},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1056":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1057":{"morph":{"__isSmartRef__":true,"id":1048},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1058":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1059":{"x":9,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1060":{"x":720,"y":210,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1061":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1062},"derivationIds":[null],"id":"8654BF04-F317-4D43-AFBA-238F3795F500","renderContextTable":{"__isSmartRef__":true,"id":1067},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1068}],"eventHandler":{"__isSmartRef__":true,"id":1070},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1071},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1072},"name":"[0;7]","_Position":{"__isSmartRef__":true,"id":1073},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1062":{"_Position":{"__isSmartRef__":true,"id":1063},"renderContextTable":{"__isSmartRef__":true,"id":1064},"_Extent":{"__isSmartRef__":true,"id":1065},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1066},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1063":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1064":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1065":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1066":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1067":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1068":{"style":{"__isSmartRef__":true,"id":1069},"chunkOwner":{"__isSmartRef__":true,"id":1061},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1069":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1070":{"morph":{"__isSmartRef__":true,"id":1061},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1071":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1072":{"x":0,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1073":{"x":0,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1074":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1075},"derivationIds":[null],"id":"243CDB4D-B7BA-4B62-94EB-A1C5C543524B","renderContextTable":{"__isSmartRef__":true,"id":1080},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1081}],"eventHandler":{"__isSmartRef__":true,"id":1083},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1084},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1085},"name":"[1;7]","_Position":{"__isSmartRef__":true,"id":1086},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1075":{"_Position":{"__isSmartRef__":true,"id":1076},"renderContextTable":{"__isSmartRef__":true,"id":1077},"_Extent":{"__isSmartRef__":true,"id":1078},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1079},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1076":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1077":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1078":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1079":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1080":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1081":{"style":{"__isSmartRef__":true,"id":1082},"chunkOwner":{"__isSmartRef__":true,"id":1074},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1082":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1083":{"morph":{"__isSmartRef__":true,"id":1074},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1084":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1085":{"x":1,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1086":{"x":80,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1087":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1088},"derivationIds":[null],"id":"74516305-107D-489A-8D11-6633B295D4AE","renderContextTable":{"__isSmartRef__":true,"id":1093},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1094}],"eventHandler":{"__isSmartRef__":true,"id":1096},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1097},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1098},"name":"[2;7]","_Position":{"__isSmartRef__":true,"id":1099},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1088":{"_Position":{"__isSmartRef__":true,"id":1089},"renderContextTable":{"__isSmartRef__":true,"id":1090},"_Extent":{"__isSmartRef__":true,"id":1091},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1089":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1090":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1091":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1092":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1093":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1094":{"style":{"__isSmartRef__":true,"id":1095},"chunkOwner":{"__isSmartRef__":true,"id":1087},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1095":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1096":{"morph":{"__isSmartRef__":true,"id":1087},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1097":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1098":{"x":2,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1099":{"x":160,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1100":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1101},"derivationIds":[null],"id":"6800EF85-AF17-4BCF-9E7D-4022AFFA7B73","renderContextTable":{"__isSmartRef__":true,"id":1106},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1107}],"eventHandler":{"__isSmartRef__":true,"id":1109},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1110},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1111},"name":"[3;7]","_Position":{"__isSmartRef__":true,"id":1112},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1101":{"_Position":{"__isSmartRef__":true,"id":1102},"renderContextTable":{"__isSmartRef__":true,"id":1103},"_Extent":{"__isSmartRef__":true,"id":1104},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1105},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1102":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1103":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1104":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1105":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1106":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1107":{"style":{"__isSmartRef__":true,"id":1108},"chunkOwner":{"__isSmartRef__":true,"id":1100},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1108":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1109":{"morph":{"__isSmartRef__":true,"id":1100},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1110":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1111":{"x":3,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1112":{"x":240,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1113":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1114},"derivationIds":[null],"id":"2E3EBF68-01D2-4624-A30D-F92728EFEEF3","renderContextTable":{"__isSmartRef__":true,"id":1119},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1120}],"eventHandler":{"__isSmartRef__":true,"id":1122},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1123},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1124},"name":"[4;7]","_Position":{"__isSmartRef__":true,"id":1125},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1114":{"_Position":{"__isSmartRef__":true,"id":1115},"renderContextTable":{"__isSmartRef__":true,"id":1116},"_Extent":{"__isSmartRef__":true,"id":1117},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1118},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1115":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1116":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1117":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1118":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1119":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1120":{"style":{"__isSmartRef__":true,"id":1121},"chunkOwner":{"__isSmartRef__":true,"id":1113},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1121":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1122":{"morph":{"__isSmartRef__":true,"id":1113},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1123":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1124":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1125":{"x":320,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1126":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1127},"derivationIds":[null],"id":"E64AA14A-CC72-44CE-87B6-A3CA2D18F51A","renderContextTable":{"__isSmartRef__":true,"id":1132},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1133}],"eventHandler":{"__isSmartRef__":true,"id":1135},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1136},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1137},"name":"[5;7]","_Position":{"__isSmartRef__":true,"id":1138},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1127":{"_Position":{"__isSmartRef__":true,"id":1128},"renderContextTable":{"__isSmartRef__":true,"id":1129},"_Extent":{"__isSmartRef__":true,"id":1130},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1131},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1128":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1129":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1130":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1131":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1132":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1133":{"style":{"__isSmartRef__":true,"id":1134},"chunkOwner":{"__isSmartRef__":true,"id":1126},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1134":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1135":{"morph":{"__isSmartRef__":true,"id":1126},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1136":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1137":{"x":5,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1138":{"x":400,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1139":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1140},"derivationIds":[null],"id":"617C6361-027B-4DEE-BA10-663FC2638AFD","renderContextTable":{"__isSmartRef__":true,"id":1145},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1146}],"eventHandler":{"__isSmartRef__":true,"id":1148},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1149},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1150},"name":"[6;7]","_Position":{"__isSmartRef__":true,"id":1151},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1140":{"_Position":{"__isSmartRef__":true,"id":1141},"renderContextTable":{"__isSmartRef__":true,"id":1142},"_Extent":{"__isSmartRef__":true,"id":1143},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1144},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1141":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1142":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1143":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1144":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1145":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1146":{"style":{"__isSmartRef__":true,"id":1147},"chunkOwner":{"__isSmartRef__":true,"id":1139},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1147":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1148":{"morph":{"__isSmartRef__":true,"id":1139},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1149":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1150":{"x":6,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1151":{"x":480,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1152":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1153},"derivationIds":[null],"id":"4ABC95C7-312C-4AFB-AB06-1B37816B91D9","renderContextTable":{"__isSmartRef__":true,"id":1158},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1159}],"eventHandler":{"__isSmartRef__":true,"id":1161},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1162},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1163},"name":"[7;7]","_Position":{"__isSmartRef__":true,"id":1164},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1153":{"_Position":{"__isSmartRef__":true,"id":1154},"renderContextTable":{"__isSmartRef__":true,"id":1155},"_Extent":{"__isSmartRef__":true,"id":1156},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1157},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1154":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1155":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1156":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1157":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1158":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1159":{"style":{"__isSmartRef__":true,"id":1160},"chunkOwner":{"__isSmartRef__":true,"id":1152},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1160":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1161":{"morph":{"__isSmartRef__":true,"id":1152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1162":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1163":{"x":7,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1164":{"x":560,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1165":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1166},"derivationIds":[null],"id":"68538946-1BC1-4497-BC25-C68A68FD8FED","renderContextTable":{"__isSmartRef__":true,"id":1171},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1172}],"eventHandler":{"__isSmartRef__":true,"id":1174},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1175},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1176},"name":"[8;7]","_Position":{"__isSmartRef__":true,"id":1177},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1166":{"_Position":{"__isSmartRef__":true,"id":1167},"renderContextTable":{"__isSmartRef__":true,"id":1168},"_Extent":{"__isSmartRef__":true,"id":1169},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1170},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1167":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1168":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1169":{"x":80,"y":30,"__LivelyClassName__":"Point","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1172":{"style":{"__isSmartRef__":true,"id":1173},"chunkOwner":{"__isSmartRef__":true,"id":1165},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1173":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1174":{"morph":{"__isSmartRef__":true,"id":1165},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1175":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1176":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1177":{"x":640,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1179},"derivationIds":[null],"id":"E12FBDBB-7521-4B31-A2AA-D818B5CF811F","renderContextTable":{"__isSmartRef__":true,"id":1184},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1185}],"eventHandler":{"__isSmartRef__":true,"id":1187},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1188},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1189},"name":"[9;7]","_Position":{"__isSmartRef__":true,"id":1190},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1179":{"_Position":{"__isSmartRef__":true,"id":1180},"renderContextTable":{"__isSmartRef__":true,"id":1181},"_Extent":{"__isSmartRef__":true,"id":1182},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1183},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1182":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1183":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1184":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1185":{"style":{"__isSmartRef__":true,"id":1186},"chunkOwner":{"__isSmartRef__":true,"id":1178},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1186":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1187":{"morph":{"__isSmartRef__":true,"id":1178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1188":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1189":{"x":9,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1190":{"x":720,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1191":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1192},"derivationIds":[null],"id":"2A9774FE-C097-4596-8B1F-B2543A2C7522","renderContextTable":{"__isSmartRef__":true,"id":1197},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1198}],"eventHandler":{"__isSmartRef__":true,"id":1200},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1201},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1202},"name":"[0;8]","_Position":{"__isSmartRef__":true,"id":1203},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1192":{"_Position":{"__isSmartRef__":true,"id":1193},"renderContextTable":{"__isSmartRef__":true,"id":1194},"_Extent":{"__isSmartRef__":true,"id":1195},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1196},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1193":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1194":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1195":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1196":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1197":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1198":{"style":{"__isSmartRef__":true,"id":1199},"chunkOwner":{"__isSmartRef__":true,"id":1191},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1199":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1200":{"morph":{"__isSmartRef__":true,"id":1191},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1201":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1202":{"x":0,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1203":{"x":0,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1204":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1205},"derivationIds":[null],"id":"5D45BE83-51E0-4947-AF5F-2194A1A59DA0","renderContextTable":{"__isSmartRef__":true,"id":1210},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1211}],"eventHandler":{"__isSmartRef__":true,"id":1213},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1214},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1215},"name":"[1;8]","_Position":{"__isSmartRef__":true,"id":1216},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1205":{"_Position":{"__isSmartRef__":true,"id":1206},"renderContextTable":{"__isSmartRef__":true,"id":1207},"_Extent":{"__isSmartRef__":true,"id":1208},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1209},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1206":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1207":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1208":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1209":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1210":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1211":{"style":{"__isSmartRef__":true,"id":1212},"chunkOwner":{"__isSmartRef__":true,"id":1204},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1212":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1213":{"morph":{"__isSmartRef__":true,"id":1204},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1214":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1215":{"x":1,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1216":{"x":80,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1217":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1218},"derivationIds":[null],"id":"1842F841-7E1D-422C-BDF8-61C4CDBD205A","renderContextTable":{"__isSmartRef__":true,"id":1223},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1224}],"eventHandler":{"__isSmartRef__":true,"id":1226},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1227},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1228},"name":"[2;8]","_Position":{"__isSmartRef__":true,"id":1229},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1218":{"_Position":{"__isSmartRef__":true,"id":1219},"renderContextTable":{"__isSmartRef__":true,"id":1220},"_Extent":{"__isSmartRef__":true,"id":1221},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1222},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1219":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1220":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1221":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1222":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1223":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1224":{"style":{"__isSmartRef__":true,"id":1225},"chunkOwner":{"__isSmartRef__":true,"id":1217},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1225":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1226":{"morph":{"__isSmartRef__":true,"id":1217},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1227":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1228":{"x":2,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1229":{"x":160,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1230":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1231},"derivationIds":[null],"id":"E206BC70-A35F-4D25-865D-41E07EE65DA2","renderContextTable":{"__isSmartRef__":true,"id":1236},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1237}],"eventHandler":{"__isSmartRef__":true,"id":1239},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1240},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1241},"name":"[3;8]","_Position":{"__isSmartRef__":true,"id":1242},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1231":{"_Position":{"__isSmartRef__":true,"id":1232},"renderContextTable":{"__isSmartRef__":true,"id":1233},"_Extent":{"__isSmartRef__":true,"id":1234},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1235},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1232":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1233":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1234":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1235":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1236":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1237":{"style":{"__isSmartRef__":true,"id":1238},"chunkOwner":{"__isSmartRef__":true,"id":1230},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1238":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1239":{"morph":{"__isSmartRef__":true,"id":1230},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1240":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1241":{"x":3,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1242":{"x":240,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1243":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1244},"derivationIds":[null],"id":"2C7727DC-F6F0-4B7D-B15B-7586A5648C97","renderContextTable":{"__isSmartRef__":true,"id":1249},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1250}],"eventHandler":{"__isSmartRef__":true,"id":1252},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1253},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1254},"name":"[4;8]","_Position":{"__isSmartRef__":true,"id":1255},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1244":{"_Position":{"__isSmartRef__":true,"id":1245},"renderContextTable":{"__isSmartRef__":true,"id":1246},"_Extent":{"__isSmartRef__":true,"id":1247},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1248},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1245":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1246":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1247":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1248":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1249":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1250":{"style":{"__isSmartRef__":true,"id":1251},"chunkOwner":{"__isSmartRef__":true,"id":1243},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1251":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1252":{"morph":{"__isSmartRef__":true,"id":1243},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1253":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1254":{"x":4,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1255":{"x":320,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1256":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1257},"derivationIds":[null],"id":"313B0732-0483-43DF-91DD-0E2CF0E922D2","renderContextTable":{"__isSmartRef__":true,"id":1262},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1263}],"eventHandler":{"__isSmartRef__":true,"id":1265},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1266},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1267},"name":"[5;8]","_Position":{"__isSmartRef__":true,"id":1268},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1257":{"_Position":{"__isSmartRef__":true,"id":1258},"renderContextTable":{"__isSmartRef__":true,"id":1259},"_Extent":{"__isSmartRef__":true,"id":1260},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1261},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1258":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1259":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1260":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1261":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1262":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1263":{"style":{"__isSmartRef__":true,"id":1264},"chunkOwner":{"__isSmartRef__":true,"id":1256},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1264":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1265":{"morph":{"__isSmartRef__":true,"id":1256},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1266":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1267":{"x":5,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1268":{"x":400,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1269":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1270},"derivationIds":[null],"id":"8D6CACFC-B59F-4CD3-8752-ED9560F144C5","renderContextTable":{"__isSmartRef__":true,"id":1275},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1276}],"eventHandler":{"__isSmartRef__":true,"id":1278},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1279},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1280},"name":"[6;8]","_Position":{"__isSmartRef__":true,"id":1281},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1270":{"_Position":{"__isSmartRef__":true,"id":1271},"renderContextTable":{"__isSmartRef__":true,"id":1272},"_Extent":{"__isSmartRef__":true,"id":1273},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1274},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1271":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1272":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1273":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1274":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1275":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1276":{"style":{"__isSmartRef__":true,"id":1277},"chunkOwner":{"__isSmartRef__":true,"id":1269},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1277":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1278":{"morph":{"__isSmartRef__":true,"id":1269},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1279":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1280":{"x":6,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1281":{"x":480,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1282":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1283},"derivationIds":[null],"id":"6822BB98-6A87-43EA-9FD0-797115B678FB","renderContextTable":{"__isSmartRef__":true,"id":1288},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1289}],"eventHandler":{"__isSmartRef__":true,"id":1291},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1292},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1293},"name":"[7;8]","_Position":{"__isSmartRef__":true,"id":1294},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1283":{"_Position":{"__isSmartRef__":true,"id":1284},"renderContextTable":{"__isSmartRef__":true,"id":1285},"_Extent":{"__isSmartRef__":true,"id":1286},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1287},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1284":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1285":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1286":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1287":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1288":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1289":{"style":{"__isSmartRef__":true,"id":1290},"chunkOwner":{"__isSmartRef__":true,"id":1282},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1290":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1291":{"morph":{"__isSmartRef__":true,"id":1282},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1292":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1293":{"x":7,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1294":{"x":560,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1295":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1296},"derivationIds":[null],"id":"7264988F-BACF-45FC-ADAC-A921DD592739","renderContextTable":{"__isSmartRef__":true,"id":1301},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1302}],"eventHandler":{"__isSmartRef__":true,"id":1304},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1305},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1306},"name":"[8;8]","_Position":{"__isSmartRef__":true,"id":1307},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1296":{"_Position":{"__isSmartRef__":true,"id":1297},"renderContextTable":{"__isSmartRef__":true,"id":1298},"_Extent":{"__isSmartRef__":true,"id":1299},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1300},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1297":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1298":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1299":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1300":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1301":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1302":{"style":{"__isSmartRef__":true,"id":1303},"chunkOwner":{"__isSmartRef__":true,"id":1295},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1303":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1304":{"morph":{"__isSmartRef__":true,"id":1295},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1305":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1306":{"x":8,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1307":{"x":640,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1308":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1309},"derivationIds":[null],"id":"108D559A-B613-4299-9414-54693989313F","renderContextTable":{"__isSmartRef__":true,"id":1314},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1315}],"eventHandler":{"__isSmartRef__":true,"id":1317},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1318},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1319},"name":"[9;8]","_Position":{"__isSmartRef__":true,"id":1320},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1309":{"_Position":{"__isSmartRef__":true,"id":1310},"renderContextTable":{"__isSmartRef__":true,"id":1311},"_Extent":{"__isSmartRef__":true,"id":1312},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1313},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1310":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1311":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1312":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1313":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1314":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1315":{"style":{"__isSmartRef__":true,"id":1316},"chunkOwner":{"__isSmartRef__":true,"id":1308},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1316":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1317":{"morph":{"__isSmartRef__":true,"id":1308},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1318":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1319":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1320":{"x":720,"y":270,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1321":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1322},"derivationIds":[null],"id":"CE30B712-E541-4A1C-8E88-55B012667339","renderContextTable":{"__isSmartRef__":true,"id":1327},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1328}],"eventHandler":{"__isSmartRef__":true,"id":1330},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1331},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1332},"name":"[0;9]","_Position":{"__isSmartRef__":true,"id":1333},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1322":{"_Position":{"__isSmartRef__":true,"id":1323},"renderContextTable":{"__isSmartRef__":true,"id":1324},"_Extent":{"__isSmartRef__":true,"id":1325},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1326},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1323":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1324":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1325":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1326":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1327":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1328":{"style":{"__isSmartRef__":true,"id":1329},"chunkOwner":{"__isSmartRef__":true,"id":1321},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1329":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1330":{"morph":{"__isSmartRef__":true,"id":1321},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1331":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1332":{"x":0,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1333":{"x":0,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1334":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1335},"derivationIds":[null],"id":"0AAF76A7-3E3A-42EF-8CD1-E4723F84DA0C","renderContextTable":{"__isSmartRef__":true,"id":1340},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1341}],"eventHandler":{"__isSmartRef__":true,"id":1343},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1344},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1345},"name":"[1;9]","_Position":{"__isSmartRef__":true,"id":1346},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1335":{"_Position":{"__isSmartRef__":true,"id":1336},"renderContextTable":{"__isSmartRef__":true,"id":1337},"_Extent":{"__isSmartRef__":true,"id":1338},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1339},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1336":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1337":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1338":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1339":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1340":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1341":{"style":{"__isSmartRef__":true,"id":1342},"chunkOwner":{"__isSmartRef__":true,"id":1334},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1342":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1343":{"morph":{"__isSmartRef__":true,"id":1334},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1344":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1345":{"x":1,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1346":{"x":80,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1347":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1348},"derivationIds":[null],"id":"1D4C61B5-1E91-4930-8322-372C188AB329","renderContextTable":{"__isSmartRef__":true,"id":1353},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1354}],"eventHandler":{"__isSmartRef__":true,"id":1356},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1357},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1358},"name":"[2;9]","_Position":{"__isSmartRef__":true,"id":1359},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1348":{"_Position":{"__isSmartRef__":true,"id":1349},"renderContextTable":{"__isSmartRef__":true,"id":1350},"_Extent":{"__isSmartRef__":true,"id":1351},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1352},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1349":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1350":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1351":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1352":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1353":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1354":{"style":{"__isSmartRef__":true,"id":1355},"chunkOwner":{"__isSmartRef__":true,"id":1347},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1355":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1356":{"morph":{"__isSmartRef__":true,"id":1347},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1357":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1358":{"x":2,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1359":{"x":160,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1360":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1361},"derivationIds":[null],"id":"CA495E05-B9BE-4BFD-A6DF-1977597C134A","renderContextTable":{"__isSmartRef__":true,"id":1366},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1367}],"eventHandler":{"__isSmartRef__":true,"id":1369},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1370},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1371},"name":"[3;9]","_Position":{"__isSmartRef__":true,"id":1372},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1361":{"_Position":{"__isSmartRef__":true,"id":1362},"renderContextTable":{"__isSmartRef__":true,"id":1363},"_Extent":{"__isSmartRef__":true,"id":1364},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1365},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1362":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1363":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1364":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1365":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1366":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1367":{"style":{"__isSmartRef__":true,"id":1368},"chunkOwner":{"__isSmartRef__":true,"id":1360},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1368":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1369":{"morph":{"__isSmartRef__":true,"id":1360},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1370":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1371":{"x":3,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1372":{"x":240,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1373":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1374},"derivationIds":[null],"id":"1D100F7F-3725-4D53-A9D5-ACFC6F696CC5","renderContextTable":{"__isSmartRef__":true,"id":1379},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1380}],"eventHandler":{"__isSmartRef__":true,"id":1382},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1383},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1384},"name":"[4;9]","_Position":{"__isSmartRef__":true,"id":1385},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1374":{"_Position":{"__isSmartRef__":true,"id":1375},"renderContextTable":{"__isSmartRef__":true,"id":1376},"_Extent":{"__isSmartRef__":true,"id":1377},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1378},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1375":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1376":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1377":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1378":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1379":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1380":{"style":{"__isSmartRef__":true,"id":1381},"chunkOwner":{"__isSmartRef__":true,"id":1373},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1381":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1382":{"morph":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1383":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1384":{"x":4,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1385":{"x":320,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1386":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1387},"derivationIds":[null],"id":"8D8CC03A-8D30-43A6-9494-860C64FBBC63","renderContextTable":{"__isSmartRef__":true,"id":1392},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1393}],"eventHandler":{"__isSmartRef__":true,"id":1395},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1396},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1397},"name":"[5;9]","_Position":{"__isSmartRef__":true,"id":1398},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1387":{"_Position":{"__isSmartRef__":true,"id":1388},"renderContextTable":{"__isSmartRef__":true,"id":1389},"_Extent":{"__isSmartRef__":true,"id":1390},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1391},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1388":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1389":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1390":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1391":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1392":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1393":{"style":{"__isSmartRef__":true,"id":1394},"chunkOwner":{"__isSmartRef__":true,"id":1386},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1394":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1395":{"morph":{"__isSmartRef__":true,"id":1386},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1396":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1397":{"x":5,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1398":{"x":400,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1399":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1400},"derivationIds":[null],"id":"146A14D3-D3CD-444B-B32E-148BCB5BBB6A","renderContextTable":{"__isSmartRef__":true,"id":1405},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1406}],"eventHandler":{"__isSmartRef__":true,"id":1408},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1409},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1410},"name":"[6;9]","_Position":{"__isSmartRef__":true,"id":1411},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1400":{"_Position":{"__isSmartRef__":true,"id":1401},"renderContextTable":{"__isSmartRef__":true,"id":1402},"_Extent":{"__isSmartRef__":true,"id":1403},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1404},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1401":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1402":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1403":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1404":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1405":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1406":{"style":{"__isSmartRef__":true,"id":1407},"chunkOwner":{"__isSmartRef__":true,"id":1399},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1407":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1408":{"morph":{"__isSmartRef__":true,"id":1399},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1409":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1410":{"x":6,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1411":{"x":480,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1412":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1413},"derivationIds":[null],"id":"78A89959-60FB-489B-ABE5-46623D3BC34C","renderContextTable":{"__isSmartRef__":true,"id":1418},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1419}],"eventHandler":{"__isSmartRef__":true,"id":1421},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1422},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1423},"name":"[7;9]","_Position":{"__isSmartRef__":true,"id":1424},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1413":{"_Position":{"__isSmartRef__":true,"id":1414},"renderContextTable":{"__isSmartRef__":true,"id":1415},"_Extent":{"__isSmartRef__":true,"id":1416},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1417},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1414":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1415":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1416":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1417":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1418":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1419":{"style":{"__isSmartRef__":true,"id":1420},"chunkOwner":{"__isSmartRef__":true,"id":1412},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1420":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1421":{"morph":{"__isSmartRef__":true,"id":1412},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1422":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1423":{"x":7,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1424":{"x":560,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1425":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1426},"derivationIds":[null],"id":"53324E6D-2693-4AB0-A56B-8B56BE504F53","renderContextTable":{"__isSmartRef__":true,"id":1431},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1432}],"eventHandler":{"__isSmartRef__":true,"id":1434},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1435},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1436},"name":"[8;9]","_Position":{"__isSmartRef__":true,"id":1437},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1426":{"_Position":{"__isSmartRef__":true,"id":1427},"renderContextTable":{"__isSmartRef__":true,"id":1428},"_Extent":{"__isSmartRef__":true,"id":1429},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1430},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1427":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1428":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1429":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1430":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1431":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1432":{"style":{"__isSmartRef__":true,"id":1433},"chunkOwner":{"__isSmartRef__":true,"id":1425},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1433":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1434":{"morph":{"__isSmartRef__":true,"id":1425},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1435":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1436":{"x":8,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1437":{"x":640,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1438":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1439},"derivationIds":[null],"id":"9EE03D40-0CB4-4665-9261-90FDC6AEC8CD","renderContextTable":{"__isSmartRef__":true,"id":1444},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1445}],"eventHandler":{"__isSmartRef__":true,"id":1447},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":17},"priorExtent":{"__isSmartRef__":true,"id":1448},"_MaxTextWidth":70,"_MinTextWidth":70,"_MaxTextHeight":null,"_MinTextHeight":null,"grid":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":17},"gridCoords":{"__isSmartRef__":true,"id":1449},"name":"[9;9]","_Position":{"__isSmartRef__":true,"id":1450},"__LivelyClassName__":"lively.morphic.DataGridCell","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1439":{"_Position":{"__isSmartRef__":true,"id":1440},"renderContextTable":{"__isSmartRef__":true,"id":1441},"_Extent":{"__isSmartRef__":true,"id":1442},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1443},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1440":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1441":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1442":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1443":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1444":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1445":{"style":{"__isSmartRef__":true,"id":1446},"chunkOwner":{"__isSmartRef__":true,"id":1438},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1446":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1447":{"morph":{"__isSmartRef__":true,"id":1438},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1448":{"x":80,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1449":{"x":9,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1450":{"x":720,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1451":{"_Position":{"__isSmartRef__":true,"id":1452},"renderContextTable":{"__isSmartRef__":true,"id":1453},"_Extent":{"__isSmartRef__":true,"id":1454},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1455},"_Fill":{"__isSmartRef__":true,"id":1456},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1452":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1453":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1454":{"x":900,"y":400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1455":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1456":{"r":0.9019607843137255,"g":0.9019607843137255,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1457":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1458":{"morph":{"__isSmartRef__":true,"id":17},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1459":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1460":{"layouter":{"__isSmartRef__":true,"id":1461}},"1461":{"numCols":10,"numRows":11,"morphsAdded":0,"rows":[[{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":33},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":85},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":137}],[{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":202},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":228},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":254},{"__isSmartRef__":true,"id":267}],[{"__isSmartRef__":true,"id":280},{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":333},{"__isSmartRef__":true,"id":346},{"__isSmartRef__":true,"id":359},{"__isSmartRef__":true,"id":372},{"__isSmartRef__":true,"id":385},{"__isSmartRef__":true,"id":398}],[{"__isSmartRef__":true,"id":411},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":476},{"__isSmartRef__":true,"id":489},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":528}],[{"__isSmartRef__":true,"id":541},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":567},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":606},{"__isSmartRef__":true,"id":619},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":658}],[{"__isSmartRef__":true,"id":671},{"__isSmartRef__":true,"id":684},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":710},{"__isSmartRef__":true,"id":723},{"__isSmartRef__":true,"id":736},{"__isSmartRef__":true,"id":749},{"__isSmartRef__":true,"id":762},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":788}],[{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":814},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":866},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":892},{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":918}],[{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":944},{"__isSmartRef__":true,"id":957},{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":983},{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":1009},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1035},{"__isSmartRef__":true,"id":1048}],[{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1113},{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1152},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1178}],[{"__isSmartRef__":true,"id":1191},{"__isSmartRef__":true,"id":1204},{"__isSmartRef__":true,"id":1217},{"__isSmartRef__":true,"id":1230},{"__isSmartRef__":true,"id":1243},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1269},{"__isSmartRef__":true,"id":1282},{"__isSmartRef__":true,"id":1295},{"__isSmartRef__":true,"id":1308}],[{"__isSmartRef__":true,"id":1321},{"__isSmartRef__":true,"id":1334},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1360},{"__isSmartRef__":true,"id":1373},{"__isSmartRef__":true,"id":1386},{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1438}]],"container":{"__isSmartRef__":true,"id":17},"colWidths":[80,80,80,80,80,80,80,80,80,80],"rowHeights":[30,30,30,30,30,30,30,30,30,30,30],"__LivelyClassName__":"lively.morphic.Layout.GridLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"1462":{"x":44,"y":421,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1463":{"x":612,"y":16,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1464":{"sourceObj":{"__isSmartRef__":true,"id":17},"sourceAttrName":"activeCell","targetObj":{"__isSmartRef__":true,"id":1465},"targetMethodName":"textString","converterString":"function (cell) { \n // inspect(cell);\n if (cell === null) return 'null'\n return cell.evalExpression || cell.textString}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1481},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1482},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1465":{"submorphs":[],"scripts":[],"id":"37B91BB8-E98E-4C96-8E12-F318A86DBE9F","shape":{"__isSmartRef__":true,"id":1466},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1472},"_MaxTextWidth":476,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1469},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"InputField","partsBinMetaInfo":{"__isSmartRef__":true,"id":1473},"textChunks":[{"__isSmartRef__":true,"id":1474}],"charsReplaced":"s","lastFindLoc":6,"priorSelectionRange":[5,5],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1476},"renderContextTable":{"__isSmartRef__":true,"id":1477},"eventHandler":{"__isSmartRef__":true,"id":1478},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":1479},"_ClipMode":"visible","derivationIds":[355],"_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":0},"_MinTextWidth":476,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[6,6],"distanceToDragEvent":{"__isSmartRef__":true,"id":1480},"__LivelyClassName__":"lively.morphic.Text"},"1466":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1467},"_Extent":{"__isSmartRef__":true,"id":1468},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1469},"renderContextTable":{"__isSmartRef__":true,"id":1470},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1471},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1467":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1468":{"x":476,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1469":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1470":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1471":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1472":{"x":10,"y":278,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1473":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1474":{"style":{"__isSmartRef__":true,"id":1475},"chunkOwner":{"__isSmartRef__":true,"id":1465},"storedString":"cell(1,0)+cell(1,1)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1475":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1476":{"x":476,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1477":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1478":{"morph":{"__isSmartRef__":true,"id":1465},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1479":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1480":{"x":325,"y":-12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1481":{"source":{"__isSmartRef__":true,"id":17},"target":{"__isSmartRef__":true,"id":1465}},"1482":{"converter":{"__isSmartRef__":true,"id":1483}},"1483":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1481},"source":"function (cell) { \n // inspect(cell);\n if (cell === null) return 'null'\n return cell.evalExpression || cell.textString}","funcProperties":{"__isSmartRef__":true,"id":1484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1484":{},"1485":{"renderFunction":{"__isSmartRef__":true,"id":1486},"setupConnections":{"__isSmartRef__":true,"id":1489}},"1486":{"varMapping":{"__isSmartRef__":true,"id":1487},"source":"function renderFunction(value) { return value; }","funcProperties":{"__isSmartRef__":true,"id":1488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1487":{"this":{"__isSmartRef__":true,"id":17}},"1488":{},"1489":{"varMapping":{"__isSmartRef__":true,"id":1490},"source":"function setupConnections() {\n connect(this, 'activeCell', this.get('InputField'), 'textString', {\n converter: function(cell) { \n // inspect(cell);\n if (cell === null) return 'null'\n return cell.evalExpression || cell.textString}\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1490":{"this":{"__isSmartRef__":true,"id":17}},"1491":{"timestamp":{"__isSmartRef__":true,"id":1492},"user":"ohshima","tags":[]},"1492":{"isSerializedDate":true,"string":"Tue Jan 17 2012 15:15:31 GMT-0800 (PST)"},"1493":{"submorphs":[{"__isSmartRef__":true,"id":1494},{"__isSmartRef__":true,"id":5440},{"__isSmartRef__":true,"id":5477}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5626},"id":"9A8E31D2-5496-43BC-A6C9-4E8C2C662CE4","renderContextTable":{"__isSmartRef__":true,"id":5630},"eventHandler":{"__isSmartRef__":true,"id":5631},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":5632},"LK2":true,"_Position":{"__isSmartRef__":true,"id":5633},"priorExtent":{"__isSmartRef__":true,"id":5634},"targetMorph":{"__isSmartRef__":true,"id":1494},"titleBar":{"__isSmartRef__":true,"id":5477},"contentOffset":{"__isSmartRef__":true,"id":5635},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5636},"name":"Explorer","prevDragPos":{"__isSmartRef__":true,"id":5675},"isBeingDragged":false,"highlighted":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","explorer":{"__isSmartRef__":true,"id":1494},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"minExtent":{"__isSmartRef__":true,"id":5676},"derivationIds":[369,"5976C77B-5C20-4DC4-BDA1-A2269E9FEC17","8A4661CC-271E-4CA9-9B42-C428E5DCCB01","B002D7D6-4167-4D6A-8981-E569CE5EE4CC","21A298C5-87D3-4C5F-8FB6-34DB19723B44"],"_Rotation":0,"_Scale":1.0141055623885957,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5677},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"1494":{"submorphs":[{"__isSmartRef__":true,"id":1495},{"__isSmartRef__":true,"id":5379}],"scripts":[],"id":"18939261-F7E3-44AC-872D-41B03668BAE3","shape":{"__isSmartRef__":true,"id":5406},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5413},"showsHalos":false,"name":"ExplorerPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":5414},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5417},"eventHandler":{"__isSmartRef__":true,"id":5418},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":1493},"priorExtent":{"__isSmartRef__":true,"id":5419},"distanceToDragEvent":{"__isSmartRef__":true,"id":5420},"layout":{"__isSmartRef__":true,"id":5421},"workspace":{"__isSmartRef__":true,"id":5379},"treeView":{"__isSmartRef__":true,"id":1495},"focusedNode":{"__isSmartRef__":true,"id":1498},"isInLayoutCycle":false,"prevScroll":[0,0],"derivationIds":[370,"19EB328E-FFB1-41CD-B181-A60FCF27908C","D1C1A399-6222-405C-A922-2ADD2DFBFB56","F7B66347-DB63-470F-8ABC-5C342E31BC5E","7A83A60F-0956-4BD5-AFDB-B7CFECEF9E30"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5423},"__LivelyClassName__":"lively.morphic.Box"},"1495":{"submorphs":[{"__isSmartRef__":true,"id":1496}],"scripts":[{"__isSmartRef__":true,"id":5276}],"id":"652A396A-5EE6-4B7E-9C15-B08A2316D388","shape":{"__isSmartRef__":true,"id":5277},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5283},"showsHalos":false,"name":"TreeView","partsBinMetaInfo":{"__isSmartRef__":true,"id":5284},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5285},"eventHandler":{"__isSmartRef__":true,"id":5286},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":5287},"layout":{"__isSmartRef__":true,"id":5288},"isInLayoutCycle":false,"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":1494},"distanceToDragEvent":{"__isSmartRef__":true,"id":5290},"colors":{"__isSmartRef__":true,"id":5291},"fonts":{"__isSmartRef__":true,"id":5292},"sizes":{"__isSmartRef__":true,"id":5293},"rootNode":{"__isSmartRef__":true,"id":1498},"prevScroll":[0,0],"derivationIds":[371,"5F72E9BF-51FA-45DD-9F01-ADDC32FBF64C","4B46569F-B458-41CF-846F-31DB325C55FE","BC2E4190-4592-4E2C-8644-51CA0FC16963","DBB73829-F82D-45F0-8499-2332C8C0487E"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5298},"__LivelyClassName__":"lively.morphic.Box"},"1496":{"submorphs":[{"__isSmartRef__":true,"id":1497}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5258},"derivationIds":[null],"id":"25F8FC85-D960-4498-A9A9-E57A9759BCDF","renderContextTable":{"__isSmartRef__":true,"id":5263},"eventHandler":{"__isSmartRef__":true,"id":5264},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5265},"_ClipMode":"scroll","layout":{"__isSmartRef__":true,"id":5266},"grabbingEnabled":false,"draggingEnabled":false,"name":"TreeViewScrollPane","owner":{"__isSmartRef__":true,"id":1495},"priorExtent":{"__isSmartRef__":true,"id":5267},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5268},"__LivelyClassName__":"lively.morphic.Clip","__SourceModuleName__":"Global.lively.morphic.Core"},"1497":{"submorphs":[{"__isSmartRef__":true,"id":1498},{"__isSmartRef__":true,"id":1606}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5240},"derivationIds":[null],"id":"351DC428-CC0E-4166-A21A-03356FBA1B3C","renderContextTable":{"__isSmartRef__":true,"id":5245},"eventHandler":{"__isSmartRef__":true,"id":5246},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5247},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5249},"owner":{"__isSmartRef__":true,"id":1496},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5250},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1498":{"submorphs":[{"__isSmartRef__":true,"id":1499},{"__isSmartRef__":true,"id":1521}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1540},"derivationIds":[null],"id":"814D62F9-27CC-4E65-8900-9C4F6DCE3EEB","renderContextTable":{"__isSmartRef__":true,"id":1545},"eventHandler":{"__isSmartRef__":true,"id":1546},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1547},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":306},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","_WhiteSpaceHandling","cachedTextString","textChunks","eventHandler","grabbingEnabled","droppingEnabled","halosEnabled","_ClipMode","fixedWidth","fixedHeight","allowInput","_FontFamily","_FontSize","charsTyped","evalEnabled","evalExpression","doitContext","priorExtent","_MaxTextWidth","_MinTextWidth","_MaxTextHeight","_MinTextHeight","grid","owner","gridCoords","name","_Position","priorSelectionRange","previousSelection","isBeingDragged","charsReplaced","lastFindLoc","showsHalos","halos"],"level":0,"treeView":{"__isSmartRef__":true,"id":1495},"label":"Properties","children":[{"__isSmartRef__":true,"id":1548},{"__isSmartRef__":true,"id":1608},{"__isSmartRef__":true,"id":1697},{"__isSmartRef__":true,"id":1786},{"__isSmartRef__":true,"id":1875},{"__isSmartRef__":true,"id":1964},{"__isSmartRef__":true,"id":2053},{"__isSmartRef__":true,"id":2142},{"__isSmartRef__":true,"id":2231},{"__isSmartRef__":true,"id":2320},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2499},{"__isSmartRef__":true,"id":2588},{"__isSmartRef__":true,"id":2677},{"__isSmartRef__":true,"id":2766},{"__isSmartRef__":true,"id":2855},{"__isSmartRef__":true,"id":2944},{"__isSmartRef__":true,"id":3033},{"__isSmartRef__":true,"id":3122},{"__isSmartRef__":true,"id":3211},{"__isSmartRef__":true,"id":3300},{"__isSmartRef__":true,"id":3389},{"__isSmartRef__":true,"id":3478},{"__isSmartRef__":true,"id":3567},{"__isSmartRef__":true,"id":3655},{"__isSmartRef__":true,"id":3744},{"__isSmartRef__":true,"id":3832},{"__isSmartRef__":true,"id":3921},{"__isSmartRef__":true,"id":4010},{"__isSmartRef__":true,"id":4099},{"__isSmartRef__":true,"id":4188},{"__isSmartRef__":true,"id":4277},{"__isSmartRef__":true,"id":4365},{"__isSmartRef__":true,"id":4454},{"__isSmartRef__":true,"id":4543},{"__isSmartRef__":true,"id":4632},{"__isSmartRef__":true,"id":4721},{"__isSmartRef__":true,"id":4810},{"__isSmartRef__":true,"id":4899},{"__isSmartRef__":true,"id":4988},{"__isSmartRef__":true,"id":5077}],"parent":null,"expander":{"__isSmartRef__":true,"id":1499},"text":{"__isSmartRef__":true,"id":1521},"owner":{"__isSmartRef__":true,"id":1497},"_Position":{"__isSmartRef__":true,"id":5218},"priorExtent":{"__isSmartRef__":true,"id":5219},"_Rotation":0,"_Scale":1.0141055623885957,"childrenWrapper":{"__isSmartRef__":true,"id":1606},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5220},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1499":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1500},"derivationIds":[null],"id":"3696A913-C8E3-4839-841A-5C4087D37386","renderContextTable":{"__isSmartRef__":true,"id":1507},"eventHandler":{"__isSmartRef__":true,"id":1508},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1509},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":true,"owner":{"__isSmartRef__":true,"id":1498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1510},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"1500":{"_Position":{"__isSmartRef__":true,"id":1501},"renderContextTable":{"__isSmartRef__":true,"id":1502},"_Extent":{"__isSmartRef__":true,"id":1503},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1504},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1501":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1502":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1503":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1504":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1505":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1506":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1507":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1508":{"morph":{"__isSmartRef__":true,"id":1499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1509":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1510":{"toggle":{"__isSmartRef__":true,"id":1511},"toggleExpansion":{"__isSmartRef__":true,"id":1518}},"1511":{"varMapping":{"__isSmartRef__":true,"id":1512},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":1517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1512":{"this":{"__isSmartRef__":true,"id":1499},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1513}},"1513":{"$super":{"__isSmartRef__":true,"id":1514}},"1514":{"varMapping":{"__isSmartRef__":true,"id":1515},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1515":{"obj":{"__isSmartRef__":true,"id":1499},"name":"toggle"},"1516":{},"1517":{},"1518":{"varMapping":{"__isSmartRef__":true,"id":1519},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":1520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1519":{"this":{"__isSmartRef__":true,"id":1499}},"1520":{},"1521":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1522},"derivationIds":[null],"id":"2F98D57C-D3FC-4054-A1BA-1F6BBB773CEF","renderContextTable":{"__isSmartRef__":true,"id":1527},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":1528},{"__isSmartRef__":true,"id":1530}],"eventHandler":{"__isSmartRef__":true,"id":1533},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1534},"priorExtent":{"__isSmartRef__":true,"id":1535},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1536},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1522":{"_Position":{"__isSmartRef__":true,"id":1523},"renderContextTable":{"__isSmartRef__":true,"id":1524},"_Extent":{"__isSmartRef__":true,"id":1525},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1526},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1523":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1524":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1525":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1526":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1527":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1528":{"style":{"__isSmartRef__":true,"id":1529},"chunkOwner":{"__isSmartRef__":true,"id":1521},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1529":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1530":{"style":{"__isSmartRef__":true,"id":1531},"chunkOwner":{"__isSmartRef__":true,"id":1521},"storedString":": [2;1]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1531":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1532":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1533":{"morph":{"__isSmartRef__":true,"id":1521},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1534":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1535":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1536":{"layoutText":{"__isSmartRef__":true,"id":1537}},"1537":{"varMapping":{"__isSmartRef__":true,"id":1538},"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":1539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1538":{"this":{"__isSmartRef__":true,"id":1521}},"1539":{},"1540":{"_Position":{"__isSmartRef__":true,"id":1541},"renderContextTable":{"__isSmartRef__":true,"id":1542},"_Extent":{"__isSmartRef__":true,"id":1543},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1544},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1541":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1542":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1543":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1544":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1545":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1546":{"morph":{"__isSmartRef__":true,"id":1498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1547":{"resizeWidth":true},"1548":{"submorphs":[{"__isSmartRef__":true,"id":1549},{"__isSmartRef__":true,"id":1570}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1587},"derivationIds":[null],"id":"ED67B135-02AA-47D8-B819-311A467E4B45","renderContextTable":{"__isSmartRef__":true,"id":1592},"eventHandler":{"__isSmartRef__":true,"id":1593},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1594},"grabbingEnabled":false,"draggingEnabled":false,"data":"visible","propertyList":["0","1","2","3","4","5","6"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_ClipMode","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":1549},"text":{"__isSmartRef__":true,"id":1570},"owner":{"__isSmartRef__":true,"id":1595},"_Position":{"__isSmartRef__":true,"id":5196},"priorExtent":{"__isSmartRef__":true,"id":5197},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5198},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1549":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1550},"derivationIds":[null],"id":"29824672-8D2E-4203-9949-CEF8A660154F","renderContextTable":{"__isSmartRef__":true,"id":1556},"eventHandler":{"__isSmartRef__":true,"id":1557},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1558},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":1548},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1559},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"1550":{"_Position":{"__isSmartRef__":true,"id":1551},"renderContextTable":{"__isSmartRef__":true,"id":1552},"_Extent":{"__isSmartRef__":true,"id":1553},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1554},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":1555},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1551":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1552":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1553":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1554":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1555":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1557":{"morph":{"__isSmartRef__":true,"id":1549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1558":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1559":{"toggle":{"__isSmartRef__":true,"id":1560},"toggleExpansion":{"__isSmartRef__":true,"id":1567}},"1560":{"varMapping":{"__isSmartRef__":true,"id":1561},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":1566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1561":{"this":{"__isSmartRef__":true,"id":1549},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1562}},"1562":{"$super":{"__isSmartRef__":true,"id":1563}},"1563":{"varMapping":{"__isSmartRef__":true,"id":1564},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1564":{"obj":{"__isSmartRef__":true,"id":1549},"name":"toggle"},"1565":{},"1566":{},"1567":{"varMapping":{"__isSmartRef__":true,"id":1568},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":1569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1568":{"this":{"__isSmartRef__":true,"id":1549}},"1569":{},"1570":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1571},"derivationIds":[null],"id":"0BF70DAA-B7BF-400D-AA9F-DF57ED6D0614","renderContextTable":{"__isSmartRef__":true,"id":1575},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":1576},{"__isSmartRef__":true,"id":1578}],"eventHandler":{"__isSmartRef__":true,"id":1580},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1581},"priorExtent":{"__isSmartRef__":true,"id":1582},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1548},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1583},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1571":{"_Position":{"__isSmartRef__":true,"id":1572},"renderContextTable":{"__isSmartRef__":true,"id":1573},"_Extent":{"__isSmartRef__":true,"id":1574},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1572":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1573":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1574":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1575":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1576":{"style":{"__isSmartRef__":true,"id":1577},"chunkOwner":{"__isSmartRef__":true,"id":1570},"storedString":"_ClipMode","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1577":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1578":{"style":{"__isSmartRef__":true,"id":1579},"chunkOwner":{"__isSmartRef__":true,"id":1570},"storedString":": visible","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1579":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1580":{"morph":{"__isSmartRef__":true,"id":1570},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1581":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1582":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1583":{"layoutText":{"__isSmartRef__":true,"id":1584}},"1584":{"varMapping":{"__isSmartRef__":true,"id":1585},"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":1586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1585":{"this":{"__isSmartRef__":true,"id":1570}},"1586":{},"1587":{"_Position":{"__isSmartRef__":true,"id":1588},"renderContextTable":{"__isSmartRef__":true,"id":1589},"_Extent":{"__isSmartRef__":true,"id":1590},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1591},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1588":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1589":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1590":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1591":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1592":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1593":{"morph":{"__isSmartRef__":true,"id":1548},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1594":{"resizeWidth":true},"1595":{"submorphs":[{"__isSmartRef__":true,"id":1548}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1596},"derivationIds":[null],"id":"2DC99315-7847-437D-A8E3-DD0502EF3992","renderContextTable":{"__isSmartRef__":true,"id":1601},"eventHandler":{"__isSmartRef__":true,"id":1602},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1603},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":1605},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":5187},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5188},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1596":{"_Position":{"__isSmartRef__":true,"id":1597},"renderContextTable":{"__isSmartRef__":true,"id":1598},"_Extent":{"__isSmartRef__":true,"id":1599},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1600},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1597":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1598":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1599":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1600":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1601":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1602":{"morph":{"__isSmartRef__":true,"id":1595},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1603":{"layouter":{"__isSmartRef__":true,"id":1604},"resizeWidth":true},"1604":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1595},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"1605":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1606":{"submorphs":[{"__isSmartRef__":true,"id":1595},{"__isSmartRef__":true,"id":1607},{"__isSmartRef__":true,"id":1696},{"__isSmartRef__":true,"id":1785},{"__isSmartRef__":true,"id":1874},{"__isSmartRef__":true,"id":1963},{"__isSmartRef__":true,"id":2052},{"__isSmartRef__":true,"id":2141},{"__isSmartRef__":true,"id":2230},{"__isSmartRef__":true,"id":2319},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2498},{"__isSmartRef__":true,"id":2587},{"__isSmartRef__":true,"id":2676},{"__isSmartRef__":true,"id":2765},{"__isSmartRef__":true,"id":2854},{"__isSmartRef__":true,"id":2943},{"__isSmartRef__":true,"id":3032},{"__isSmartRef__":true,"id":3121},{"__isSmartRef__":true,"id":3210},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3388},{"__isSmartRef__":true,"id":3477},{"__isSmartRef__":true,"id":3566},{"__isSmartRef__":true,"id":3654},{"__isSmartRef__":true,"id":3743},{"__isSmartRef__":true,"id":3831},{"__isSmartRef__":true,"id":3920},{"__isSmartRef__":true,"id":4009},{"__isSmartRef__":true,"id":4098},{"__isSmartRef__":true,"id":4187},{"__isSmartRef__":true,"id":4276},{"__isSmartRef__":true,"id":4364},{"__isSmartRef__":true,"id":4453},{"__isSmartRef__":true,"id":4542},{"__isSmartRef__":true,"id":4631},{"__isSmartRef__":true,"id":4720},{"__isSmartRef__":true,"id":4809},{"__isSmartRef__":true,"id":4898},{"__isSmartRef__":true,"id":4987},{"__isSmartRef__":true,"id":5076}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5165},"derivationIds":[null],"id":"4F71FDE8-7926-497A-B286-EEB294B7DD39","renderContextTable":{"__isSmartRef__":true,"id":5170},"eventHandler":{"__isSmartRef__":true,"id":5171},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5172},"owner":{"__isSmartRef__":true,"id":1497},"_Position":{"__isSmartRef__":true,"id":5174},"priorExtent":{"__isSmartRef__":true,"id":5175},"isInLayoutCycle":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5176},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1607":{"submorphs":[{"__isSmartRef__":true,"id":1608}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1677},"derivationIds":[null],"id":"567F0013-1BCE-4D6B-A504-0D4039A82FA1","renderContextTable":{"__isSmartRef__":true,"id":1682},"eventHandler":{"__isSmartRef__":true,"id":1683},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1684},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":1686},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":1687},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1688},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1608":{"submorphs":[{"__isSmartRef__":true,"id":1609},{"__isSmartRef__":true,"id":1630}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1647},"derivationIds":[null],"id":"73C65B6A-A0CA-4CB4-97CE-97028D189712","renderContextTable":{"__isSmartRef__":true,"id":1652},"eventHandler":{"__isSmartRef__":true,"id":1653},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1654},"grabbingEnabled":false,"draggingEnabled":false,"data":"Helvetica","propertyList":["0","1","2","3","4","5","6","7","8"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_FontFamily","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":1609},"text":{"__isSmartRef__":true,"id":1630},"owner":{"__isSmartRef__":true,"id":1607},"_Position":{"__isSmartRef__":true,"id":1655},"priorExtent":{"__isSmartRef__":true,"id":1656},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1657},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1609":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1610},"derivationIds":[null],"id":"869DD27A-AC0A-4427-A698-093B466A5E31","renderContextTable":{"__isSmartRef__":true,"id":1616},"eventHandler":{"__isSmartRef__":true,"id":1617},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1618},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":1608},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1619},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"1610":{"_Position":{"__isSmartRef__":true,"id":1611},"renderContextTable":{"__isSmartRef__":true,"id":1612},"_Extent":{"__isSmartRef__":true,"id":1613},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1614},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":1615},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1611":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1612":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1613":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1614":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1615":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1616":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1617":{"morph":{"__isSmartRef__":true,"id":1609},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1618":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1619":{"toggle":{"__isSmartRef__":true,"id":1620},"toggleExpansion":{"__isSmartRef__":true,"id":1627}},"1620":{"varMapping":{"__isSmartRef__":true,"id":1621},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":1626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1621":{"this":{"__isSmartRef__":true,"id":1609},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1622}},"1622":{"$super":{"__isSmartRef__":true,"id":1623}},"1623":{"varMapping":{"__isSmartRef__":true,"id":1624},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1624":{"obj":{"__isSmartRef__":true,"id":1609},"name":"toggle"},"1625":{},"1626":{},"1627":{"varMapping":{"__isSmartRef__":true,"id":1628},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":1629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1628":{"this":{"__isSmartRef__":true,"id":1609}},"1629":{},"1630":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1631},"derivationIds":[null],"id":"0ACB78F6-0B23-4217-ACE7-7F296924A2FA","renderContextTable":{"__isSmartRef__":true,"id":1635},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":1636},{"__isSmartRef__":true,"id":1638}],"eventHandler":{"__isSmartRef__":true,"id":1640},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1641},"priorExtent":{"__isSmartRef__":true,"id":1642},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1608},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1643},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1631":{"_Position":{"__isSmartRef__":true,"id":1632},"renderContextTable":{"__isSmartRef__":true,"id":1633},"_Extent":{"__isSmartRef__":true,"id":1634},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1632":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1633":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1634":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1635":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1636":{"style":{"__isSmartRef__":true,"id":1637},"chunkOwner":{"__isSmartRef__":true,"id":1630},"storedString":"_FontFamily","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1637":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1638":{"style":{"__isSmartRef__":true,"id":1639},"chunkOwner":{"__isSmartRef__":true,"id":1630},"storedString":": Helvetica","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1639":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1640":{"morph":{"__isSmartRef__":true,"id":1630},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1641":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1642":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1643":{"layoutText":{"__isSmartRef__":true,"id":1644}},"1644":{"varMapping":{"__isSmartRef__":true,"id":1645},"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":1646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1645":{"this":{"__isSmartRef__":true,"id":1630}},"1646":{},"1647":{"_Position":{"__isSmartRef__":true,"id":1648},"renderContextTable":{"__isSmartRef__":true,"id":1649},"_Extent":{"__isSmartRef__":true,"id":1650},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1651},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1648":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1649":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1650":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1651":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1652":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1653":{"morph":{"__isSmartRef__":true,"id":1608},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1654":{"resizeWidth":true},"1655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1656":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1657":{"updateExpanderColor":{"__isSmartRef__":true,"id":1658},"onMouseDown":{"__isSmartRef__":true,"id":1661},"isRoot":{"__isSmartRef__":true,"id":1668},"displayValue":{"__isSmartRef__":true,"id":1671},"update":{"__isSmartRef__":true,"id":1674}},"1658":{"varMapping":{"__isSmartRef__":true,"id":1659},"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":1660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1659":{"this":{"__isSmartRef__":true,"id":1608}},"1660":{},"1661":{"varMapping":{"__isSmartRef__":true,"id":1662},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":1667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1662":{"this":{"__isSmartRef__":true,"id":1608},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1663}},"1663":{"$super":{"__isSmartRef__":true,"id":1664}},"1664":{"varMapping":{"__isSmartRef__":true,"id":1665},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1665":{"obj":{"__isSmartRef__":true,"id":1608},"name":"onMouseDown"},"1666":{},"1667":{},"1668":{"varMapping":{"__isSmartRef__":true,"id":1669},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":1670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1669":{"this":{"__isSmartRef__":true,"id":1608}},"1670":{},"1671":{"varMapping":{"__isSmartRef__":true,"id":1672},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":1673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1672":{"this":{"__isSmartRef__":true,"id":1608}},"1673":{},"1674":{"varMapping":{"__isSmartRef__":true,"id":1675},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1675":{"this":{"__isSmartRef__":true,"id":1608}},"1676":{},"1677":{"_Position":{"__isSmartRef__":true,"id":1678},"renderContextTable":{"__isSmartRef__":true,"id":1679},"_Extent":{"__isSmartRef__":true,"id":1680},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1681},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1678":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1679":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1680":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1681":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1682":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1683":{"morph":{"__isSmartRef__":true,"id":1607},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1684":{"layouter":{"__isSmartRef__":true,"id":1685},"resizeWidth":true},"1685":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1607},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"1686":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1687":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1688":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":1689}},"1689":{"varMapping":{"__isSmartRef__":true,"id":1690},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":1695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1690":{"this":{"__isSmartRef__":true,"id":1607},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1691}},"1691":{"$super":{"__isSmartRef__":true,"id":1692}},"1692":{"varMapping":{"__isSmartRef__":true,"id":1693},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1693":{"obj":{"__isSmartRef__":true,"id":1607},"name":"getLayoutableSubmorphs"},"1694":{},"1695":{},"1696":{"submorphs":[{"__isSmartRef__":true,"id":1697}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1766},"derivationIds":[null],"id":"8AEF3A14-D92F-413E-A726-D6C960A1B884","renderContextTable":{"__isSmartRef__":true,"id":1771},"eventHandler":{"__isSmartRef__":true,"id":1772},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1773},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":1775},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":1776},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1777},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1697":{"submorphs":[{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1719}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1736},"derivationIds":[null],"id":"5341BFCB-A2D3-46B6-A3CB-748053659C10","renderContextTable":{"__isSmartRef__":true,"id":1741},"eventHandler":{"__isSmartRef__":true,"id":1742},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1743},"grabbingEnabled":false,"draggingEnabled":false,"data":10,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_FontSize","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":1698},"text":{"__isSmartRef__":true,"id":1719},"owner":{"__isSmartRef__":true,"id":1696},"_Position":{"__isSmartRef__":true,"id":1744},"priorExtent":{"__isSmartRef__":true,"id":1745},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1746},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1698":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1699},"derivationIds":[null],"id":"E6FEED7F-D6D3-416B-BBA8-3BED448E26DA","renderContextTable":{"__isSmartRef__":true,"id":1705},"eventHandler":{"__isSmartRef__":true,"id":1706},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1707},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":1697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1708},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"1699":{"_Position":{"__isSmartRef__":true,"id":1700},"renderContextTable":{"__isSmartRef__":true,"id":1701},"_Extent":{"__isSmartRef__":true,"id":1702},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1703},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":1704},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1700":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1701":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1702":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1703":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1704":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1705":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","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":1698},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1707":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1708":{"toggle":{"__isSmartRef__":true,"id":1709},"toggleExpansion":{"__isSmartRef__":true,"id":1716}},"1709":{"varMapping":{"__isSmartRef__":true,"id":1710},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":1715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1710":{"this":{"__isSmartRef__":true,"id":1698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1711}},"1711":{"$super":{"__isSmartRef__":true,"id":1712}},"1712":{"varMapping":{"__isSmartRef__":true,"id":1713},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1713":{"obj":{"__isSmartRef__":true,"id":1698},"name":"toggle"},"1714":{},"1715":{},"1716":{"varMapping":{"__isSmartRef__":true,"id":1717},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":1718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1717":{"this":{"__isSmartRef__":true,"id":1698}},"1718":{},"1719":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1720},"derivationIds":[null],"id":"89B9F5A5-CA88-4626-8EDE-73D83EB2DB30","renderContextTable":{"__isSmartRef__":true,"id":1724},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":1725},{"__isSmartRef__":true,"id":1727}],"eventHandler":{"__isSmartRef__":true,"id":1729},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1730},"priorExtent":{"__isSmartRef__":true,"id":1731},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1732},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1720":{"_Position":{"__isSmartRef__":true,"id":1721},"renderContextTable":{"__isSmartRef__":true,"id":1722},"_Extent":{"__isSmartRef__":true,"id":1723},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1721":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1722":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1723":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1724":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1725":{"style":{"__isSmartRef__":true,"id":1726},"chunkOwner":{"__isSmartRef__":true,"id":1719},"storedString":"_FontSize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1726":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1727":{"style":{"__isSmartRef__":true,"id":1728},"chunkOwner":{"__isSmartRef__":true,"id":1719},"storedString":": 10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1728":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1729":{"morph":{"__isSmartRef__":true,"id":1719},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1730":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1731":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1732":{"layoutText":{"__isSmartRef__":true,"id":1733}},"1733":{"varMapping":{"__isSmartRef__":true,"id":1734},"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":1735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1734":{"this":{"__isSmartRef__":true,"id":1719}},"1735":{},"1736":{"_Position":{"__isSmartRef__":true,"id":1737},"renderContextTable":{"__isSmartRef__":true,"id":1738},"_Extent":{"__isSmartRef__":true,"id":1739},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1740},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1737":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1738":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1739":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1740":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1741":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1742":{"morph":{"__isSmartRef__":true,"id":1697},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1743":{"resizeWidth":true},"1744":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1745":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1746":{"updateExpanderColor":{"__isSmartRef__":true,"id":1747},"onMouseDown":{"__isSmartRef__":true,"id":1750},"isRoot":{"__isSmartRef__":true,"id":1757},"displayValue":{"__isSmartRef__":true,"id":1760},"update":{"__isSmartRef__":true,"id":1763}},"1747":{"varMapping":{"__isSmartRef__":true,"id":1748},"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":1749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1748":{"this":{"__isSmartRef__":true,"id":1697}},"1749":{},"1750":{"varMapping":{"__isSmartRef__":true,"id":1751},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":1756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1751":{"this":{"__isSmartRef__":true,"id":1697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1752}},"1752":{"$super":{"__isSmartRef__":true,"id":1753}},"1753":{"varMapping":{"__isSmartRef__":true,"id":1754},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1754":{"obj":{"__isSmartRef__":true,"id":1697},"name":"onMouseDown"},"1755":{},"1756":{},"1757":{"varMapping":{"__isSmartRef__":true,"id":1758},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":1759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1758":{"this":{"__isSmartRef__":true,"id":1697}},"1759":{},"1760":{"varMapping":{"__isSmartRef__":true,"id":1761},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":1762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1761":{"this":{"__isSmartRef__":true,"id":1697}},"1762":{},"1763":{"varMapping":{"__isSmartRef__":true,"id":1764},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1764":{"this":{"__isSmartRef__":true,"id":1697}},"1765":{},"1766":{"_Position":{"__isSmartRef__":true,"id":1767},"renderContextTable":{"__isSmartRef__":true,"id":1768},"_Extent":{"__isSmartRef__":true,"id":1769},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1770},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1767":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1768":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1769":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1770":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1771":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1772":{"morph":{"__isSmartRef__":true,"id":1696},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1773":{"layouter":{"__isSmartRef__":true,"id":1774},"resizeWidth":true},"1774":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1696},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"1775":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1776":{"x":0,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1777":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":1778}},"1778":{"varMapping":{"__isSmartRef__":true,"id":1779},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":1784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1779":{"this":{"__isSmartRef__":true,"id":1696},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1780}},"1780":{"$super":{"__isSmartRef__":true,"id":1781}},"1781":{"varMapping":{"__isSmartRef__":true,"id":1782},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1782":{"obj":{"__isSmartRef__":true,"id":1696},"name":"getLayoutableSubmorphs"},"1783":{},"1784":{},"1785":{"submorphs":[{"__isSmartRef__":true,"id":1786}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1855},"derivationIds":[null],"id":"EAD798D9-A97B-4E3D-A901-ABDD9718E509","renderContextTable":{"__isSmartRef__":true,"id":1860},"eventHandler":{"__isSmartRef__":true,"id":1861},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1862},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":1864},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":1865},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1866},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1786":{"submorphs":[{"__isSmartRef__":true,"id":1787},{"__isSmartRef__":true,"id":1808}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1825},"derivationIds":[null],"id":"09E353CB-6809-4CE9-9C43-A6E977021609","renderContextTable":{"__isSmartRef__":true,"id":1830},"eventHandler":{"__isSmartRef__":true,"id":1831},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1832},"grabbingEnabled":false,"draggingEnabled":false,"data":null,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_MaxTextHeight","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":1787},"text":{"__isSmartRef__":true,"id":1808},"owner":{"__isSmartRef__":true,"id":1785},"_Position":{"__isSmartRef__":true,"id":1833},"priorExtent":{"__isSmartRef__":true,"id":1834},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1835},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1787":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1788},"derivationIds":[null],"id":"CC78547D-C906-4688-8AFF-286B8920FEE6","renderContextTable":{"__isSmartRef__":true,"id":1794},"eventHandler":{"__isSmartRef__":true,"id":1795},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1796},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":1786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1797},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"1788":{"_Position":{"__isSmartRef__":true,"id":1789},"renderContextTable":{"__isSmartRef__":true,"id":1790},"_Extent":{"__isSmartRef__":true,"id":1791},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1792},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":1793},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1789":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1790":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1791":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1792":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1793":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1794":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1795":{"morph":{"__isSmartRef__":true,"id":1787},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1796":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1797":{"toggle":{"__isSmartRef__":true,"id":1798},"toggleExpansion":{"__isSmartRef__":true,"id":1805}},"1798":{"varMapping":{"__isSmartRef__":true,"id":1799},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":1804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1799":{"this":{"__isSmartRef__":true,"id":1787},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1800}},"1800":{"$super":{"__isSmartRef__":true,"id":1801}},"1801":{"varMapping":{"__isSmartRef__":true,"id":1802},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1802":{"obj":{"__isSmartRef__":true,"id":1787},"name":"toggle"},"1803":{},"1804":{},"1805":{"varMapping":{"__isSmartRef__":true,"id":1806},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":1807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1806":{"this":{"__isSmartRef__":true,"id":1787}},"1807":{},"1808":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1809},"derivationIds":[null],"id":"07F0E106-AA2B-423D-9D42-31DAAEDE2931","renderContextTable":{"__isSmartRef__":true,"id":1813},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":1814},{"__isSmartRef__":true,"id":1816}],"eventHandler":{"__isSmartRef__":true,"id":1818},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1819},"priorExtent":{"__isSmartRef__":true,"id":1820},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1821},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1809":{"_Position":{"__isSmartRef__":true,"id":1810},"renderContextTable":{"__isSmartRef__":true,"id":1811},"_Extent":{"__isSmartRef__":true,"id":1812},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1810":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1811":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1812":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1813":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1814":{"style":{"__isSmartRef__":true,"id":1815},"chunkOwner":{"__isSmartRef__":true,"id":1808},"storedString":"_MaxTextHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1815":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1816":{"style":{"__isSmartRef__":true,"id":1817},"chunkOwner":{"__isSmartRef__":true,"id":1808},"storedString":": NaN","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1817":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1818":{"morph":{"__isSmartRef__":true,"id":1808},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1819":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1820":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1821":{"layoutText":{"__isSmartRef__":true,"id":1822}},"1822":{"varMapping":{"__isSmartRef__":true,"id":1823},"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":1824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1823":{"this":{"__isSmartRef__":true,"id":1808}},"1824":{},"1825":{"_Position":{"__isSmartRef__":true,"id":1826},"renderContextTable":{"__isSmartRef__":true,"id":1827},"_Extent":{"__isSmartRef__":true,"id":1828},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1829},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1826":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1827":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1828":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1829":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1830":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1831":{"morph":{"__isSmartRef__":true,"id":1786},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1832":{"resizeWidth":true},"1833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1834":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1835":{"updateExpanderColor":{"__isSmartRef__":true,"id":1836},"onMouseDown":{"__isSmartRef__":true,"id":1839},"isRoot":{"__isSmartRef__":true,"id":1846},"displayValue":{"__isSmartRef__":true,"id":1849},"update":{"__isSmartRef__":true,"id":1852}},"1836":{"varMapping":{"__isSmartRef__":true,"id":1837},"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":1838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1837":{"this":{"__isSmartRef__":true,"id":1786}},"1838":{},"1839":{"varMapping":{"__isSmartRef__":true,"id":1840},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":1845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1840":{"this":{"__isSmartRef__":true,"id":1786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1841}},"1841":{"$super":{"__isSmartRef__":true,"id":1842}},"1842":{"varMapping":{"__isSmartRef__":true,"id":1843},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1843":{"obj":{"__isSmartRef__":true,"id":1786},"name":"onMouseDown"},"1844":{},"1845":{},"1846":{"varMapping":{"__isSmartRef__":true,"id":1847},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":1848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1847":{"this":{"__isSmartRef__":true,"id":1786}},"1848":{},"1849":{"varMapping":{"__isSmartRef__":true,"id":1850},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":1851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1850":{"this":{"__isSmartRef__":true,"id":1786}},"1851":{},"1852":{"varMapping":{"__isSmartRef__":true,"id":1853},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1853":{"this":{"__isSmartRef__":true,"id":1786}},"1854":{},"1855":{"_Position":{"__isSmartRef__":true,"id":1856},"renderContextTable":{"__isSmartRef__":true,"id":1857},"_Extent":{"__isSmartRef__":true,"id":1858},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1856":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1857":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1858":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1859":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1861":{"morph":{"__isSmartRef__":true,"id":1785},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1862":{"layouter":{"__isSmartRef__":true,"id":1863},"resizeWidth":true},"1863":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1785},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"1864":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1865":{"x":0,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1866":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":1867}},"1867":{"varMapping":{"__isSmartRef__":true,"id":1868},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":1873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1868":{"this":{"__isSmartRef__":true,"id":1785},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1869}},"1869":{"$super":{"__isSmartRef__":true,"id":1870}},"1870":{"varMapping":{"__isSmartRef__":true,"id":1871},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1871":{"obj":{"__isSmartRef__":true,"id":1785},"name":"getLayoutableSubmorphs"},"1872":{},"1873":{},"1874":{"submorphs":[{"__isSmartRef__":true,"id":1875}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1944},"derivationIds":[null],"id":"0BB760BF-AA04-475A-BB0C-47140E0BBC55","renderContextTable":{"__isSmartRef__":true,"id":1949},"eventHandler":{"__isSmartRef__":true,"id":1950},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1951},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":1953},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":1954},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1955},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1875":{"submorphs":[{"__isSmartRef__":true,"id":1876},{"__isSmartRef__":true,"id":1897}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1914},"derivationIds":[null],"id":"404B784E-384E-4350-B227-FBB2DDD6881B","renderContextTable":{"__isSmartRef__":true,"id":1919},"eventHandler":{"__isSmartRef__":true,"id":1920},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1921},"grabbingEnabled":false,"draggingEnabled":false,"data":68,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_MaxTextWidth","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":1876},"text":{"__isSmartRef__":true,"id":1897},"owner":{"__isSmartRef__":true,"id":1874},"_Position":{"__isSmartRef__":true,"id":1922},"priorExtent":{"__isSmartRef__":true,"id":1923},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1924},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1876":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1877},"derivationIds":[null],"id":"8CCC2E7D-5F7E-4368-A12A-4A4BC31668B6","renderContextTable":{"__isSmartRef__":true,"id":1883},"eventHandler":{"__isSmartRef__":true,"id":1884},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1885},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":1875},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1886},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"1877":{"_Position":{"__isSmartRef__":true,"id":1878},"renderContextTable":{"__isSmartRef__":true,"id":1879},"_Extent":{"__isSmartRef__":true,"id":1880},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1881},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":1882},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1878":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1879":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1880":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1881":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1882":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1883":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1884":{"morph":{"__isSmartRef__":true,"id":1876},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1885":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1886":{"toggle":{"__isSmartRef__":true,"id":1887},"toggleExpansion":{"__isSmartRef__":true,"id":1894}},"1887":{"varMapping":{"__isSmartRef__":true,"id":1888},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":1893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1888":{"this":{"__isSmartRef__":true,"id":1876},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1889}},"1889":{"$super":{"__isSmartRef__":true,"id":1890}},"1890":{"varMapping":{"__isSmartRef__":true,"id":1891},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1891":{"obj":{"__isSmartRef__":true,"id":1876},"name":"toggle"},"1892":{},"1893":{},"1894":{"varMapping":{"__isSmartRef__":true,"id":1895},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":1896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1895":{"this":{"__isSmartRef__":true,"id":1876}},"1896":{},"1897":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1898},"derivationIds":[null],"id":"1B22B628-6B7B-4720-814E-9BD4CB333AB1","renderContextTable":{"__isSmartRef__":true,"id":1902},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":1903},{"__isSmartRef__":true,"id":1905}],"eventHandler":{"__isSmartRef__":true,"id":1907},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1908},"priorExtent":{"__isSmartRef__":true,"id":1909},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1875},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1910},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1898":{"_Position":{"__isSmartRef__":true,"id":1899},"renderContextTable":{"__isSmartRef__":true,"id":1900},"_Extent":{"__isSmartRef__":true,"id":1901},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1899":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1900":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1901":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1902":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1903":{"style":{"__isSmartRef__":true,"id":1904},"chunkOwner":{"__isSmartRef__":true,"id":1897},"storedString":"_MaxTextWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1904":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1905":{"style":{"__isSmartRef__":true,"id":1906},"chunkOwner":{"__isSmartRef__":true,"id":1897},"storedString":": 68","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1906":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1907":{"morph":{"__isSmartRef__":true,"id":1897},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1908":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1909":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1910":{"layoutText":{"__isSmartRef__":true,"id":1911}},"1911":{"varMapping":{"__isSmartRef__":true,"id":1912},"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":1913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1912":{"this":{"__isSmartRef__":true,"id":1897}},"1913":{},"1914":{"_Position":{"__isSmartRef__":true,"id":1915},"renderContextTable":{"__isSmartRef__":true,"id":1916},"_Extent":{"__isSmartRef__":true,"id":1917},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1918},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1915":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1916":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1917":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1918":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1919":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1920":{"morph":{"__isSmartRef__":true,"id":1875},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1921":{"resizeWidth":true},"1922":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1923":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1924":{"updateExpanderColor":{"__isSmartRef__":true,"id":1925},"onMouseDown":{"__isSmartRef__":true,"id":1928},"isRoot":{"__isSmartRef__":true,"id":1935},"displayValue":{"__isSmartRef__":true,"id":1938},"update":{"__isSmartRef__":true,"id":1941}},"1925":{"varMapping":{"__isSmartRef__":true,"id":1926},"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":1927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1926":{"this":{"__isSmartRef__":true,"id":1875}},"1927":{},"1928":{"varMapping":{"__isSmartRef__":true,"id":1929},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":1934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1929":{"this":{"__isSmartRef__":true,"id":1875},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1930}},"1930":{"$super":{"__isSmartRef__":true,"id":1931}},"1931":{"varMapping":{"__isSmartRef__":true,"id":1932},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1932":{"obj":{"__isSmartRef__":true,"id":1875},"name":"onMouseDown"},"1933":{},"1934":{},"1935":{"varMapping":{"__isSmartRef__":true,"id":1936},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":1937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1936":{"this":{"__isSmartRef__":true,"id":1875}},"1937":{},"1938":{"varMapping":{"__isSmartRef__":true,"id":1939},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":1940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1939":{"this":{"__isSmartRef__":true,"id":1875}},"1940":{},"1941":{"varMapping":{"__isSmartRef__":true,"id":1942},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1942":{"this":{"__isSmartRef__":true,"id":1875}},"1943":{},"1944":{"_Position":{"__isSmartRef__":true,"id":1945},"renderContextTable":{"__isSmartRef__":true,"id":1946},"_Extent":{"__isSmartRef__":true,"id":1947},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1948},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1945":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1946":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1947":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1948":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1949":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1950":{"morph":{"__isSmartRef__":true,"id":1874},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1951":{"layouter":{"__isSmartRef__":true,"id":1952},"resizeWidth":true},"1952":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1874},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"1953":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1954":{"x":0,"y":80,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1955":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":1956}},"1956":{"varMapping":{"__isSmartRef__":true,"id":1957},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":1962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1957":{"this":{"__isSmartRef__":true,"id":1874},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1958}},"1958":{"$super":{"__isSmartRef__":true,"id":1959}},"1959":{"varMapping":{"__isSmartRef__":true,"id":1960},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1960":{"obj":{"__isSmartRef__":true,"id":1874},"name":"getLayoutableSubmorphs"},"1961":{},"1962":{},"1963":{"submorphs":[{"__isSmartRef__":true,"id":1964}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2033},"derivationIds":[null],"id":"334D234D-4CBB-4297-B0E8-9C58E3A90F62","renderContextTable":{"__isSmartRef__":true,"id":2038},"eventHandler":{"__isSmartRef__":true,"id":2039},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2040},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2042},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2043},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2044},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1964":{"submorphs":[{"__isSmartRef__":true,"id":1965},{"__isSmartRef__":true,"id":1986}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2003},"derivationIds":[null],"id":"71ED721F-DAF4-4036-A7E2-125487EE7738","renderContextTable":{"__isSmartRef__":true,"id":2008},"eventHandler":{"__isSmartRef__":true,"id":2009},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2010},"grabbingEnabled":false,"draggingEnabled":false,"data":null,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_MinTextHeight","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":1965},"text":{"__isSmartRef__":true,"id":1986},"owner":{"__isSmartRef__":true,"id":1963},"_Position":{"__isSmartRef__":true,"id":2011},"priorExtent":{"__isSmartRef__":true,"id":2012},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2013},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"1965":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1966},"derivationIds":[null],"id":"64CB7083-CABD-4690-8635-429F0142E488","renderContextTable":{"__isSmartRef__":true,"id":1972},"eventHandler":{"__isSmartRef__":true,"id":1973},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1974},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":1964},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1975},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"1966":{"_Position":{"__isSmartRef__":true,"id":1967},"renderContextTable":{"__isSmartRef__":true,"id":1968},"_Extent":{"__isSmartRef__":true,"id":1969},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1970},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":1971},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1967":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1968":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1969":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1970":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1971":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1972":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1973":{"morph":{"__isSmartRef__":true,"id":1965},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1974":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1975":{"toggle":{"__isSmartRef__":true,"id":1976},"toggleExpansion":{"__isSmartRef__":true,"id":1983}},"1976":{"varMapping":{"__isSmartRef__":true,"id":1977},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":1982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1977":{"this":{"__isSmartRef__":true,"id":1965},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1978}},"1978":{"$super":{"__isSmartRef__":true,"id":1979}},"1979":{"varMapping":{"__isSmartRef__":true,"id":1980},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1980":{"obj":{"__isSmartRef__":true,"id":1965},"name":"toggle"},"1981":{},"1982":{},"1983":{"varMapping":{"__isSmartRef__":true,"id":1984},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":1985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1984":{"this":{"__isSmartRef__":true,"id":1965}},"1985":{},"1986":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1987},"derivationIds":[null],"id":"821C6ECC-CBA1-4713-B11D-F98B2DA2F76F","renderContextTable":{"__isSmartRef__":true,"id":1991},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":1992},{"__isSmartRef__":true,"id":1994}],"eventHandler":{"__isSmartRef__":true,"id":1996},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":1997},"priorExtent":{"__isSmartRef__":true,"id":1998},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1964},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1999},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1987":{"_Position":{"__isSmartRef__":true,"id":1988},"renderContextTable":{"__isSmartRef__":true,"id":1989},"_Extent":{"__isSmartRef__":true,"id":1990},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1988":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1989":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1990":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1991":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1992":{"style":{"__isSmartRef__":true,"id":1993},"chunkOwner":{"__isSmartRef__":true,"id":1986},"storedString":"_MinTextHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1993":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1994":{"style":{"__isSmartRef__":true,"id":1995},"chunkOwner":{"__isSmartRef__":true,"id":1986},"storedString":": NaN","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1995":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1996":{"morph":{"__isSmartRef__":true,"id":1986},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1997":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1998":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1999":{"layoutText":{"__isSmartRef__":true,"id":2000}},"2000":{"varMapping":{"__isSmartRef__":true,"id":2001},"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":2002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2001":{"this":{"__isSmartRef__":true,"id":1986}},"2002":{},"2003":{"_Position":{"__isSmartRef__":true,"id":2004},"renderContextTable":{"__isSmartRef__":true,"id":2005},"_Extent":{"__isSmartRef__":true,"id":2006},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2007},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2004":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2005":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2006":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2007":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2008":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2009":{"morph":{"__isSmartRef__":true,"id":1964},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2010":{"resizeWidth":true},"2011":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2012":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2013":{"updateExpanderColor":{"__isSmartRef__":true,"id":2014},"onMouseDown":{"__isSmartRef__":true,"id":2017},"isRoot":{"__isSmartRef__":true,"id":2024},"displayValue":{"__isSmartRef__":true,"id":2027},"update":{"__isSmartRef__":true,"id":2030}},"2014":{"varMapping":{"__isSmartRef__":true,"id":2015},"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":2016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2015":{"this":{"__isSmartRef__":true,"id":1964}},"2016":{},"2017":{"varMapping":{"__isSmartRef__":true,"id":2018},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2018":{"this":{"__isSmartRef__":true,"id":1964},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2019}},"2019":{"$super":{"__isSmartRef__":true,"id":2020}},"2020":{"varMapping":{"__isSmartRef__":true,"id":2021},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2021":{"obj":{"__isSmartRef__":true,"id":1964},"name":"onMouseDown"},"2022":{},"2023":{},"2024":{"varMapping":{"__isSmartRef__":true,"id":2025},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2025":{"this":{"__isSmartRef__":true,"id":1964}},"2026":{},"2027":{"varMapping":{"__isSmartRef__":true,"id":2028},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2028":{"this":{"__isSmartRef__":true,"id":1964}},"2029":{},"2030":{"varMapping":{"__isSmartRef__":true,"id":2031},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2031":{"this":{"__isSmartRef__":true,"id":1964}},"2032":{},"2033":{"_Position":{"__isSmartRef__":true,"id":2034},"renderContextTable":{"__isSmartRef__":true,"id":2035},"_Extent":{"__isSmartRef__":true,"id":2036},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2037},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2034":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2035":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2036":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2037":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2038":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2039":{"morph":{"__isSmartRef__":true,"id":1963},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2040":{"layouter":{"__isSmartRef__":true,"id":2041},"resizeWidth":true},"2041":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1963},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2042":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2043":{"x":0,"y":100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2044":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2045}},"2045":{"varMapping":{"__isSmartRef__":true,"id":2046},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2046":{"this":{"__isSmartRef__":true,"id":1963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2047}},"2047":{"$super":{"__isSmartRef__":true,"id":2048}},"2048":{"varMapping":{"__isSmartRef__":true,"id":2049},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2049":{"obj":{"__isSmartRef__":true,"id":1963},"name":"getLayoutableSubmorphs"},"2050":{},"2051":{},"2052":{"submorphs":[{"__isSmartRef__":true,"id":2053}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2122},"derivationIds":[null],"id":"3A3CD57C-9809-436C-B673-C72392D2C4B7","renderContextTable":{"__isSmartRef__":true,"id":2127},"eventHandler":{"__isSmartRef__":true,"id":2128},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2129},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2131},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2132},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2133},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2053":{"submorphs":[{"__isSmartRef__":true,"id":2054},{"__isSmartRef__":true,"id":2075}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2092},"derivationIds":[null],"id":"A05179B8-06F2-4089-A476-5E62835D8E5C","renderContextTable":{"__isSmartRef__":true,"id":2097},"eventHandler":{"__isSmartRef__":true,"id":2098},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2099},"grabbingEnabled":false,"draggingEnabled":false,"data":68,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_MinTextWidth","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2054},"text":{"__isSmartRef__":true,"id":2075},"owner":{"__isSmartRef__":true,"id":2052},"_Position":{"__isSmartRef__":true,"id":2100},"priorExtent":{"__isSmartRef__":true,"id":2101},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2102},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2054":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2055},"derivationIds":[null],"id":"929C6A79-AF5A-43B0-AC63-86717E5E58FB","renderContextTable":{"__isSmartRef__":true,"id":2061},"eventHandler":{"__isSmartRef__":true,"id":2062},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2063},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2064},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2055":{"_Position":{"__isSmartRef__":true,"id":2056},"renderContextTable":{"__isSmartRef__":true,"id":2057},"_Extent":{"__isSmartRef__":true,"id":2058},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2059},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2060},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2056":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2059":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2060":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2061":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2062":{"morph":{"__isSmartRef__":true,"id":2054},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2063":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2064":{"toggle":{"__isSmartRef__":true,"id":2065},"toggleExpansion":{"__isSmartRef__":true,"id":2072}},"2065":{"varMapping":{"__isSmartRef__":true,"id":2066},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2066":{"this":{"__isSmartRef__":true,"id":2054},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2067}},"2067":{"$super":{"__isSmartRef__":true,"id":2068}},"2068":{"varMapping":{"__isSmartRef__":true,"id":2069},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2069":{"obj":{"__isSmartRef__":true,"id":2054},"name":"toggle"},"2070":{},"2071":{},"2072":{"varMapping":{"__isSmartRef__":true,"id":2073},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2073":{"this":{"__isSmartRef__":true,"id":2054}},"2074":{},"2075":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2076},"derivationIds":[null],"id":"07159EE3-B7FA-40FE-94C2-8CB85782311A","renderContextTable":{"__isSmartRef__":true,"id":2080},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2081},{"__isSmartRef__":true,"id":2083}],"eventHandler":{"__isSmartRef__":true,"id":2085},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2086},"priorExtent":{"__isSmartRef__":true,"id":2087},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2088},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2076":{"_Position":{"__isSmartRef__":true,"id":2077},"renderContextTable":{"__isSmartRef__":true,"id":2078},"_Extent":{"__isSmartRef__":true,"id":2079},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2077":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2078":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2079":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2080":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2081":{"style":{"__isSmartRef__":true,"id":2082},"chunkOwner":{"__isSmartRef__":true,"id":2075},"storedString":"_MinTextWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2082":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2083":{"style":{"__isSmartRef__":true,"id":2084},"chunkOwner":{"__isSmartRef__":true,"id":2075},"storedString":": 68","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2084":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2085":{"morph":{"__isSmartRef__":true,"id":2075},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2086":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2087":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2088":{"layoutText":{"__isSmartRef__":true,"id":2089}},"2089":{"varMapping":{"__isSmartRef__":true,"id":2090},"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":2091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2090":{"this":{"__isSmartRef__":true,"id":2075}},"2091":{},"2092":{"_Position":{"__isSmartRef__":true,"id":2093},"renderContextTable":{"__isSmartRef__":true,"id":2094},"_Extent":{"__isSmartRef__":true,"id":2095},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2096},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2093":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2094":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2095":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2096":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2097":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2098":{"morph":{"__isSmartRef__":true,"id":2053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2099":{"resizeWidth":true},"2100":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2101":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2102":{"updateExpanderColor":{"__isSmartRef__":true,"id":2103},"onMouseDown":{"__isSmartRef__":true,"id":2106},"isRoot":{"__isSmartRef__":true,"id":2113},"displayValue":{"__isSmartRef__":true,"id":2116},"update":{"__isSmartRef__":true,"id":2119}},"2103":{"varMapping":{"__isSmartRef__":true,"id":2104},"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":2105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2104":{"this":{"__isSmartRef__":true,"id":2053}},"2105":{},"2106":{"varMapping":{"__isSmartRef__":true,"id":2107},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2107":{"this":{"__isSmartRef__":true,"id":2053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2108}},"2108":{"$super":{"__isSmartRef__":true,"id":2109}},"2109":{"varMapping":{"__isSmartRef__":true,"id":2110},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2110":{"obj":{"__isSmartRef__":true,"id":2053},"name":"onMouseDown"},"2111":{},"2112":{},"2113":{"varMapping":{"__isSmartRef__":true,"id":2114},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2114":{"this":{"__isSmartRef__":true,"id":2053}},"2115":{},"2116":{"varMapping":{"__isSmartRef__":true,"id":2117},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2117":{"this":{"__isSmartRef__":true,"id":2053}},"2118":{},"2119":{"varMapping":{"__isSmartRef__":true,"id":2120},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2120":{"this":{"__isSmartRef__":true,"id":2053}},"2121":{},"2122":{"_Position":{"__isSmartRef__":true,"id":2123},"renderContextTable":{"__isSmartRef__":true,"id":2124},"_Extent":{"__isSmartRef__":true,"id":2125},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2126},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2123":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2125":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2126":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2127":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2128":{"morph":{"__isSmartRef__":true,"id":2052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2129":{"layouter":{"__isSmartRef__":true,"id":2130},"resizeWidth":true},"2130":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2052},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2131":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2132":{"x":0,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2133":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2134}},"2134":{"varMapping":{"__isSmartRef__":true,"id":2135},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2135":{"this":{"__isSmartRef__":true,"id":2052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2136}},"2136":{"$super":{"__isSmartRef__":true,"id":2137}},"2137":{"varMapping":{"__isSmartRef__":true,"id":2138},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2138":{"obj":{"__isSmartRef__":true,"id":2052},"name":"getLayoutableSubmorphs"},"2139":{},"2140":{},"2141":{"submorphs":[{"__isSmartRef__":true,"id":2142}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2211},"derivationIds":[null],"id":"548E72DF-4950-4473-9F3B-29983492F1A9","renderContextTable":{"__isSmartRef__":true,"id":2216},"eventHandler":{"__isSmartRef__":true,"id":2217},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2218},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2220},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2221},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2222},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2142":{"submorphs":[{"__isSmartRef__":true,"id":2143},{"__isSmartRef__":true,"id":2164}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2181},"derivationIds":[null],"id":"0B27C8BA-CDE7-4500-AFA3-3B07B733F1C6","renderContextTable":{"__isSmartRef__":true,"id":2186},"eventHandler":{"__isSmartRef__":true,"id":2187},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2188},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":319},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_Position","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2143},"text":{"__isSmartRef__":true,"id":2164},"owner":{"__isSmartRef__":true,"id":2141},"_Position":{"__isSmartRef__":true,"id":2189},"priorExtent":{"__isSmartRef__":true,"id":2190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2191},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2143":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2144},"derivationIds":[null],"id":"00D66288-D452-43E6-922C-57ABD102885C","renderContextTable":{"__isSmartRef__":true,"id":2150},"eventHandler":{"__isSmartRef__":true,"id":2151},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2152},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2153},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2144":{"_Position":{"__isSmartRef__":true,"id":2145},"renderContextTable":{"__isSmartRef__":true,"id":2146},"_Extent":{"__isSmartRef__":true,"id":2147},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2148},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2149},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2145":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2146":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2147":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2148":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2149":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2150":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2151":{"morph":{"__isSmartRef__":true,"id":2143},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2152":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2153":{"toggle":{"__isSmartRef__":true,"id":2154},"toggleExpansion":{"__isSmartRef__":true,"id":2161}},"2154":{"varMapping":{"__isSmartRef__":true,"id":2155},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2155":{"this":{"__isSmartRef__":true,"id":2143},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2156}},"2156":{"$super":{"__isSmartRef__":true,"id":2157}},"2157":{"varMapping":{"__isSmartRef__":true,"id":2158},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2158":{"obj":{"__isSmartRef__":true,"id":2143},"name":"toggle"},"2159":{},"2160":{},"2161":{"varMapping":{"__isSmartRef__":true,"id":2162},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2162":{"this":{"__isSmartRef__":true,"id":2143}},"2163":{},"2164":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2165},"derivationIds":[null],"id":"44BD1176-F599-4D3E-975B-7A36F0D8685D","renderContextTable":{"__isSmartRef__":true,"id":2169},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2170},{"__isSmartRef__":true,"id":2172}],"eventHandler":{"__isSmartRef__":true,"id":2174},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2175},"priorExtent":{"__isSmartRef__":true,"id":2176},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2177},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2165":{"_Position":{"__isSmartRef__":true,"id":2166},"renderContextTable":{"__isSmartRef__":true,"id":2167},"_Extent":{"__isSmartRef__":true,"id":2168},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2166":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2167":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2168":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2169":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2170":{"style":{"__isSmartRef__":true,"id":2171},"chunkOwner":{"__isSmartRef__":true,"id":2164},"storedString":"_Position","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2171":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2172":{"style":{"__isSmartRef__":true,"id":2173},"chunkOwner":{"__isSmartRef__":true,"id":2164},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2173":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2174":{"morph":{"__isSmartRef__":true,"id":2164},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2175":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2176":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2177":{"layoutText":{"__isSmartRef__":true,"id":2178}},"2178":{"varMapping":{"__isSmartRef__":true,"id":2179},"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":2180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2179":{"this":{"__isSmartRef__":true,"id":2164}},"2180":{},"2181":{"_Position":{"__isSmartRef__":true,"id":2182},"renderContextTable":{"__isSmartRef__":true,"id":2183},"_Extent":{"__isSmartRef__":true,"id":2184},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2185},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2182":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2183":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2184":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2185":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2186":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2187":{"morph":{"__isSmartRef__":true,"id":2142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2188":{"resizeWidth":true},"2189":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2190":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2191":{"updateExpanderColor":{"__isSmartRef__":true,"id":2192},"onMouseDown":{"__isSmartRef__":true,"id":2195},"isRoot":{"__isSmartRef__":true,"id":2202},"displayValue":{"__isSmartRef__":true,"id":2205},"update":{"__isSmartRef__":true,"id":2208}},"2192":{"varMapping":{"__isSmartRef__":true,"id":2193},"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":2194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2193":{"this":{"__isSmartRef__":true,"id":2142}},"2194":{},"2195":{"varMapping":{"__isSmartRef__":true,"id":2196},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2196":{"this":{"__isSmartRef__":true,"id":2142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2197}},"2197":{"$super":{"__isSmartRef__":true,"id":2198}},"2198":{"varMapping":{"__isSmartRef__":true,"id":2199},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2199":{"obj":{"__isSmartRef__":true,"id":2142},"name":"onMouseDown"},"2200":{},"2201":{},"2202":{"varMapping":{"__isSmartRef__":true,"id":2203},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2203":{"this":{"__isSmartRef__":true,"id":2142}},"2204":{},"2205":{"varMapping":{"__isSmartRef__":true,"id":2206},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2206":{"this":{"__isSmartRef__":true,"id":2142}},"2207":{},"2208":{"varMapping":{"__isSmartRef__":true,"id":2209},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2209":{"this":{"__isSmartRef__":true,"id":2142}},"2210":{},"2211":{"_Position":{"__isSmartRef__":true,"id":2212},"renderContextTable":{"__isSmartRef__":true,"id":2213},"_Extent":{"__isSmartRef__":true,"id":2214},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2215},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2212":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2213":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2214":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2215":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2216":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2217":{"morph":{"__isSmartRef__":true,"id":2141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2218":{"layouter":{"__isSmartRef__":true,"id":2219},"resizeWidth":true},"2219":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2141},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2220":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2221":{"x":0,"y":140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2222":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2223}},"2223":{"varMapping":{"__isSmartRef__":true,"id":2224},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2224":{"this":{"__isSmartRef__":true,"id":2141},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2225}},"2225":{"$super":{"__isSmartRef__":true,"id":2226}},"2226":{"varMapping":{"__isSmartRef__":true,"id":2227},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2227":{"obj":{"__isSmartRef__":true,"id":2141},"name":"getLayoutableSubmorphs"},"2228":{},"2229":{},"2230":{"submorphs":[{"__isSmartRef__":true,"id":2231}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2300},"derivationIds":[null],"id":"E4E79662-D929-467D-BA79-7AD4B1BE5CF0","renderContextTable":{"__isSmartRef__":true,"id":2305},"eventHandler":{"__isSmartRef__":true,"id":2306},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2307},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2309},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2310},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2311},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2231":{"submorphs":[{"__isSmartRef__":true,"id":2232},{"__isSmartRef__":true,"id":2253}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2270},"derivationIds":[null],"id":"12B6F9A6-B862-4D66-988C-1826174636D9","renderContextTable":{"__isSmartRef__":true,"id":2275},"eventHandler":{"__isSmartRef__":true,"id":2276},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2277},"grabbingEnabled":false,"draggingEnabled":false,"data":"pre-wrap","propertyList":["0","1","2","3","4","5","6","7"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_WhiteSpaceHandling","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2232},"text":{"__isSmartRef__":true,"id":2253},"owner":{"__isSmartRef__":true,"id":2230},"_Position":{"__isSmartRef__":true,"id":2278},"priorExtent":{"__isSmartRef__":true,"id":2279},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2280},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2232":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2233},"derivationIds":[null],"id":"E9635976-12F1-4D44-8ED4-7E083BA28291","renderContextTable":{"__isSmartRef__":true,"id":2239},"eventHandler":{"__isSmartRef__":true,"id":2240},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2241},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2242},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2233":{"_Position":{"__isSmartRef__":true,"id":2234},"renderContextTable":{"__isSmartRef__":true,"id":2235},"_Extent":{"__isSmartRef__":true,"id":2236},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2237},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2238},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2234":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2235":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2236":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2237":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2238":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2239":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2240":{"morph":{"__isSmartRef__":true,"id":2232},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2241":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2242":{"toggle":{"__isSmartRef__":true,"id":2243},"toggleExpansion":{"__isSmartRef__":true,"id":2250}},"2243":{"varMapping":{"__isSmartRef__":true,"id":2244},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2244":{"this":{"__isSmartRef__":true,"id":2232},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2245}},"2245":{"$super":{"__isSmartRef__":true,"id":2246}},"2246":{"varMapping":{"__isSmartRef__":true,"id":2247},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2247":{"obj":{"__isSmartRef__":true,"id":2232},"name":"toggle"},"2248":{},"2249":{},"2250":{"varMapping":{"__isSmartRef__":true,"id":2251},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2251":{"this":{"__isSmartRef__":true,"id":2232}},"2252":{},"2253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2254},"derivationIds":[null],"id":"64AB4DD0-FD2F-4988-B7BC-5A3A85154350","renderContextTable":{"__isSmartRef__":true,"id":2258},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2259},{"__isSmartRef__":true,"id":2261}],"eventHandler":{"__isSmartRef__":true,"id":2263},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2264},"priorExtent":{"__isSmartRef__":true,"id":2265},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2266},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2254":{"_Position":{"__isSmartRef__":true,"id":2255},"renderContextTable":{"__isSmartRef__":true,"id":2256},"_Extent":{"__isSmartRef__":true,"id":2257},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__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":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2258":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2259":{"style":{"__isSmartRef__":true,"id":2260},"chunkOwner":{"__isSmartRef__":true,"id":2253},"storedString":"_WhiteSpaceHandling","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2260":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2261":{"style":{"__isSmartRef__":true,"id":2262},"chunkOwner":{"__isSmartRef__":true,"id":2253},"storedString":": pre-wrap","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2262":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2263":{"morph":{"__isSmartRef__":true,"id":2253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2264":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2265":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2266":{"layoutText":{"__isSmartRef__":true,"id":2267}},"2267":{"varMapping":{"__isSmartRef__":true,"id":2268},"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":2269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2268":{"this":{"__isSmartRef__":true,"id":2253}},"2269":{},"2270":{"_Position":{"__isSmartRef__":true,"id":2271},"renderContextTable":{"__isSmartRef__":true,"id":2272},"_Extent":{"__isSmartRef__":true,"id":2273},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2274},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2271":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2272":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2273":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2274":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2275":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2276":{"morph":{"__isSmartRef__":true,"id":2231},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2277":{"resizeWidth":true},"2278":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2279":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2280":{"updateExpanderColor":{"__isSmartRef__":true,"id":2281},"onMouseDown":{"__isSmartRef__":true,"id":2284},"isRoot":{"__isSmartRef__":true,"id":2291},"displayValue":{"__isSmartRef__":true,"id":2294},"update":{"__isSmartRef__":true,"id":2297}},"2281":{"varMapping":{"__isSmartRef__":true,"id":2282},"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":2283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2282":{"this":{"__isSmartRef__":true,"id":2231}},"2283":{},"2284":{"varMapping":{"__isSmartRef__":true,"id":2285},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2285":{"this":{"__isSmartRef__":true,"id":2231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2286}},"2286":{"$super":{"__isSmartRef__":true,"id":2287}},"2287":{"varMapping":{"__isSmartRef__":true,"id":2288},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2288":{"obj":{"__isSmartRef__":true,"id":2231},"name":"onMouseDown"},"2289":{},"2290":{},"2291":{"varMapping":{"__isSmartRef__":true,"id":2292},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2292":{"this":{"__isSmartRef__":true,"id":2231}},"2293":{},"2294":{"varMapping":{"__isSmartRef__":true,"id":2295},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2295":{"this":{"__isSmartRef__":true,"id":2231}},"2296":{},"2297":{"varMapping":{"__isSmartRef__":true,"id":2298},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2298":{"this":{"__isSmartRef__":true,"id":2231}},"2299":{},"2300":{"_Position":{"__isSmartRef__":true,"id":2301},"renderContextTable":{"__isSmartRef__":true,"id":2302},"_Extent":{"__isSmartRef__":true,"id":2303},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2304},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2301":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2302":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2303":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2304":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2305":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2306":{"morph":{"__isSmartRef__":true,"id":2230},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2307":{"layouter":{"__isSmartRef__":true,"id":2308},"resizeWidth":true},"2308":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2230},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2309":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2310":{"x":0,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2311":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2312}},"2312":{"varMapping":{"__isSmartRef__":true,"id":2313},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2313":{"this":{"__isSmartRef__":true,"id":2230},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2314}},"2314":{"$super":{"__isSmartRef__":true,"id":2315}},"2315":{"varMapping":{"__isSmartRef__":true,"id":2316},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2316":{"obj":{"__isSmartRef__":true,"id":2230},"name":"getLayoutableSubmorphs"},"2317":{},"2318":{},"2319":{"submorphs":[{"__isSmartRef__":true,"id":2320}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2390},"derivationIds":[null],"id":"D95000CA-1A22-40B3-86C8-55063EB1341F","renderContextTable":{"__isSmartRef__":true,"id":2395},"eventHandler":{"__isSmartRef__":true,"id":2396},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2397},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2399},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2400},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2401},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2320":{"submorphs":[{"__isSmartRef__":true,"id":2321},{"__isSmartRef__":true,"id":2342}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2359},"derivationIds":[null],"id":"8B5C2D6C-B442-4B2E-BCFA-2560982F1FB2","renderContextTable":{"__isSmartRef__":true,"id":2364},"eventHandler":{"__isSmartRef__":true,"id":2365},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2366},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":2367},"propertyList":["textNode","morphNode","shapeNode"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"_renderContext","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2321},"text":{"__isSmartRef__":true,"id":2342},"owner":{"__isSmartRef__":true,"id":2319},"_Position":{"__isSmartRef__":true,"id":2368},"priorExtent":{"__isSmartRef__":true,"id":2369},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2370},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2321":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2322},"derivationIds":[null],"id":"DA596CA8-AF72-4882-8E99-DC21DC793158","renderContextTable":{"__isSmartRef__":true,"id":2328},"eventHandler":{"__isSmartRef__":true,"id":2329},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2330},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2331},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2322":{"_Position":{"__isSmartRef__":true,"id":2323},"renderContextTable":{"__isSmartRef__":true,"id":2324},"_Extent":{"__isSmartRef__":true,"id":2325},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2326},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2327},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2323":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2324":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2325":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2326":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2327":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2328":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2329":{"morph":{"__isSmartRef__":true,"id":2321},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2330":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2331":{"toggle":{"__isSmartRef__":true,"id":2332},"toggleExpansion":{"__isSmartRef__":true,"id":2339}},"2332":{"varMapping":{"__isSmartRef__":true,"id":2333},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2333":{"this":{"__isSmartRef__":true,"id":2321},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2334}},"2334":{"$super":{"__isSmartRef__":true,"id":2335}},"2335":{"varMapping":{"__isSmartRef__":true,"id":2336},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2336":{"obj":{"__isSmartRef__":true,"id":2321},"name":"toggle"},"2337":{},"2338":{},"2339":{"varMapping":{"__isSmartRef__":true,"id":2340},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2340":{"this":{"__isSmartRef__":true,"id":2321}},"2341":{},"2342":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2343},"derivationIds":[null],"id":"EAC8B939-7DB2-418B-859A-EBE563C5529A","renderContextTable":{"__isSmartRef__":true,"id":2347},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2348},{"__isSmartRef__":true,"id":2350}],"eventHandler":{"__isSmartRef__":true,"id":2352},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2353},"priorExtent":{"__isSmartRef__":true,"id":2354},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2355},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2343":{"_Position":{"__isSmartRef__":true,"id":2344},"renderContextTable":{"__isSmartRef__":true,"id":2345},"_Extent":{"__isSmartRef__":true,"id":2346},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2344":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2345":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2346":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2347":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2348":{"style":{"__isSmartRef__":true,"id":2349},"chunkOwner":{"__isSmartRef__":true,"id":2342},"storedString":"_renderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2349":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2350":{"style":{"__isSmartRef__":true,"id":2351},"chunkOwner":{"__isSmartRef__":true,"id":2342},"storedString":": RenderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2351":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2352":{"morph":{"__isSmartRef__":true,"id":2342},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2353":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2354":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2355":{"layoutText":{"__isSmartRef__":true,"id":2356}},"2356":{"varMapping":{"__isSmartRef__":true,"id":2357},"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":2358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2357":{"this":{"__isSmartRef__":true,"id":2342}},"2358":{},"2359":{"_Position":{"__isSmartRef__":true,"id":2360},"renderContextTable":{"__isSmartRef__":true,"id":2361},"_Extent":{"__isSmartRef__":true,"id":2362},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2363},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2360":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2361":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2362":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2363":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2364":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2365":{"morph":{"__isSmartRef__":true,"id":2320},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2366":{"resizeWidth":true},"2367":{"__LivelyClassName__":"lively.morphic.HTML.RenderContext","__SourceModuleName__":"Global.lively.morphic.HTML"},"2368":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2369":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2370":{"updateExpanderColor":{"__isSmartRef__":true,"id":2371},"onMouseDown":{"__isSmartRef__":true,"id":2374},"isRoot":{"__isSmartRef__":true,"id":2381},"displayValue":{"__isSmartRef__":true,"id":2384},"update":{"__isSmartRef__":true,"id":2387}},"2371":{"varMapping":{"__isSmartRef__":true,"id":2372},"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":2373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2372":{"this":{"__isSmartRef__":true,"id":2320}},"2373":{},"2374":{"varMapping":{"__isSmartRef__":true,"id":2375},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2375":{"this":{"__isSmartRef__":true,"id":2320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2376}},"2376":{"$super":{"__isSmartRef__":true,"id":2377}},"2377":{"varMapping":{"__isSmartRef__":true,"id":2378},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2378":{"obj":{"__isSmartRef__":true,"id":2320},"name":"onMouseDown"},"2379":{},"2380":{},"2381":{"varMapping":{"__isSmartRef__":true,"id":2382},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2382":{"this":{"__isSmartRef__":true,"id":2320}},"2383":{},"2384":{"varMapping":{"__isSmartRef__":true,"id":2385},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2385":{"this":{"__isSmartRef__":true,"id":2320}},"2386":{},"2387":{"varMapping":{"__isSmartRef__":true,"id":2388},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2388":{"this":{"__isSmartRef__":true,"id":2320}},"2389":{},"2390":{"_Position":{"__isSmartRef__":true,"id":2391},"renderContextTable":{"__isSmartRef__":true,"id":2392},"_Extent":{"__isSmartRef__":true,"id":2393},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2394},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2391":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2392":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2393":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2394":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2395":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2396":{"morph":{"__isSmartRef__":true,"id":2319},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2397":{"layouter":{"__isSmartRef__":true,"id":2398},"resizeWidth":true},"2398":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2319},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2399":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2400":{"x":0,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2401":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2402}},"2402":{"varMapping":{"__isSmartRef__":true,"id":2403},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2403":{"this":{"__isSmartRef__":true,"id":2319},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2404}},"2404":{"$super":{"__isSmartRef__":true,"id":2405}},"2405":{"varMapping":{"__isSmartRef__":true,"id":2406},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2406":{"obj":{"__isSmartRef__":true,"id":2319},"name":"getLayoutableSubmorphs"},"2407":{},"2408":{},"2409":{"submorphs":[{"__isSmartRef__":true,"id":2410}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2479},"derivationIds":[null],"id":"F3EE8489-9DF6-43A4-BB25-4A5512EED159","renderContextTable":{"__isSmartRef__":true,"id":2484},"eventHandler":{"__isSmartRef__":true,"id":2485},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2486},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2488},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2489},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2490},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2410":{"submorphs":[{"__isSmartRef__":true,"id":2411},{"__isSmartRef__":true,"id":2432}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2449},"derivationIds":[null],"id":"D193DBB8-612D-4AEA-9FB2-0DAAAD24609A","renderContextTable":{"__isSmartRef__":true,"id":2454},"eventHandler":{"__isSmartRef__":true,"id":2455},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2456},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"allowInput","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2411},"text":{"__isSmartRef__":true,"id":2432},"owner":{"__isSmartRef__":true,"id":2409},"_Position":{"__isSmartRef__":true,"id":2457},"priorExtent":{"__isSmartRef__":true,"id":2458},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2459},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2411":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2412},"derivationIds":[null],"id":"6608E181-F88E-4CB1-9D23-3F5596FA99D2","renderContextTable":{"__isSmartRef__":true,"id":2418},"eventHandler":{"__isSmartRef__":true,"id":2419},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2420},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2421},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2412":{"_Position":{"__isSmartRef__":true,"id":2413},"renderContextTable":{"__isSmartRef__":true,"id":2414},"_Extent":{"__isSmartRef__":true,"id":2415},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2416},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2417},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2413":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2414":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2415":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2416":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2417":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2418":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2419":{"morph":{"__isSmartRef__":true,"id":2411},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2420":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2421":{"toggle":{"__isSmartRef__":true,"id":2422},"toggleExpansion":{"__isSmartRef__":true,"id":2429}},"2422":{"varMapping":{"__isSmartRef__":true,"id":2423},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2423":{"this":{"__isSmartRef__":true,"id":2411},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2424}},"2424":{"$super":{"__isSmartRef__":true,"id":2425}},"2425":{"varMapping":{"__isSmartRef__":true,"id":2426},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2426":{"obj":{"__isSmartRef__":true,"id":2411},"name":"toggle"},"2427":{},"2428":{},"2429":{"varMapping":{"__isSmartRef__":true,"id":2430},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2430":{"this":{"__isSmartRef__":true,"id":2411}},"2431":{},"2432":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2433},"derivationIds":[null],"id":"78F5C384-0219-4987-BA55-757DA43BE8CF","renderContextTable":{"__isSmartRef__":true,"id":2437},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2440}],"eventHandler":{"__isSmartRef__":true,"id":2442},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2443},"priorExtent":{"__isSmartRef__":true,"id":2444},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2445},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2433":{"_Position":{"__isSmartRef__":true,"id":2434},"renderContextTable":{"__isSmartRef__":true,"id":2435},"_Extent":{"__isSmartRef__":true,"id":2436},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2434":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2435":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2436":{"x":128,"y":20,"__LivelyClassName__":"Point","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2438":{"style":{"__isSmartRef__":true,"id":2439},"chunkOwner":{"__isSmartRef__":true,"id":2432},"storedString":"allowInput","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2439":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2440":{"style":{"__isSmartRef__":true,"id":2441},"chunkOwner":{"__isSmartRef__":true,"id":2432},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2441":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2442":{"morph":{"__isSmartRef__":true,"id":2432},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2443":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2444":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2445":{"layoutText":{"__isSmartRef__":true,"id":2446}},"2446":{"varMapping":{"__isSmartRef__":true,"id":2447},"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":2448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2447":{"this":{"__isSmartRef__":true,"id":2432}},"2448":{},"2449":{"_Position":{"__isSmartRef__":true,"id":2450},"renderContextTable":{"__isSmartRef__":true,"id":2451},"_Extent":{"__isSmartRef__":true,"id":2452},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2453},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2450":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2451":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2452":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2453":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2454":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2455":{"morph":{"__isSmartRef__":true,"id":2410},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2456":{"resizeWidth":true},"2457":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2458":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2459":{"updateExpanderColor":{"__isSmartRef__":true,"id":2460},"onMouseDown":{"__isSmartRef__":true,"id":2463},"isRoot":{"__isSmartRef__":true,"id":2470},"displayValue":{"__isSmartRef__":true,"id":2473},"update":{"__isSmartRef__":true,"id":2476}},"2460":{"varMapping":{"__isSmartRef__":true,"id":2461},"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":2462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2461":{"this":{"__isSmartRef__":true,"id":2410}},"2462":{},"2463":{"varMapping":{"__isSmartRef__":true,"id":2464},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2464":{"this":{"__isSmartRef__":true,"id":2410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2465}},"2465":{"$super":{"__isSmartRef__":true,"id":2466}},"2466":{"varMapping":{"__isSmartRef__":true,"id":2467},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2467":{"obj":{"__isSmartRef__":true,"id":2410},"name":"onMouseDown"},"2468":{},"2469":{},"2470":{"varMapping":{"__isSmartRef__":true,"id":2471},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2471":{"this":{"__isSmartRef__":true,"id":2410}},"2472":{},"2473":{"varMapping":{"__isSmartRef__":true,"id":2474},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2474":{"this":{"__isSmartRef__":true,"id":2410}},"2475":{},"2476":{"varMapping":{"__isSmartRef__":true,"id":2477},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2477":{"this":{"__isSmartRef__":true,"id":2410}},"2478":{},"2479":{"_Position":{"__isSmartRef__":true,"id":2480},"renderContextTable":{"__isSmartRef__":true,"id":2481},"_Extent":{"__isSmartRef__":true,"id":2482},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2483},"__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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2483":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2484":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2485":{"morph":{"__isSmartRef__":true,"id":2409},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2486":{"layouter":{"__isSmartRef__":true,"id":2487},"resizeWidth":true},"2487":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2409},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2488":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2489":{"x":0,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2490":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2491}},"2491":{"varMapping":{"__isSmartRef__":true,"id":2492},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2492":{"this":{"__isSmartRef__":true,"id":2409},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2493}},"2493":{"$super":{"__isSmartRef__":true,"id":2494}},"2494":{"varMapping":{"__isSmartRef__":true,"id":2495},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2495":{"obj":{"__isSmartRef__":true,"id":2409},"name":"getLayoutableSubmorphs"},"2496":{},"2497":{},"2498":{"submorphs":[{"__isSmartRef__":true,"id":2499}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2568},"derivationIds":[null],"id":"EF68C25D-F9B2-4010-A13D-A654682D879D","renderContextTable":{"__isSmartRef__":true,"id":2573},"eventHandler":{"__isSmartRef__":true,"id":2574},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2575},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2577},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2578},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2579},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2499":{"submorphs":[{"__isSmartRef__":true,"id":2500},{"__isSmartRef__":true,"id":2521}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2538},"derivationIds":[null],"id":"6BEB2747-3D25-4252-933B-25300F43C0DE","renderContextTable":{"__isSmartRef__":true,"id":2543},"eventHandler":{"__isSmartRef__":true,"id":2544},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2545},"grabbingEnabled":false,"draggingEnabled":false,"data":"=cell(1,0)+cell(1,1)","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"cachedTextString","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2500},"text":{"__isSmartRef__":true,"id":2521},"owner":{"__isSmartRef__":true,"id":2498},"_Position":{"__isSmartRef__":true,"id":2546},"priorExtent":{"__isSmartRef__":true,"id":2547},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2548},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2500":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2501},"derivationIds":[null],"id":"C1FD1740-8978-4CB9-A7F5-24E2F026557F","renderContextTable":{"__isSmartRef__":true,"id":2507},"eventHandler":{"__isSmartRef__":true,"id":2508},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2509},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2499},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2510},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2501":{"_Position":{"__isSmartRef__":true,"id":2502},"renderContextTable":{"__isSmartRef__":true,"id":2503},"_Extent":{"__isSmartRef__":true,"id":2504},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2505},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2506},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2502":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2503":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2504":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2505":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2506":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2507":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2508":{"morph":{"__isSmartRef__":true,"id":2500},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2509":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2510":{"toggle":{"__isSmartRef__":true,"id":2511},"toggleExpansion":{"__isSmartRef__":true,"id":2518}},"2511":{"varMapping":{"__isSmartRef__":true,"id":2512},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2512":{"this":{"__isSmartRef__":true,"id":2500},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2513}},"2513":{"$super":{"__isSmartRef__":true,"id":2514}},"2514":{"varMapping":{"__isSmartRef__":true,"id":2515},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2515":{"obj":{"__isSmartRef__":true,"id":2500},"name":"toggle"},"2516":{},"2517":{},"2518":{"varMapping":{"__isSmartRef__":true,"id":2519},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2519":{"this":{"__isSmartRef__":true,"id":2500}},"2520":{},"2521":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2522},"derivationIds":[null],"id":"8B9D899B-D029-4E0F-9AD9-A046C9F4CDF4","renderContextTable":{"__isSmartRef__":true,"id":2526},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2527},{"__isSmartRef__":true,"id":2529}],"eventHandler":{"__isSmartRef__":true,"id":2531},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2532},"priorExtent":{"__isSmartRef__":true,"id":2533},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2499},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2534},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2522":{"_Position":{"__isSmartRef__":true,"id":2523},"renderContextTable":{"__isSmartRef__":true,"id":2524},"_Extent":{"__isSmartRef__":true,"id":2525},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2523":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2524":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2525":{"x":285,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2526":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2527":{"style":{"__isSmartRef__":true,"id":2528},"chunkOwner":{"__isSmartRef__":true,"id":2521},"storedString":"cachedTextString","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2528":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2529":{"style":{"__isSmartRef__":true,"id":2530},"chunkOwner":{"__isSmartRef__":true,"id":2521},"storedString":": =cell(1,0)+cell(1,1)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2530":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2531":{"morph":{"__isSmartRef__":true,"id":2521},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2532":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2533":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2534":{"layoutText":{"__isSmartRef__":true,"id":2535}},"2535":{"varMapping":{"__isSmartRef__":true,"id":2536},"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":2537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2536":{"this":{"__isSmartRef__":true,"id":2521}},"2537":{},"2538":{"_Position":{"__isSmartRef__":true,"id":2539},"renderContextTable":{"__isSmartRef__":true,"id":2540},"_Extent":{"__isSmartRef__":true,"id":2541},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2542},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2539":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2540":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2541":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2542":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2543":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2544":{"morph":{"__isSmartRef__":true,"id":2499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2545":{"resizeWidth":true},"2546":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2547":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2548":{"updateExpanderColor":{"__isSmartRef__":true,"id":2549},"onMouseDown":{"__isSmartRef__":true,"id":2552},"isRoot":{"__isSmartRef__":true,"id":2559},"displayValue":{"__isSmartRef__":true,"id":2562},"update":{"__isSmartRef__":true,"id":2565}},"2549":{"varMapping":{"__isSmartRef__":true,"id":2550},"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":2551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2550":{"this":{"__isSmartRef__":true,"id":2499}},"2551":{},"2552":{"varMapping":{"__isSmartRef__":true,"id":2553},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2553":{"this":{"__isSmartRef__":true,"id":2499},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2554}},"2554":{"$super":{"__isSmartRef__":true,"id":2555}},"2555":{"varMapping":{"__isSmartRef__":true,"id":2556},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2556":{"obj":{"__isSmartRef__":true,"id":2499},"name":"onMouseDown"},"2557":{},"2558":{},"2559":{"varMapping":{"__isSmartRef__":true,"id":2560},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2560":{"this":{"__isSmartRef__":true,"id":2499}},"2561":{},"2562":{"varMapping":{"__isSmartRef__":true,"id":2563},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2563":{"this":{"__isSmartRef__":true,"id":2499}},"2564":{},"2565":{"varMapping":{"__isSmartRef__":true,"id":2566},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2566":{"this":{"__isSmartRef__":true,"id":2499}},"2567":{},"2568":{"_Position":{"__isSmartRef__":true,"id":2569},"renderContextTable":{"__isSmartRef__":true,"id":2570},"_Extent":{"__isSmartRef__":true,"id":2571},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2572},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2569":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2570":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2571":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2572":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2573":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2574":{"morph":{"__isSmartRef__":true,"id":2498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2575":{"layouter":{"__isSmartRef__":true,"id":2576},"resizeWidth":true},"2576":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2498},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2577":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2578":{"x":0,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2579":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2580}},"2580":{"varMapping":{"__isSmartRef__":true,"id":2581},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2581":{"this":{"__isSmartRef__":true,"id":2498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2582}},"2582":{"$super":{"__isSmartRef__":true,"id":2583}},"2583":{"varMapping":{"__isSmartRef__":true,"id":2584},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2584":{"obj":{"__isSmartRef__":true,"id":2498},"name":"getLayoutableSubmorphs"},"2585":{},"2586":{},"2587":{"submorphs":[{"__isSmartRef__":true,"id":2588}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2657},"derivationIds":[null],"id":"F2016C5F-3631-400F-ACAE-86F6B3C8A0D4","renderContextTable":{"__isSmartRef__":true,"id":2662},"eventHandler":{"__isSmartRef__":true,"id":2663},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2664},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2666},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2667},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2668},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2588":{"submorphs":[{"__isSmartRef__":true,"id":2589},{"__isSmartRef__":true,"id":2610}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2627},"derivationIds":[null],"id":"FAD93421-5C8A-4C43-BC13-20C045CCF2E6","renderContextTable":{"__isSmartRef__":true,"id":2632},"eventHandler":{"__isSmartRef__":true,"id":2633},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2634},"grabbingEnabled":false,"draggingEnabled":false,"data":"","propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"charsReplaced","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2589},"text":{"__isSmartRef__":true,"id":2610},"owner":{"__isSmartRef__":true,"id":2587},"_Position":{"__isSmartRef__":true,"id":2635},"priorExtent":{"__isSmartRef__":true,"id":2636},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2637},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2589":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2590},"derivationIds":[null],"id":"4BF6AF0E-5806-424C-B02A-F5F4C46D7D08","renderContextTable":{"__isSmartRef__":true,"id":2596},"eventHandler":{"__isSmartRef__":true,"id":2597},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2598},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2588},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2599},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2590":{"_Position":{"__isSmartRef__":true,"id":2591},"renderContextTable":{"__isSmartRef__":true,"id":2592},"_Extent":{"__isSmartRef__":true,"id":2593},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2594},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2595},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2591":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2592":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2593":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2594":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2595":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2596":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2597":{"morph":{"__isSmartRef__":true,"id":2589},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2598":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2599":{"toggle":{"__isSmartRef__":true,"id":2600},"toggleExpansion":{"__isSmartRef__":true,"id":2607}},"2600":{"varMapping":{"__isSmartRef__":true,"id":2601},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2601":{"this":{"__isSmartRef__":true,"id":2589},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2602}},"2602":{"$super":{"__isSmartRef__":true,"id":2603}},"2603":{"varMapping":{"__isSmartRef__":true,"id":2604},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2604":{"obj":{"__isSmartRef__":true,"id":2589},"name":"toggle"},"2605":{},"2606":{},"2607":{"varMapping":{"__isSmartRef__":true,"id":2608},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2608":{"this":{"__isSmartRef__":true,"id":2589}},"2609":{},"2610":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2611},"derivationIds":[null],"id":"DF9C17F4-7EE6-4DB1-8AEB-0FAE218D87DA","renderContextTable":{"__isSmartRef__":true,"id":2615},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2616},{"__isSmartRef__":true,"id":2618}],"eventHandler":{"__isSmartRef__":true,"id":2620},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2621},"priorExtent":{"__isSmartRef__":true,"id":2622},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2588},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2623},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2611":{"_Position":{"__isSmartRef__":true,"id":2612},"renderContextTable":{"__isSmartRef__":true,"id":2613},"_Extent":{"__isSmartRef__":true,"id":2614},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2612":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2613":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2614":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2615":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2616":{"style":{"__isSmartRef__":true,"id":2617},"chunkOwner":{"__isSmartRef__":true,"id":2610},"storedString":"charsReplaced","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2617":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2618":{"style":{"__isSmartRef__":true,"id":2619},"chunkOwner":{"__isSmartRef__":true,"id":2610},"storedString":": ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2619":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2620":{"morph":{"__isSmartRef__":true,"id":2610},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2621":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2622":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2623":{"layoutText":{"__isSmartRef__":true,"id":2624}},"2624":{"varMapping":{"__isSmartRef__":true,"id":2625},"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":2626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2625":{"this":{"__isSmartRef__":true,"id":2610}},"2626":{},"2627":{"_Position":{"__isSmartRef__":true,"id":2628},"renderContextTable":{"__isSmartRef__":true,"id":2629},"_Extent":{"__isSmartRef__":true,"id":2630},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2631},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2628":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2629":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2630":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2631":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2632":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2633":{"morph":{"__isSmartRef__":true,"id":2588},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2634":{"resizeWidth":true},"2635":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2636":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2637":{"updateExpanderColor":{"__isSmartRef__":true,"id":2638},"onMouseDown":{"__isSmartRef__":true,"id":2641},"isRoot":{"__isSmartRef__":true,"id":2648},"displayValue":{"__isSmartRef__":true,"id":2651},"update":{"__isSmartRef__":true,"id":2654}},"2638":{"varMapping":{"__isSmartRef__":true,"id":2639},"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":2640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2639":{"this":{"__isSmartRef__":true,"id":2588}},"2640":{},"2641":{"varMapping":{"__isSmartRef__":true,"id":2642},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2642":{"this":{"__isSmartRef__":true,"id":2588},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2643}},"2643":{"$super":{"__isSmartRef__":true,"id":2644}},"2644":{"varMapping":{"__isSmartRef__":true,"id":2645},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2645":{"obj":{"__isSmartRef__":true,"id":2588},"name":"onMouseDown"},"2646":{},"2647":{},"2648":{"varMapping":{"__isSmartRef__":true,"id":2649},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2649":{"this":{"__isSmartRef__":true,"id":2588}},"2650":{},"2651":{"varMapping":{"__isSmartRef__":true,"id":2652},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2652":{"this":{"__isSmartRef__":true,"id":2588}},"2653":{},"2654":{"varMapping":{"__isSmartRef__":true,"id":2655},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2655":{"this":{"__isSmartRef__":true,"id":2588}},"2656":{},"2657":{"_Position":{"__isSmartRef__":true,"id":2658},"renderContextTable":{"__isSmartRef__":true,"id":2659},"_Extent":{"__isSmartRef__":true,"id":2660},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2661},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2658":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2659":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2660":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2661":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2662":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2663":{"morph":{"__isSmartRef__":true,"id":2587},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2664":{"layouter":{"__isSmartRef__":true,"id":2665},"resizeWidth":true},"2665":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2587},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2666":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2667":{"x":0,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2668":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2669}},"2669":{"varMapping":{"__isSmartRef__":true,"id":2670},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2670":{"this":{"__isSmartRef__":true,"id":2587},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2671}},"2671":{"$super":{"__isSmartRef__":true,"id":2672}},"2672":{"varMapping":{"__isSmartRef__":true,"id":2673},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2673":{"obj":{"__isSmartRef__":true,"id":2587},"name":"getLayoutableSubmorphs"},"2674":{},"2675":{},"2676":{"submorphs":[{"__isSmartRef__":true,"id":2677}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2746},"derivationIds":[null],"id":"6902F363-8200-4933-B64E-D83E9E754379","renderContextTable":{"__isSmartRef__":true,"id":2751},"eventHandler":{"__isSmartRef__":true,"id":2752},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2753},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2755},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2756},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2757},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2677":{"submorphs":[{"__isSmartRef__":true,"id":2678},{"__isSmartRef__":true,"id":2699}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2716},"derivationIds":[null],"id":"70EF56D3-07F6-46F4-AD24-4E1D7E8DD25B","renderContextTable":{"__isSmartRef__":true,"id":2721},"eventHandler":{"__isSmartRef__":true,"id":2722},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2723},"grabbingEnabled":false,"draggingEnabled":false,"data":"","propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"charsTyped","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2678},"text":{"__isSmartRef__":true,"id":2699},"owner":{"__isSmartRef__":true,"id":2676},"_Position":{"__isSmartRef__":true,"id":2724},"priorExtent":{"__isSmartRef__":true,"id":2725},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2726},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2679},"derivationIds":[null],"id":"DCE4EE02-5FD3-4C5D-891F-C39785519E85","renderContextTable":{"__isSmartRef__":true,"id":2685},"eventHandler":{"__isSmartRef__":true,"id":2686},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2687},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2677},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2688},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2679":{"_Position":{"__isSmartRef__":true,"id":2680},"renderContextTable":{"__isSmartRef__":true,"id":2681},"_Extent":{"__isSmartRef__":true,"id":2682},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2683},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2684},"__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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2683":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2684":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2685":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2686":{"morph":{"__isSmartRef__":true,"id":2678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2687":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2688":{"toggle":{"__isSmartRef__":true,"id":2689},"toggleExpansion":{"__isSmartRef__":true,"id":2696}},"2689":{"varMapping":{"__isSmartRef__":true,"id":2690},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2690":{"this":{"__isSmartRef__":true,"id":2678},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2691}},"2691":{"$super":{"__isSmartRef__":true,"id":2692}},"2692":{"varMapping":{"__isSmartRef__":true,"id":2693},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2693":{"obj":{"__isSmartRef__":true,"id":2678},"name":"toggle"},"2694":{},"2695":{},"2696":{"varMapping":{"__isSmartRef__":true,"id":2697},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2697":{"this":{"__isSmartRef__":true,"id":2678}},"2698":{},"2699":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2700},"derivationIds":[null],"id":"DA99FB24-C9F1-44D9-BE36-A3FEEBC12A76","renderContextTable":{"__isSmartRef__":true,"id":2704},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2705},{"__isSmartRef__":true,"id":2707}],"eventHandler":{"__isSmartRef__":true,"id":2709},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2710},"priorExtent":{"__isSmartRef__":true,"id":2711},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2677},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2712},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2700":{"_Position":{"__isSmartRef__":true,"id":2701},"renderContextTable":{"__isSmartRef__":true,"id":2702},"_Extent":{"__isSmartRef__":true,"id":2703},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2701":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2702":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2703":{"x":98,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2704":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2705":{"style":{"__isSmartRef__":true,"id":2706},"chunkOwner":{"__isSmartRef__":true,"id":2699},"storedString":"charsTyped","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2706":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2707":{"style":{"__isSmartRef__":true,"id":2708},"chunkOwner":{"__isSmartRef__":true,"id":2699},"storedString":": ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2708":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2709":{"morph":{"__isSmartRef__":true,"id":2699},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2710":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2711":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2712":{"layoutText":{"__isSmartRef__":true,"id":2713}},"2713":{"varMapping":{"__isSmartRef__":true,"id":2714},"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":2715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2714":{"this":{"__isSmartRef__":true,"id":2699}},"2715":{},"2716":{"_Position":{"__isSmartRef__":true,"id":2717},"renderContextTable":{"__isSmartRef__":true,"id":2718},"_Extent":{"__isSmartRef__":true,"id":2719},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2720},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2717":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2718":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2719":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2720":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2721":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2722":{"morph":{"__isSmartRef__":true,"id":2677},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2723":{"resizeWidth":true},"2724":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2725":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2726":{"updateExpanderColor":{"__isSmartRef__":true,"id":2727},"onMouseDown":{"__isSmartRef__":true,"id":2730},"isRoot":{"__isSmartRef__":true,"id":2737},"displayValue":{"__isSmartRef__":true,"id":2740},"update":{"__isSmartRef__":true,"id":2743}},"2727":{"varMapping":{"__isSmartRef__":true,"id":2728},"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":2729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2728":{"this":{"__isSmartRef__":true,"id":2677}},"2729":{},"2730":{"varMapping":{"__isSmartRef__":true,"id":2731},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2731":{"this":{"__isSmartRef__":true,"id":2677},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2732}},"2732":{"$super":{"__isSmartRef__":true,"id":2733}},"2733":{"varMapping":{"__isSmartRef__":true,"id":2734},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2734":{"obj":{"__isSmartRef__":true,"id":2677},"name":"onMouseDown"},"2735":{},"2736":{},"2737":{"varMapping":{"__isSmartRef__":true,"id":2738},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2738":{"this":{"__isSmartRef__":true,"id":2677}},"2739":{},"2740":{"varMapping":{"__isSmartRef__":true,"id":2741},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2741":{"this":{"__isSmartRef__":true,"id":2677}},"2742":{},"2743":{"varMapping":{"__isSmartRef__":true,"id":2744},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2744":{"this":{"__isSmartRef__":true,"id":2677}},"2745":{},"2746":{"_Position":{"__isSmartRef__":true,"id":2747},"renderContextTable":{"__isSmartRef__":true,"id":2748},"_Extent":{"__isSmartRef__":true,"id":2749},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2750},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2747":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2748":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2749":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2750":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2751":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2752":{"morph":{"__isSmartRef__":true,"id":2676},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2753":{"layouter":{"__isSmartRef__":true,"id":2754},"resizeWidth":true},"2754":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2676},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2755":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2756":{"x":0,"y":260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2757":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2758}},"2758":{"varMapping":{"__isSmartRef__":true,"id":2759},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2759":{"this":{"__isSmartRef__":true,"id":2676},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2760}},"2760":{"$super":{"__isSmartRef__":true,"id":2761}},"2761":{"varMapping":{"__isSmartRef__":true,"id":2762},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2762":{"obj":{"__isSmartRef__":true,"id":2676},"name":"getLayoutableSubmorphs"},"2763":{},"2764":{},"2765":{"submorphs":[{"__isSmartRef__":true,"id":2766}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2835},"derivationIds":[null],"id":"F6267AF9-C609-40C4-8AC1-0CB5BF8DF056","renderContextTable":{"__isSmartRef__":true,"id":2840},"eventHandler":{"__isSmartRef__":true,"id":2841},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2842},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2844},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2845},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2846},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2766":{"submorphs":[{"__isSmartRef__":true,"id":2767},{"__isSmartRef__":true,"id":2788}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2805},"derivationIds":[null],"id":"8E6F45C5-2D41-4AC6-8B22-CB262E9D8ABE","renderContextTable":{"__isSmartRef__":true,"id":2810},"eventHandler":{"__isSmartRef__":true,"id":2811},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2812},"grabbingEnabled":false,"draggingEnabled":false,"data":[null],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"derivationIds","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2767},"text":{"__isSmartRef__":true,"id":2788},"owner":{"__isSmartRef__":true,"id":2765},"_Position":{"__isSmartRef__":true,"id":2813},"priorExtent":{"__isSmartRef__":true,"id":2814},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2815},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2767":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2768},"derivationIds":[null],"id":"C1097825-EC32-43A7-BAE0-A160EB4D5DF1","renderContextTable":{"__isSmartRef__":true,"id":2774},"eventHandler":{"__isSmartRef__":true,"id":2775},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2776},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2766},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2777},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2768":{"_Position":{"__isSmartRef__":true,"id":2769},"renderContextTable":{"__isSmartRef__":true,"id":2770},"_Extent":{"__isSmartRef__":true,"id":2771},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2772},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2773},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2769":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2770":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2771":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2772":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2773":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2774":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2775":{"morph":{"__isSmartRef__":true,"id":2767},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2776":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2777":{"toggle":{"__isSmartRef__":true,"id":2778},"toggleExpansion":{"__isSmartRef__":true,"id":2785}},"2778":{"varMapping":{"__isSmartRef__":true,"id":2779},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2779":{"this":{"__isSmartRef__":true,"id":2767},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2780}},"2780":{"$super":{"__isSmartRef__":true,"id":2781}},"2781":{"varMapping":{"__isSmartRef__":true,"id":2782},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2782":{"obj":{"__isSmartRef__":true,"id":2767},"name":"toggle"},"2783":{},"2784":{},"2785":{"varMapping":{"__isSmartRef__":true,"id":2786},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2786":{"this":{"__isSmartRef__":true,"id":2767}},"2787":{},"2788":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2789},"derivationIds":[null],"id":"6BF1DB35-9939-4664-A517-8F1EC8B48963","renderContextTable":{"__isSmartRef__":true,"id":2793},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2794},{"__isSmartRef__":true,"id":2796}],"eventHandler":{"__isSmartRef__":true,"id":2798},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2799},"priorExtent":{"__isSmartRef__":true,"id":2800},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2766},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2801},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2789":{"_Position":{"__isSmartRef__":true,"id":2790},"renderContextTable":{"__isSmartRef__":true,"id":2791},"_Extent":{"__isSmartRef__":true,"id":2792},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2790":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2791":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2792":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2793":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2794":{"style":{"__isSmartRef__":true,"id":2795},"chunkOwner":{"__isSmartRef__":true,"id":2788},"storedString":"derivationIds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2795":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2796":{"style":{"__isSmartRef__":true,"id":2797},"chunkOwner":{"__isSmartRef__":true,"id":2788},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2797":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2798":{"morph":{"__isSmartRef__":true,"id":2788},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2799":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2800":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2801":{"layoutText":{"__isSmartRef__":true,"id":2802}},"2802":{"varMapping":{"__isSmartRef__":true,"id":2803},"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":2804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2803":{"this":{"__isSmartRef__":true,"id":2788}},"2804":{},"2805":{"_Position":{"__isSmartRef__":true,"id":2806},"renderContextTable":{"__isSmartRef__":true,"id":2807},"_Extent":{"__isSmartRef__":true,"id":2808},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2809},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2806":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2807":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2808":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2809":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2810":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2811":{"morph":{"__isSmartRef__":true,"id":2766},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2812":{"resizeWidth":true},"2813":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2814":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2815":{"updateExpanderColor":{"__isSmartRef__":true,"id":2816},"onMouseDown":{"__isSmartRef__":true,"id":2819},"isRoot":{"__isSmartRef__":true,"id":2826},"displayValue":{"__isSmartRef__":true,"id":2829},"update":{"__isSmartRef__":true,"id":2832}},"2816":{"varMapping":{"__isSmartRef__":true,"id":2817},"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":2818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2817":{"this":{"__isSmartRef__":true,"id":2766}},"2818":{},"2819":{"varMapping":{"__isSmartRef__":true,"id":2820},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2820":{"this":{"__isSmartRef__":true,"id":2766},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2821}},"2821":{"$super":{"__isSmartRef__":true,"id":2822}},"2822":{"varMapping":{"__isSmartRef__":true,"id":2823},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2823":{"obj":{"__isSmartRef__":true,"id":2766},"name":"onMouseDown"},"2824":{},"2825":{},"2826":{"varMapping":{"__isSmartRef__":true,"id":2827},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2827":{"this":{"__isSmartRef__":true,"id":2766}},"2828":{},"2829":{"varMapping":{"__isSmartRef__":true,"id":2830},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2830":{"this":{"__isSmartRef__":true,"id":2766}},"2831":{},"2832":{"varMapping":{"__isSmartRef__":true,"id":2833},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2833":{"this":{"__isSmartRef__":true,"id":2766}},"2834":{},"2835":{"_Position":{"__isSmartRef__":true,"id":2836},"renderContextTable":{"__isSmartRef__":true,"id":2837},"_Extent":{"__isSmartRef__":true,"id":2838},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2839},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2836":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2837":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2838":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2839":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2840":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2841":{"morph":{"__isSmartRef__":true,"id":2765},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2842":{"layouter":{"__isSmartRef__":true,"id":2843},"resizeWidth":true},"2843":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2765},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2844":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2845":{"x":0,"y":280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2846":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2847}},"2847":{"varMapping":{"__isSmartRef__":true,"id":2848},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2848":{"this":{"__isSmartRef__":true,"id":2765},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2849}},"2849":{"$super":{"__isSmartRef__":true,"id":2850}},"2850":{"varMapping":{"__isSmartRef__":true,"id":2851},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2851":{"obj":{"__isSmartRef__":true,"id":2765},"name":"getLayoutableSubmorphs"},"2852":{},"2853":{},"2854":{"submorphs":[{"__isSmartRef__":true,"id":2855}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2924},"derivationIds":[null],"id":"C63E8BC5-33B1-4535-ACDA-B685F9B23920","renderContextTable":{"__isSmartRef__":true,"id":2929},"eventHandler":{"__isSmartRef__":true,"id":2930},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2931},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":2933},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":2934},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2935},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2855":{"submorphs":[{"__isSmartRef__":true,"id":2856},{"__isSmartRef__":true,"id":2877}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2894},"derivationIds":[null],"id":"588238D7-7196-4421-B544-165AECBAB0EC","renderContextTable":{"__isSmartRef__":true,"id":2899},"eventHandler":{"__isSmartRef__":true,"id":2900},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2901},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":17},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","eventHandler","droppingEnabled","halosEnabled","defaultCellHeight","defaultCellWidth","borderSize","colNames","numCols","numRows","activeCellContent","rows","dataModel","priorExtent","colHeads","layout","isInLayoutCycle","owner","showsHalos","halos","_Position","distanceToDragEvent","attributeConnections","doNotSerialize","doNotCopyProperties","$$activeCell","activeCell"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"doitContext","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2856},"text":{"__isSmartRef__":true,"id":2877},"owner":{"__isSmartRef__":true,"id":2854},"_Position":{"__isSmartRef__":true,"id":2902},"priorExtent":{"__isSmartRef__":true,"id":2903},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2904},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2856":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2857},"derivationIds":[null],"id":"079C4CDF-A97C-4855-9E08-DBE613ABA5A3","renderContextTable":{"__isSmartRef__":true,"id":2863},"eventHandler":{"__isSmartRef__":true,"id":2864},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2865},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2855},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2866},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2857":{"_Position":{"__isSmartRef__":true,"id":2858},"renderContextTable":{"__isSmartRef__":true,"id":2859},"_Extent":{"__isSmartRef__":true,"id":2860},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2861},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2862},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2858":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2859":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2860":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2861":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2862":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2863":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2864":{"morph":{"__isSmartRef__":true,"id":2856},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2865":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2866":{"toggle":{"__isSmartRef__":true,"id":2867},"toggleExpansion":{"__isSmartRef__":true,"id":2874}},"2867":{"varMapping":{"__isSmartRef__":true,"id":2868},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2868":{"this":{"__isSmartRef__":true,"id":2856},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2869}},"2869":{"$super":{"__isSmartRef__":true,"id":2870}},"2870":{"varMapping":{"__isSmartRef__":true,"id":2871},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2871":{"obj":{"__isSmartRef__":true,"id":2856},"name":"toggle"},"2872":{},"2873":{},"2874":{"varMapping":{"__isSmartRef__":true,"id":2875},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2875":{"this":{"__isSmartRef__":true,"id":2856}},"2876":{},"2877":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2878},"derivationIds":[null],"id":"DD0C688F-ADE2-4BC3-B9F7-7BE56B117E23","renderContextTable":{"__isSmartRef__":true,"id":2882},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2883},{"__isSmartRef__":true,"id":2885}],"eventHandler":{"__isSmartRef__":true,"id":2887},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2888},"priorExtent":{"__isSmartRef__":true,"id":2889},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2855},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2890},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2878":{"_Position":{"__isSmartRef__":true,"id":2879},"renderContextTable":{"__isSmartRef__":true,"id":2880},"_Extent":{"__isSmartRef__":true,"id":2881},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2879":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2880":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2881":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2882":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2883":{"style":{"__isSmartRef__":true,"id":2884},"chunkOwner":{"__isSmartRef__":true,"id":2877},"storedString":"doitContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2884":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2885":{"style":{"__isSmartRef__":true,"id":2886},"chunkOwner":{"__isSmartRef__":true,"id":2877},"storedString":": DataGrid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2886":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2887":{"morph":{"__isSmartRef__":true,"id":2877},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2888":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2889":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2890":{"layoutText":{"__isSmartRef__":true,"id":2891}},"2891":{"varMapping":{"__isSmartRef__":true,"id":2892},"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":2893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2892":{"this":{"__isSmartRef__":true,"id":2877}},"2893":{},"2894":{"_Position":{"__isSmartRef__":true,"id":2895},"renderContextTable":{"__isSmartRef__":true,"id":2896},"_Extent":{"__isSmartRef__":true,"id":2897},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2898},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2895":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2896":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2897":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2898":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2899":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2900":{"morph":{"__isSmartRef__":true,"id":2855},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2901":{"resizeWidth":true},"2902":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2903":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2904":{"updateExpanderColor":{"__isSmartRef__":true,"id":2905},"onMouseDown":{"__isSmartRef__":true,"id":2908},"isRoot":{"__isSmartRef__":true,"id":2915},"displayValue":{"__isSmartRef__":true,"id":2918},"update":{"__isSmartRef__":true,"id":2921}},"2905":{"varMapping":{"__isSmartRef__":true,"id":2906},"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":2907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2906":{"this":{"__isSmartRef__":true,"id":2855}},"2907":{},"2908":{"varMapping":{"__isSmartRef__":true,"id":2909},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":2914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2909":{"this":{"__isSmartRef__":true,"id":2855},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2910}},"2910":{"$super":{"__isSmartRef__":true,"id":2911}},"2911":{"varMapping":{"__isSmartRef__":true,"id":2912},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2912":{"obj":{"__isSmartRef__":true,"id":2855},"name":"onMouseDown"},"2913":{},"2914":{},"2915":{"varMapping":{"__isSmartRef__":true,"id":2916},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":2917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2916":{"this":{"__isSmartRef__":true,"id":2855}},"2917":{},"2918":{"varMapping":{"__isSmartRef__":true,"id":2919},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":2920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2919":{"this":{"__isSmartRef__":true,"id":2855}},"2920":{},"2921":{"varMapping":{"__isSmartRef__":true,"id":2922},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2922":{"this":{"__isSmartRef__":true,"id":2855}},"2923":{},"2924":{"_Position":{"__isSmartRef__":true,"id":2925},"renderContextTable":{"__isSmartRef__":true,"id":2926},"_Extent":{"__isSmartRef__":true,"id":2927},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2928},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2925":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2926":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2927":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2928":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2929":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2930":{"morph":{"__isSmartRef__":true,"id":2854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2931":{"layouter":{"__isSmartRef__":true,"id":2932},"resizeWidth":true},"2932":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2854},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"2933":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2934":{"x":0,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2935":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":2936}},"2936":{"varMapping":{"__isSmartRef__":true,"id":2937},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":2942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2937":{"this":{"__isSmartRef__":true,"id":2854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2938}},"2938":{"$super":{"__isSmartRef__":true,"id":2939}},"2939":{"varMapping":{"__isSmartRef__":true,"id":2940},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2940":{"obj":{"__isSmartRef__":true,"id":2854},"name":"getLayoutableSubmorphs"},"2941":{},"2942":{},"2943":{"submorphs":[{"__isSmartRef__":true,"id":2944}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3013},"derivationIds":[null],"id":"0590D036-0B11-46EE-B0E8-33989F4BCFD5","renderContextTable":{"__isSmartRef__":true,"id":3018},"eventHandler":{"__isSmartRef__":true,"id":3019},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3020},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3022},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3023},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3024},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2944":{"submorphs":[{"__isSmartRef__":true,"id":2945},{"__isSmartRef__":true,"id":2966}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2983},"derivationIds":[null],"id":"6AE58600-A4E0-47D5-B76C-B432D841414E","renderContextTable":{"__isSmartRef__":true,"id":2988},"eventHandler":{"__isSmartRef__":true,"id":2989},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2990},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"droppingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":2945},"text":{"__isSmartRef__":true,"id":2966},"owner":{"__isSmartRef__":true,"id":2943},"_Position":{"__isSmartRef__":true,"id":2991},"priorExtent":{"__isSmartRef__":true,"id":2992},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2993},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"2945":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2946},"derivationIds":[null],"id":"B0EA845C-806B-4D00-A8CD-329589D76FBF","renderContextTable":{"__isSmartRef__":true,"id":2952},"eventHandler":{"__isSmartRef__":true,"id":2953},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2954},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":2944},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2955},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"2946":{"_Position":{"__isSmartRef__":true,"id":2947},"renderContextTable":{"__isSmartRef__":true,"id":2948},"_Extent":{"__isSmartRef__":true,"id":2949},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2950},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2951},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2947":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2948":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2949":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2950":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2951":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2952":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2953":{"morph":{"__isSmartRef__":true,"id":2945},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2954":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2955":{"toggle":{"__isSmartRef__":true,"id":2956},"toggleExpansion":{"__isSmartRef__":true,"id":2963}},"2956":{"varMapping":{"__isSmartRef__":true,"id":2957},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":2962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2957":{"this":{"__isSmartRef__":true,"id":2945},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2958}},"2958":{"$super":{"__isSmartRef__":true,"id":2959}},"2959":{"varMapping":{"__isSmartRef__":true,"id":2960},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2960":{"obj":{"__isSmartRef__":true,"id":2945},"name":"toggle"},"2961":{},"2962":{},"2963":{"varMapping":{"__isSmartRef__":true,"id":2964},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":2965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2964":{"this":{"__isSmartRef__":true,"id":2945}},"2965":{},"2966":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2967},"derivationIds":[null],"id":"A2F379E7-A518-4F6C-9410-9F5CB9BAB33C","renderContextTable":{"__isSmartRef__":true,"id":2971},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":2972},{"__isSmartRef__":true,"id":2974}],"eventHandler":{"__isSmartRef__":true,"id":2976},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":2977},"priorExtent":{"__isSmartRef__":true,"id":2978},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2944},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2979},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2967":{"_Position":{"__isSmartRef__":true,"id":2968},"renderContextTable":{"__isSmartRef__":true,"id":2969},"_Extent":{"__isSmartRef__":true,"id":2970},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2968":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2969":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2970":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2971":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2972":{"style":{"__isSmartRef__":true,"id":2973},"chunkOwner":{"__isSmartRef__":true,"id":2966},"storedString":"droppingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2973":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2974":{"style":{"__isSmartRef__":true,"id":2975},"chunkOwner":{"__isSmartRef__":true,"id":2966},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2975":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2976":{"morph":{"__isSmartRef__":true,"id":2966},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2977":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2978":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2979":{"layoutText":{"__isSmartRef__":true,"id":2980}},"2980":{"varMapping":{"__isSmartRef__":true,"id":2981},"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":2982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2981":{"this":{"__isSmartRef__":true,"id":2966}},"2982":{},"2983":{"_Position":{"__isSmartRef__":true,"id":2984},"renderContextTable":{"__isSmartRef__":true,"id":2985},"_Extent":{"__isSmartRef__":true,"id":2986},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2987},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2984":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2985":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2986":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2987":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2988":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2989":{"morph":{"__isSmartRef__":true,"id":2944},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2990":{"resizeWidth":true},"2991":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2992":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2993":{"updateExpanderColor":{"__isSmartRef__":true,"id":2994},"onMouseDown":{"__isSmartRef__":true,"id":2997},"isRoot":{"__isSmartRef__":true,"id":3004},"displayValue":{"__isSmartRef__":true,"id":3007},"update":{"__isSmartRef__":true,"id":3010}},"2994":{"varMapping":{"__isSmartRef__":true,"id":2995},"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":2996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2995":{"this":{"__isSmartRef__":true,"id":2944}},"2996":{},"2997":{"varMapping":{"__isSmartRef__":true,"id":2998},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2998":{"this":{"__isSmartRef__":true,"id":2944},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2999}},"2999":{"$super":{"__isSmartRef__":true,"id":3000}},"3000":{"varMapping":{"__isSmartRef__":true,"id":3001},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3001":{"obj":{"__isSmartRef__":true,"id":2944},"name":"onMouseDown"},"3002":{},"3003":{},"3004":{"varMapping":{"__isSmartRef__":true,"id":3005},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3005":{"this":{"__isSmartRef__":true,"id":2944}},"3006":{},"3007":{"varMapping":{"__isSmartRef__":true,"id":3008},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3008":{"this":{"__isSmartRef__":true,"id":2944}},"3009":{},"3010":{"varMapping":{"__isSmartRef__":true,"id":3011},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3011":{"this":{"__isSmartRef__":true,"id":2944}},"3012":{},"3013":{"_Position":{"__isSmartRef__":true,"id":3014},"renderContextTable":{"__isSmartRef__":true,"id":3015},"_Extent":{"__isSmartRef__":true,"id":3016},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3017},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3014":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3015":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3016":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3017":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3018":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3019":{"morph":{"__isSmartRef__":true,"id":2943},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3020":{"layouter":{"__isSmartRef__":true,"id":3021},"resizeWidth":true},"3021":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":2943},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3022":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3023":{"x":0,"y":320,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3024":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3025}},"3025":{"varMapping":{"__isSmartRef__":true,"id":3026},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3026":{"this":{"__isSmartRef__":true,"id":2943},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3027}},"3027":{"$super":{"__isSmartRef__":true,"id":3028}},"3028":{"varMapping":{"__isSmartRef__":true,"id":3029},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3029":{"obj":{"__isSmartRef__":true,"id":2943},"name":"getLayoutableSubmorphs"},"3030":{},"3031":{},"3032":{"submorphs":[{"__isSmartRef__":true,"id":3033}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3102},"derivationIds":[null],"id":"39D5EF4D-AFEB-4EBC-A8FD-C62C6361198A","renderContextTable":{"__isSmartRef__":true,"id":3107},"eventHandler":{"__isSmartRef__":true,"id":3108},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3109},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3111},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3112},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3113},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3033":{"submorphs":[{"__isSmartRef__":true,"id":3034},{"__isSmartRef__":true,"id":3055}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3072},"derivationIds":[null],"id":"CD7FCFDE-B778-46A3-9286-1DBDB49C1C28","renderContextTable":{"__isSmartRef__":true,"id":3077},"eventHandler":{"__isSmartRef__":true,"id":3078},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3079},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"evalEnabled","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3034},"text":{"__isSmartRef__":true,"id":3055},"owner":{"__isSmartRef__":true,"id":3032},"_Position":{"__isSmartRef__":true,"id":3080},"priorExtent":{"__isSmartRef__":true,"id":3081},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3082},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3034":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3035},"derivationIds":[null],"id":"D35F0621-8011-46E2-A5CF-B05BAEBF0603","renderContextTable":{"__isSmartRef__":true,"id":3041},"eventHandler":{"__isSmartRef__":true,"id":3042},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3043},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3033},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3044},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3035":{"_Position":{"__isSmartRef__":true,"id":3036},"renderContextTable":{"__isSmartRef__":true,"id":3037},"_Extent":{"__isSmartRef__":true,"id":3038},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3039},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3040},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3036":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3037":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3038":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3039":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3040":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3041":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3042":{"morph":{"__isSmartRef__":true,"id":3034},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3043":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3044":{"toggle":{"__isSmartRef__":true,"id":3045},"toggleExpansion":{"__isSmartRef__":true,"id":3052}},"3045":{"varMapping":{"__isSmartRef__":true,"id":3046},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3046":{"this":{"__isSmartRef__":true,"id":3034},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3047}},"3047":{"$super":{"__isSmartRef__":true,"id":3048}},"3048":{"varMapping":{"__isSmartRef__":true,"id":3049},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3049":{"obj":{"__isSmartRef__":true,"id":3034},"name":"toggle"},"3050":{},"3051":{},"3052":{"varMapping":{"__isSmartRef__":true,"id":3053},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3053":{"this":{"__isSmartRef__":true,"id":3034}},"3054":{},"3055":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3056},"derivationIds":[null],"id":"6BEFEB72-8963-4DE5-8463-FA50DE5337A8","renderContextTable":{"__isSmartRef__":true,"id":3060},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3061},{"__isSmartRef__":true,"id":3063}],"eventHandler":{"__isSmartRef__":true,"id":3065},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3066},"priorExtent":{"__isSmartRef__":true,"id":3067},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3033},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3068},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3056":{"_Position":{"__isSmartRef__":true,"id":3057},"renderContextTable":{"__isSmartRef__":true,"id":3058},"_Extent":{"__isSmartRef__":true,"id":3059},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3057":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3058":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3059":{"x":143,"y":20,"__LivelyClassName__":"Point","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3061":{"style":{"__isSmartRef__":true,"id":3062},"chunkOwner":{"__isSmartRef__":true,"id":3055},"storedString":"evalEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3062":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3063":{"style":{"__isSmartRef__":true,"id":3064},"chunkOwner":{"__isSmartRef__":true,"id":3055},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3064":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3065":{"morph":{"__isSmartRef__":true,"id":3055},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3066":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3067":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3068":{"layoutText":{"__isSmartRef__":true,"id":3069}},"3069":{"varMapping":{"__isSmartRef__":true,"id":3070},"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":3071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3070":{"this":{"__isSmartRef__":true,"id":3055}},"3071":{},"3072":{"_Position":{"__isSmartRef__":true,"id":3073},"renderContextTable":{"__isSmartRef__":true,"id":3074},"_Extent":{"__isSmartRef__":true,"id":3075},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3076},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3073":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3074":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3075":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3076":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3077":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3078":{"morph":{"__isSmartRef__":true,"id":3033},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3079":{"resizeWidth":true},"3080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3081":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3082":{"updateExpanderColor":{"__isSmartRef__":true,"id":3083},"onMouseDown":{"__isSmartRef__":true,"id":3086},"isRoot":{"__isSmartRef__":true,"id":3093},"displayValue":{"__isSmartRef__":true,"id":3096},"update":{"__isSmartRef__":true,"id":3099}},"3083":{"varMapping":{"__isSmartRef__":true,"id":3084},"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":3085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3084":{"this":{"__isSmartRef__":true,"id":3033}},"3085":{},"3086":{"varMapping":{"__isSmartRef__":true,"id":3087},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3087":{"this":{"__isSmartRef__":true,"id":3033},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3088}},"3088":{"$super":{"__isSmartRef__":true,"id":3089}},"3089":{"varMapping":{"__isSmartRef__":true,"id":3090},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3090":{"obj":{"__isSmartRef__":true,"id":3033},"name":"onMouseDown"},"3091":{},"3092":{},"3093":{"varMapping":{"__isSmartRef__":true,"id":3094},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3094":{"this":{"__isSmartRef__":true,"id":3033}},"3095":{},"3096":{"varMapping":{"__isSmartRef__":true,"id":3097},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3097":{"this":{"__isSmartRef__":true,"id":3033}},"3098":{},"3099":{"varMapping":{"__isSmartRef__":true,"id":3100},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3100":{"this":{"__isSmartRef__":true,"id":3033}},"3101":{},"3102":{"_Position":{"__isSmartRef__":true,"id":3103},"renderContextTable":{"__isSmartRef__":true,"id":3104},"_Extent":{"__isSmartRef__":true,"id":3105},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3106},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3103":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3104":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3105":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3106":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3107":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3108":{"morph":{"__isSmartRef__":true,"id":3032},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3109":{"layouter":{"__isSmartRef__":true,"id":3110},"resizeWidth":true},"3110":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3032},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3111":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3112":{"x":0,"y":340,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3113":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3114}},"3114":{"varMapping":{"__isSmartRef__":true,"id":3115},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3115":{"this":{"__isSmartRef__":true,"id":3032},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3116}},"3116":{"$super":{"__isSmartRef__":true,"id":3117}},"3117":{"varMapping":{"__isSmartRef__":true,"id":3118},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3118":{"obj":{"__isSmartRef__":true,"id":3032},"name":"getLayoutableSubmorphs"},"3119":{},"3120":{},"3121":{"submorphs":[{"__isSmartRef__":true,"id":3122}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3191},"derivationIds":[null],"id":"29CDB733-E076-407C-9988-B4740253972F","renderContextTable":{"__isSmartRef__":true,"id":3196},"eventHandler":{"__isSmartRef__":true,"id":3197},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3198},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3200},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3201},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3202},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3122":{"submorphs":[{"__isSmartRef__":true,"id":3123},{"__isSmartRef__":true,"id":3144}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3161},"derivationIds":[null],"id":"8E5990E1-3471-46D9-A32C-9C2DE895CAA9","renderContextTable":{"__isSmartRef__":true,"id":3166},"eventHandler":{"__isSmartRef__":true,"id":3167},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3168},"grabbingEnabled":false,"draggingEnabled":false,"data":"cell(1,0)+cell(1,1)","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"evalExpression","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3123},"text":{"__isSmartRef__":true,"id":3144},"owner":{"__isSmartRef__":true,"id":3121},"_Position":{"__isSmartRef__":true,"id":3169},"priorExtent":{"__isSmartRef__":true,"id":3170},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3171},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3123":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3124},"derivationIds":[null],"id":"4F0113D6-0D4E-4F67-A49C-507771D66702","renderContextTable":{"__isSmartRef__":true,"id":3130},"eventHandler":{"__isSmartRef__":true,"id":3131},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3132},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3133},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3124":{"_Position":{"__isSmartRef__":true,"id":3125},"renderContextTable":{"__isSmartRef__":true,"id":3126},"_Extent":{"__isSmartRef__":true,"id":3127},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3128},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3129},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3125":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3126":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3127":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3128":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3129":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3130":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3131":{"morph":{"__isSmartRef__":true,"id":3123},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3132":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3133":{"toggle":{"__isSmartRef__":true,"id":3134},"toggleExpansion":{"__isSmartRef__":true,"id":3141}},"3134":{"varMapping":{"__isSmartRef__":true,"id":3135},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3135":{"this":{"__isSmartRef__":true,"id":3123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3136}},"3136":{"$super":{"__isSmartRef__":true,"id":3137}},"3137":{"varMapping":{"__isSmartRef__":true,"id":3138},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3138":{"obj":{"__isSmartRef__":true,"id":3123},"name":"toggle"},"3139":{},"3140":{},"3141":{"varMapping":{"__isSmartRef__":true,"id":3142},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3142":{"this":{"__isSmartRef__":true,"id":3123}},"3143":{},"3144":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3145},"derivationIds":[null],"id":"7E2DD183-B7AE-4EFA-9A8F-338554FB7B38","renderContextTable":{"__isSmartRef__":true,"id":3149},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3150},{"__isSmartRef__":true,"id":3152}],"eventHandler":{"__isSmartRef__":true,"id":3154},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3155},"priorExtent":{"__isSmartRef__":true,"id":3156},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3157},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3145":{"_Position":{"__isSmartRef__":true,"id":3146},"renderContextTable":{"__isSmartRef__":true,"id":3147},"_Extent":{"__isSmartRef__":true,"id":3148},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3146":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3147":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3148":{"x":262.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3149":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3150":{"style":{"__isSmartRef__":true,"id":3151},"chunkOwner":{"__isSmartRef__":true,"id":3144},"storedString":"evalExpression","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3151":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3152":{"style":{"__isSmartRef__":true,"id":3153},"chunkOwner":{"__isSmartRef__":true,"id":3144},"storedString":": cell(1,0)+cell(1,1)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3153":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3154":{"morph":{"__isSmartRef__":true,"id":3144},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3155":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3156":{"x":270.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3157":{"layoutText":{"__isSmartRef__":true,"id":3158}},"3158":{"varMapping":{"__isSmartRef__":true,"id":3159},"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":3160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3159":{"this":{"__isSmartRef__":true,"id":3144}},"3160":{},"3161":{"_Position":{"__isSmartRef__":true,"id":3162},"renderContextTable":{"__isSmartRef__":true,"id":3163},"_Extent":{"__isSmartRef__":true,"id":3164},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3165},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3162":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3163":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3164":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3165":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3166":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3167":{"morph":{"__isSmartRef__":true,"id":3122},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3168":{"resizeWidth":true},"3169":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3170":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3171":{"updateExpanderColor":{"__isSmartRef__":true,"id":3172},"onMouseDown":{"__isSmartRef__":true,"id":3175},"isRoot":{"__isSmartRef__":true,"id":3182},"displayValue":{"__isSmartRef__":true,"id":3185},"update":{"__isSmartRef__":true,"id":3188}},"3172":{"varMapping":{"__isSmartRef__":true,"id":3173},"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":3174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3173":{"this":{"__isSmartRef__":true,"id":3122}},"3174":{},"3175":{"varMapping":{"__isSmartRef__":true,"id":3176},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3176":{"this":{"__isSmartRef__":true,"id":3122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3177}},"3177":{"$super":{"__isSmartRef__":true,"id":3178}},"3178":{"varMapping":{"__isSmartRef__":true,"id":3179},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3179":{"obj":{"__isSmartRef__":true,"id":3122},"name":"onMouseDown"},"3180":{},"3181":{},"3182":{"varMapping":{"__isSmartRef__":true,"id":3183},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3183":{"this":{"__isSmartRef__":true,"id":3122}},"3184":{},"3185":{"varMapping":{"__isSmartRef__":true,"id":3186},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3186":{"this":{"__isSmartRef__":true,"id":3122}},"3187":{},"3188":{"varMapping":{"__isSmartRef__":true,"id":3189},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3189":{"this":{"__isSmartRef__":true,"id":3122}},"3190":{},"3191":{"_Position":{"__isSmartRef__":true,"id":3192},"renderContextTable":{"__isSmartRef__":true,"id":3193},"_Extent":{"__isSmartRef__":true,"id":3194},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3195},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3192":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3193":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3194":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3195":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3196":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3197":{"morph":{"__isSmartRef__":true,"id":3121},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3198":{"layouter":{"__isSmartRef__":true,"id":3199},"resizeWidth":true},"3199":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3121},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3200":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3201":{"x":0,"y":360,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3202":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3203}},"3203":{"varMapping":{"__isSmartRef__":true,"id":3204},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3204":{"this":{"__isSmartRef__":true,"id":3121},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3205}},"3205":{"$super":{"__isSmartRef__":true,"id":3206}},"3206":{"varMapping":{"__isSmartRef__":true,"id":3207},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3207":{"obj":{"__isSmartRef__":true,"id":3121},"name":"getLayoutableSubmorphs"},"3208":{},"3209":{},"3210":{"submorphs":[{"__isSmartRef__":true,"id":3211}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3280},"derivationIds":[null],"id":"52CC5EC7-60BD-4ECD-A2C8-36FC4053D334","renderContextTable":{"__isSmartRef__":true,"id":3285},"eventHandler":{"__isSmartRef__":true,"id":3286},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3287},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3289},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3290},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3291},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3211":{"submorphs":[{"__isSmartRef__":true,"id":3212},{"__isSmartRef__":true,"id":3233}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3250},"derivationIds":[null],"id":"56C81952-C732-4A90-A023-DBA3DA28EB1E","renderContextTable":{"__isSmartRef__":true,"id":3255},"eventHandler":{"__isSmartRef__":true,"id":3256},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3257},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":316},"propertyList":["morph","dispatchTable"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"eventHandler","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3212},"text":{"__isSmartRef__":true,"id":3233},"owner":{"__isSmartRef__":true,"id":3210},"_Position":{"__isSmartRef__":true,"id":3258},"priorExtent":{"__isSmartRef__":true,"id":3259},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3260},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3212":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3213},"derivationIds":[null],"id":"598794AB-D45A-4A94-B903-E710EEB02010","renderContextTable":{"__isSmartRef__":true,"id":3219},"eventHandler":{"__isSmartRef__":true,"id":3220},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3221},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3211},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3222},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3213":{"_Position":{"__isSmartRef__":true,"id":3214},"renderContextTable":{"__isSmartRef__":true,"id":3215},"_Extent":{"__isSmartRef__":true,"id":3216},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3217},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3218},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3214":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3215":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3216":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3217":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3218":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3219":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3220":{"morph":{"__isSmartRef__":true,"id":3212},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3221":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3222":{"toggle":{"__isSmartRef__":true,"id":3223},"toggleExpansion":{"__isSmartRef__":true,"id":3230}},"3223":{"varMapping":{"__isSmartRef__":true,"id":3224},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3224":{"this":{"__isSmartRef__":true,"id":3212},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3225}},"3225":{"$super":{"__isSmartRef__":true,"id":3226}},"3226":{"varMapping":{"__isSmartRef__":true,"id":3227},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3227":{"obj":{"__isSmartRef__":true,"id":3212},"name":"toggle"},"3228":{},"3229":{},"3230":{"varMapping":{"__isSmartRef__":true,"id":3231},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3231":{"this":{"__isSmartRef__":true,"id":3212}},"3232":{},"3233":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3234},"derivationIds":[null],"id":"334A46BD-81DA-41FF-AD4B-39EB475EFF9A","renderContextTable":{"__isSmartRef__":true,"id":3238},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3239},{"__isSmartRef__":true,"id":3241}],"eventHandler":{"__isSmartRef__":true,"id":3243},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3244},"priorExtent":{"__isSmartRef__":true,"id":3245},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3211},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3246},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3234":{"_Position":{"__isSmartRef__":true,"id":3235},"renderContextTable":{"__isSmartRef__":true,"id":3236},"_Extent":{"__isSmartRef__":true,"id":3237},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3235":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3236":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3237":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3238":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3239":{"style":{"__isSmartRef__":true,"id":3240},"chunkOwner":{"__isSmartRef__":true,"id":3233},"storedString":"eventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3240":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3241":{"style":{"__isSmartRef__":true,"id":3242},"chunkOwner":{"__isSmartRef__":true,"id":3233},"storedString":": EventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3242":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3243":{"morph":{"__isSmartRef__":true,"id":3233},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3244":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3245":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3246":{"layoutText":{"__isSmartRef__":true,"id":3247}},"3247":{"varMapping":{"__isSmartRef__":true,"id":3248},"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":3249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3248":{"this":{"__isSmartRef__":true,"id":3233}},"3249":{},"3250":{"_Position":{"__isSmartRef__":true,"id":3251},"renderContextTable":{"__isSmartRef__":true,"id":3252},"_Extent":{"__isSmartRef__":true,"id":3253},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3254},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3251":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3252":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3253":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3254":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3255":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3256":{"morph":{"__isSmartRef__":true,"id":3211},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3257":{"resizeWidth":true},"3258":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3259":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3260":{"updateExpanderColor":{"__isSmartRef__":true,"id":3261},"onMouseDown":{"__isSmartRef__":true,"id":3264},"isRoot":{"__isSmartRef__":true,"id":3271},"displayValue":{"__isSmartRef__":true,"id":3274},"update":{"__isSmartRef__":true,"id":3277}},"3261":{"varMapping":{"__isSmartRef__":true,"id":3262},"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":3263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3262":{"this":{"__isSmartRef__":true,"id":3211}},"3263":{},"3264":{"varMapping":{"__isSmartRef__":true,"id":3265},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3265":{"this":{"__isSmartRef__":true,"id":3211},"__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":3211},"name":"onMouseDown"},"3269":{},"3270":{},"3271":{"varMapping":{"__isSmartRef__":true,"id":3272},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3272":{"this":{"__isSmartRef__":true,"id":3211}},"3273":{},"3274":{"varMapping":{"__isSmartRef__":true,"id":3275},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3275":{"this":{"__isSmartRef__":true,"id":3211}},"3276":{},"3277":{"varMapping":{"__isSmartRef__":true,"id":3278},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3278":{"this":{"__isSmartRef__":true,"id":3211}},"3279":{},"3280":{"_Position":{"__isSmartRef__":true,"id":3281},"renderContextTable":{"__isSmartRef__":true,"id":3282},"_Extent":{"__isSmartRef__":true,"id":3283},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3284},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3281":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3282":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3283":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3284":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3285":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3286":{"morph":{"__isSmartRef__":true,"id":3210},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3287":{"layouter":{"__isSmartRef__":true,"id":3288},"resizeWidth":true},"3288":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3210},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3289":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3290":{"x":0,"y":380,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3291":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3292}},"3292":{"varMapping":{"__isSmartRef__":true,"id":3293},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3293":{"this":{"__isSmartRef__":true,"id":3210},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3294}},"3294":{"$super":{"__isSmartRef__":true,"id":3295}},"3295":{"varMapping":{"__isSmartRef__":true,"id":3296},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3296":{"obj":{"__isSmartRef__":true,"id":3210},"name":"getLayoutableSubmorphs"},"3297":{},"3298":{},"3299":{"submorphs":[{"__isSmartRef__":true,"id":3300}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3369},"derivationIds":[null],"id":"B0826508-52A9-46B4-B64F-FBABD7874410","renderContextTable":{"__isSmartRef__":true,"id":3374},"eventHandler":{"__isSmartRef__":true,"id":3375},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3376},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3378},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3379},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3380},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3300":{"submorphs":[{"__isSmartRef__":true,"id":3301},{"__isSmartRef__":true,"id":3322}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3339},"derivationIds":[null],"id":"9AF25E4D-C1C8-438F-B137-4BB4F38A3A33","renderContextTable":{"__isSmartRef__":true,"id":3344},"eventHandler":{"__isSmartRef__":true,"id":3345},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3346},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"fixedHeight","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3301},"text":{"__isSmartRef__":true,"id":3322},"owner":{"__isSmartRef__":true,"id":3299},"_Position":{"__isSmartRef__":true,"id":3347},"priorExtent":{"__isSmartRef__":true,"id":3348},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3349},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3301":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3302},"derivationIds":[null],"id":"DF38EEC3-D18B-45E8-AF0E-937F330561E2","renderContextTable":{"__isSmartRef__":true,"id":3308},"eventHandler":{"__isSmartRef__":true,"id":3309},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3310},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3311},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3302":{"_Position":{"__isSmartRef__":true,"id":3303},"renderContextTable":{"__isSmartRef__":true,"id":3304},"_Extent":{"__isSmartRef__":true,"id":3305},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3306},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3307},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3304":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3305":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3306":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3307":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3308":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3309":{"morph":{"__isSmartRef__":true,"id":3301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3310":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3311":{"toggle":{"__isSmartRef__":true,"id":3312},"toggleExpansion":{"__isSmartRef__":true,"id":3319}},"3312":{"varMapping":{"__isSmartRef__":true,"id":3313},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3313":{"this":{"__isSmartRef__":true,"id":3301},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3314}},"3314":{"$super":{"__isSmartRef__":true,"id":3315}},"3315":{"varMapping":{"__isSmartRef__":true,"id":3316},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3316":{"obj":{"__isSmartRef__":true,"id":3301},"name":"toggle"},"3317":{},"3318":{},"3319":{"varMapping":{"__isSmartRef__":true,"id":3320},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3320":{"this":{"__isSmartRef__":true,"id":3301}},"3321":{},"3322":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3323},"derivationIds":[null],"id":"754D986E-C9ED-4C98-A910-06D2EEE783FC","renderContextTable":{"__isSmartRef__":true,"id":3327},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3328},{"__isSmartRef__":true,"id":3330}],"eventHandler":{"__isSmartRef__":true,"id":3332},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3333},"priorExtent":{"__isSmartRef__":true,"id":3334},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3335},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3323":{"_Position":{"__isSmartRef__":true,"id":3324},"renderContextTable":{"__isSmartRef__":true,"id":3325},"_Extent":{"__isSmartRef__":true,"id":3326},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3324":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3325":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3326":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3327":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3328":{"style":{"__isSmartRef__":true,"id":3329},"chunkOwner":{"__isSmartRef__":true,"id":3322},"storedString":"fixedHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3329":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3330":{"style":{"__isSmartRef__":true,"id":3331},"chunkOwner":{"__isSmartRef__":true,"id":3322},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3331":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3332":{"morph":{"__isSmartRef__":true,"id":3322},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3333":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3334":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3335":{"layoutText":{"__isSmartRef__":true,"id":3336}},"3336":{"varMapping":{"__isSmartRef__":true,"id":3337},"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":3338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3337":{"this":{"__isSmartRef__":true,"id":3322}},"3338":{},"3339":{"_Position":{"__isSmartRef__":true,"id":3340},"renderContextTable":{"__isSmartRef__":true,"id":3341},"_Extent":{"__isSmartRef__":true,"id":3342},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3343},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3340":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3341":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3342":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3343":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3344":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3345":{"morph":{"__isSmartRef__":true,"id":3300},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3346":{"resizeWidth":true},"3347":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3348":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3349":{"updateExpanderColor":{"__isSmartRef__":true,"id":3350},"onMouseDown":{"__isSmartRef__":true,"id":3353},"isRoot":{"__isSmartRef__":true,"id":3360},"displayValue":{"__isSmartRef__":true,"id":3363},"update":{"__isSmartRef__":true,"id":3366}},"3350":{"varMapping":{"__isSmartRef__":true,"id":3351},"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":3352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3351":{"this":{"__isSmartRef__":true,"id":3300}},"3352":{},"3353":{"varMapping":{"__isSmartRef__":true,"id":3354},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3354":{"this":{"__isSmartRef__":true,"id":3300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3355}},"3355":{"$super":{"__isSmartRef__":true,"id":3356}},"3356":{"varMapping":{"__isSmartRef__":true,"id":3357},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3357":{"obj":{"__isSmartRef__":true,"id":3300},"name":"onMouseDown"},"3358":{},"3359":{},"3360":{"varMapping":{"__isSmartRef__":true,"id":3361},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3361":{"this":{"__isSmartRef__":true,"id":3300}},"3362":{},"3363":{"varMapping":{"__isSmartRef__":true,"id":3364},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3364":{"this":{"__isSmartRef__":true,"id":3300}},"3365":{},"3366":{"varMapping":{"__isSmartRef__":true,"id":3367},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3367":{"this":{"__isSmartRef__":true,"id":3300}},"3368":{},"3369":{"_Position":{"__isSmartRef__":true,"id":3370},"renderContextTable":{"__isSmartRef__":true,"id":3371},"_Extent":{"__isSmartRef__":true,"id":3372},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3373},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3370":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3371":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3372":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3373":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3374":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3375":{"morph":{"__isSmartRef__":true,"id":3299},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3376":{"layouter":{"__isSmartRef__":true,"id":3377},"resizeWidth":true},"3377":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3299},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3378":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3379":{"x":0,"y":400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3380":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3381}},"3381":{"varMapping":{"__isSmartRef__":true,"id":3382},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3382":{"this":{"__isSmartRef__":true,"id":3299},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3383}},"3383":{"$super":{"__isSmartRef__":true,"id":3384}},"3384":{"varMapping":{"__isSmartRef__":true,"id":3385},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3385":{"obj":{"__isSmartRef__":true,"id":3299},"name":"getLayoutableSubmorphs"},"3386":{},"3387":{},"3388":{"submorphs":[{"__isSmartRef__":true,"id":3389}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3458},"derivationIds":[null],"id":"11198958-AD7E-48A6-9E96-17EE6C295401","renderContextTable":{"__isSmartRef__":true,"id":3463},"eventHandler":{"__isSmartRef__":true,"id":3464},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3465},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3467},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3468},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3469},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3389":{"submorphs":[{"__isSmartRef__":true,"id":3390},{"__isSmartRef__":true,"id":3411}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3428},"derivationIds":[null],"id":"AF1DE9A4-D64A-49B1-813F-B3E7E590AFB6","renderContextTable":{"__isSmartRef__":true,"id":3433},"eventHandler":{"__isSmartRef__":true,"id":3434},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3435},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"fixedWidth","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3390},"text":{"__isSmartRef__":true,"id":3411},"owner":{"__isSmartRef__":true,"id":3388},"_Position":{"__isSmartRef__":true,"id":3436},"priorExtent":{"__isSmartRef__":true,"id":3437},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3438},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3390":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3391},"derivationIds":[null],"id":"4F8ACFEA-B780-4998-B139-6BC8388846C8","renderContextTable":{"__isSmartRef__":true,"id":3397},"eventHandler":{"__isSmartRef__":true,"id":3398},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3399},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3389},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3400},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3391":{"_Position":{"__isSmartRef__":true,"id":3392},"renderContextTable":{"__isSmartRef__":true,"id":3393},"_Extent":{"__isSmartRef__":true,"id":3394},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3395},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3396},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3392":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3393":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3394":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3395":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3396":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3397":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3398":{"morph":{"__isSmartRef__":true,"id":3390},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3399":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3400":{"toggle":{"__isSmartRef__":true,"id":3401},"toggleExpansion":{"__isSmartRef__":true,"id":3408}},"3401":{"varMapping":{"__isSmartRef__":true,"id":3402},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3402":{"this":{"__isSmartRef__":true,"id":3390},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3403}},"3403":{"$super":{"__isSmartRef__":true,"id":3404}},"3404":{"varMapping":{"__isSmartRef__":true,"id":3405},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3405":{"obj":{"__isSmartRef__":true,"id":3390},"name":"toggle"},"3406":{},"3407":{},"3408":{"varMapping":{"__isSmartRef__":true,"id":3409},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3409":{"this":{"__isSmartRef__":true,"id":3390}},"3410":{},"3411":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3412},"derivationIds":[null],"id":"BCB64AC3-0D47-44BC-83E2-5B19D1ADCB62","renderContextTable":{"__isSmartRef__":true,"id":3416},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3417},{"__isSmartRef__":true,"id":3419}],"eventHandler":{"__isSmartRef__":true,"id":3421},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3422},"priorExtent":{"__isSmartRef__":true,"id":3423},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3389},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3424},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3412":{"_Position":{"__isSmartRef__":true,"id":3413},"renderContextTable":{"__isSmartRef__":true,"id":3414},"_Extent":{"__isSmartRef__":true,"id":3415},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3413":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3414":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3415":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3416":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3417":{"style":{"__isSmartRef__":true,"id":3418},"chunkOwner":{"__isSmartRef__":true,"id":3411},"storedString":"fixedWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3418":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3419":{"style":{"__isSmartRef__":true,"id":3420},"chunkOwner":{"__isSmartRef__":true,"id":3411},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3420":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3421":{"morph":{"__isSmartRef__":true,"id":3411},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3422":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3423":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3424":{"layoutText":{"__isSmartRef__":true,"id":3425}},"3425":{"varMapping":{"__isSmartRef__":true,"id":3426},"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":3427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3426":{"this":{"__isSmartRef__":true,"id":3411}},"3427":{},"3428":{"_Position":{"__isSmartRef__":true,"id":3429},"renderContextTable":{"__isSmartRef__":true,"id":3430},"_Extent":{"__isSmartRef__":true,"id":3431},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3432},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3429":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3430":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3431":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3432":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3433":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3434":{"morph":{"__isSmartRef__":true,"id":3389},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3435":{"resizeWidth":true},"3436":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3437":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3438":{"updateExpanderColor":{"__isSmartRef__":true,"id":3439},"onMouseDown":{"__isSmartRef__":true,"id":3442},"isRoot":{"__isSmartRef__":true,"id":3449},"displayValue":{"__isSmartRef__":true,"id":3452},"update":{"__isSmartRef__":true,"id":3455}},"3439":{"varMapping":{"__isSmartRef__":true,"id":3440},"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":3441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3440":{"this":{"__isSmartRef__":true,"id":3389}},"3441":{},"3442":{"varMapping":{"__isSmartRef__":true,"id":3443},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3443":{"this":{"__isSmartRef__":true,"id":3389},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3444}},"3444":{"$super":{"__isSmartRef__":true,"id":3445}},"3445":{"varMapping":{"__isSmartRef__":true,"id":3446},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3446":{"obj":{"__isSmartRef__":true,"id":3389},"name":"onMouseDown"},"3447":{},"3448":{},"3449":{"varMapping":{"__isSmartRef__":true,"id":3450},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3450":{"this":{"__isSmartRef__":true,"id":3389}},"3451":{},"3452":{"varMapping":{"__isSmartRef__":true,"id":3453},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3453":{"this":{"__isSmartRef__":true,"id":3389}},"3454":{},"3455":{"varMapping":{"__isSmartRef__":true,"id":3456},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3456":{"this":{"__isSmartRef__":true,"id":3389}},"3457":{},"3458":{"_Position":{"__isSmartRef__":true,"id":3459},"renderContextTable":{"__isSmartRef__":true,"id":3460},"_Extent":{"__isSmartRef__":true,"id":3461},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3462},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3459":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3460":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3461":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3462":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3463":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3464":{"morph":{"__isSmartRef__":true,"id":3388},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3465":{"layouter":{"__isSmartRef__":true,"id":3466},"resizeWidth":true},"3466":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3388},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3467":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3468":{"x":0,"y":420,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3469":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3470}},"3470":{"varMapping":{"__isSmartRef__":true,"id":3471},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3471":{"this":{"__isSmartRef__":true,"id":3388},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3472}},"3472":{"$super":{"__isSmartRef__":true,"id":3473}},"3473":{"varMapping":{"__isSmartRef__":true,"id":3474},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3474":{"obj":{"__isSmartRef__":true,"id":3388},"name":"getLayoutableSubmorphs"},"3475":{},"3476":{},"3477":{"submorphs":[{"__isSmartRef__":true,"id":3478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3547},"derivationIds":[null],"id":"24572434-559F-41CB-841A-AEA74511AAEB","renderContextTable":{"__isSmartRef__":true,"id":3552},"eventHandler":{"__isSmartRef__":true,"id":3553},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3554},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3556},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3557},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3558},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3478":{"submorphs":[{"__isSmartRef__":true,"id":3479},{"__isSmartRef__":true,"id":3500}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3517},"derivationIds":[null],"id":"433A9D1F-0F10-40E2-8A61-4F7080F18A17","renderContextTable":{"__isSmartRef__":true,"id":3522},"eventHandler":{"__isSmartRef__":true,"id":3523},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3524},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"grabbingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3479},"text":{"__isSmartRef__":true,"id":3500},"owner":{"__isSmartRef__":true,"id":3477},"_Position":{"__isSmartRef__":true,"id":3525},"priorExtent":{"__isSmartRef__":true,"id":3526},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3527},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3479":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3480},"derivationIds":[null],"id":"5DFFD285-13AA-451E-917C-C348BE051A60","renderContextTable":{"__isSmartRef__":true,"id":3486},"eventHandler":{"__isSmartRef__":true,"id":3487},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3488},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3478},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3489},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3480":{"_Position":{"__isSmartRef__":true,"id":3481},"renderContextTable":{"__isSmartRef__":true,"id":3482},"_Extent":{"__isSmartRef__":true,"id":3483},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3484},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3485},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3481":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3482":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3483":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3484":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3485":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3486":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3487":{"morph":{"__isSmartRef__":true,"id":3479},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3488":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3489":{"toggle":{"__isSmartRef__":true,"id":3490},"toggleExpansion":{"__isSmartRef__":true,"id":3497}},"3490":{"varMapping":{"__isSmartRef__":true,"id":3491},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3491":{"this":{"__isSmartRef__":true,"id":3479},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3492}},"3492":{"$super":{"__isSmartRef__":true,"id":3493}},"3493":{"varMapping":{"__isSmartRef__":true,"id":3494},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3494":{"obj":{"__isSmartRef__":true,"id":3479},"name":"toggle"},"3495":{},"3496":{},"3497":{"varMapping":{"__isSmartRef__":true,"id":3498},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3498":{"this":{"__isSmartRef__":true,"id":3479}},"3499":{},"3500":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3501},"derivationIds":[null],"id":"4BBD76AB-9A59-4F2B-B1DA-0EFFB700C7D6","renderContextTable":{"__isSmartRef__":true,"id":3505},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3506},{"__isSmartRef__":true,"id":3508}],"eventHandler":{"__isSmartRef__":true,"id":3510},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3511},"priorExtent":{"__isSmartRef__":true,"id":3512},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3478},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3513},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3501":{"_Position":{"__isSmartRef__":true,"id":3502},"renderContextTable":{"__isSmartRef__":true,"id":3503},"_Extent":{"__isSmartRef__":true,"id":3504},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3502":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3503":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3504":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3505":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3506":{"style":{"__isSmartRef__":true,"id":3507},"chunkOwner":{"__isSmartRef__":true,"id":3500},"storedString":"grabbingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3507":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3508":{"style":{"__isSmartRef__":true,"id":3509},"chunkOwner":{"__isSmartRef__":true,"id":3500},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3509":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3510":{"morph":{"__isSmartRef__":true,"id":3500},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3511":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3512":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3513":{"layoutText":{"__isSmartRef__":true,"id":3514}},"3514":{"varMapping":{"__isSmartRef__":true,"id":3515},"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":3516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3515":{"this":{"__isSmartRef__":true,"id":3500}},"3516":{},"3517":{"_Position":{"__isSmartRef__":true,"id":3518},"renderContextTable":{"__isSmartRef__":true,"id":3519},"_Extent":{"__isSmartRef__":true,"id":3520},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3521},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3518":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3519":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3520":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3521":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3522":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3523":{"morph":{"__isSmartRef__":true,"id":3478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3524":{"resizeWidth":true},"3525":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3526":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3527":{"updateExpanderColor":{"__isSmartRef__":true,"id":3528},"onMouseDown":{"__isSmartRef__":true,"id":3531},"isRoot":{"__isSmartRef__":true,"id":3538},"displayValue":{"__isSmartRef__":true,"id":3541},"update":{"__isSmartRef__":true,"id":3544}},"3528":{"varMapping":{"__isSmartRef__":true,"id":3529},"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":3530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3529":{"this":{"__isSmartRef__":true,"id":3478}},"3530":{},"3531":{"varMapping":{"__isSmartRef__":true,"id":3532},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3532":{"this":{"__isSmartRef__":true,"id":3478},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3533}},"3533":{"$super":{"__isSmartRef__":true,"id":3534}},"3534":{"varMapping":{"__isSmartRef__":true,"id":3535},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3535":{"obj":{"__isSmartRef__":true,"id":3478},"name":"onMouseDown"},"3536":{},"3537":{},"3538":{"varMapping":{"__isSmartRef__":true,"id":3539},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3539":{"this":{"__isSmartRef__":true,"id":3478}},"3540":{},"3541":{"varMapping":{"__isSmartRef__":true,"id":3542},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3542":{"this":{"__isSmartRef__":true,"id":3478}},"3543":{},"3544":{"varMapping":{"__isSmartRef__":true,"id":3545},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3545":{"this":{"__isSmartRef__":true,"id":3478}},"3546":{},"3547":{"_Position":{"__isSmartRef__":true,"id":3548},"renderContextTable":{"__isSmartRef__":true,"id":3549},"_Extent":{"__isSmartRef__":true,"id":3550},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3551},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3548":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3549":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3550":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3551":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3552":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3553":{"morph":{"__isSmartRef__":true,"id":3477},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3554":{"layouter":{"__isSmartRef__":true,"id":3555},"resizeWidth":true},"3555":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3477},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3556":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3557":{"x":0,"y":440,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3558":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3559}},"3559":{"varMapping":{"__isSmartRef__":true,"id":3560},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3560":{"this":{"__isSmartRef__":true,"id":3477},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3561}},"3561":{"$super":{"__isSmartRef__":true,"id":3562}},"3562":{"varMapping":{"__isSmartRef__":true,"id":3563},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3563":{"obj":{"__isSmartRef__":true,"id":3477},"name":"getLayoutableSubmorphs"},"3564":{},"3565":{},"3566":{"submorphs":[{"__isSmartRef__":true,"id":3567}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3635},"derivationIds":[null],"id":"655D3F5D-FB25-46CF-A3C4-D053511D9A01","renderContextTable":{"__isSmartRef__":true,"id":3640},"eventHandler":{"__isSmartRef__":true,"id":3641},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3642},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3644},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3645},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3646},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3567":{"submorphs":[{"__isSmartRef__":true,"id":3568},{"__isSmartRef__":true,"id":3588}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3605},"derivationIds":[null],"id":"C352FEC3-A345-4E75-93B1-87703F43EF70","renderContextTable":{"__isSmartRef__":true,"id":3610},"eventHandler":{"__isSmartRef__":true,"id":3611},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3612},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":17},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","eventHandler","droppingEnabled","halosEnabled","defaultCellHeight","defaultCellWidth","borderSize","colNames","numCols","numRows","activeCellContent","rows","dataModel","priorExtent","colHeads","layout","isInLayoutCycle","owner","showsHalos","halos","_Position","distanceToDragEvent","attributeConnections","doNotSerialize","doNotCopyProperties","$$activeCell","activeCell"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"grid","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3568},"text":{"__isSmartRef__":true,"id":3588},"owner":{"__isSmartRef__":true,"id":3566},"_Position":{"__isSmartRef__":true,"id":3613},"priorExtent":{"__isSmartRef__":true,"id":3614},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3615},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3568":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3569},"derivationIds":[null],"id":"C6B24965-399B-458A-A1C3-81FAB296319B","renderContextTable":{"__isSmartRef__":true,"id":3574},"eventHandler":{"__isSmartRef__":true,"id":3575},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3576},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3567},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3577},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3569":{"_Position":{"__isSmartRef__":true,"id":3570},"renderContextTable":{"__isSmartRef__":true,"id":3571},"_Extent":{"__isSmartRef__":true,"id":3572},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3573},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2862},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3570":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3571":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3572":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3573":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3574":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3575":{"morph":{"__isSmartRef__":true,"id":3568},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3576":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3577":{"toggle":{"__isSmartRef__":true,"id":3578},"toggleExpansion":{"__isSmartRef__":true,"id":3585}},"3578":{"varMapping":{"__isSmartRef__":true,"id":3579},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3579":{"this":{"__isSmartRef__":true,"id":3568},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3580}},"3580":{"$super":{"__isSmartRef__":true,"id":3581}},"3581":{"varMapping":{"__isSmartRef__":true,"id":3582},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3582":{"obj":{"__isSmartRef__":true,"id":3568},"name":"toggle"},"3583":{},"3584":{},"3585":{"varMapping":{"__isSmartRef__":true,"id":3586},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3586":{"this":{"__isSmartRef__":true,"id":3568}},"3587":{},"3588":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3589},"derivationIds":[null],"id":"E27DA60B-8D58-4277-84A4-50EE6034989E","renderContextTable":{"__isSmartRef__":true,"id":3593},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3594},{"__isSmartRef__":true,"id":3596}],"eventHandler":{"__isSmartRef__":true,"id":3598},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3599},"priorExtent":{"__isSmartRef__":true,"id":3600},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3567},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3601},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3589":{"_Position":{"__isSmartRef__":true,"id":3590},"renderContextTable":{"__isSmartRef__":true,"id":3591},"_Extent":{"__isSmartRef__":true,"id":3592},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3590":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3591":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3592":{"x":105,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3593":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3594":{"style":{"__isSmartRef__":true,"id":3595},"chunkOwner":{"__isSmartRef__":true,"id":3588},"storedString":"grid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3595":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3596":{"style":{"__isSmartRef__":true,"id":3597},"chunkOwner":{"__isSmartRef__":true,"id":3588},"storedString":": DataGrid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3597":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3598":{"morph":{"__isSmartRef__":true,"id":3588},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3599":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3600":{"x":105,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3601":{"layoutText":{"__isSmartRef__":true,"id":3602}},"3602":{"varMapping":{"__isSmartRef__":true,"id":3603},"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":3604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3603":{"this":{"__isSmartRef__":true,"id":3588}},"3604":{},"3605":{"_Position":{"__isSmartRef__":true,"id":3606},"renderContextTable":{"__isSmartRef__":true,"id":3607},"_Extent":{"__isSmartRef__":true,"id":3608},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3609},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3606":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3607":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3608":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3609":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3610":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3611":{"morph":{"__isSmartRef__":true,"id":3567},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3612":{"resizeWidth":true},"3613":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3614":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3615":{"updateExpanderColor":{"__isSmartRef__":true,"id":3616},"onMouseDown":{"__isSmartRef__":true,"id":3619},"isRoot":{"__isSmartRef__":true,"id":3626},"displayValue":{"__isSmartRef__":true,"id":3629},"update":{"__isSmartRef__":true,"id":3632}},"3616":{"varMapping":{"__isSmartRef__":true,"id":3617},"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":3618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3617":{"this":{"__isSmartRef__":true,"id":3567}},"3618":{},"3619":{"varMapping":{"__isSmartRef__":true,"id":3620},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3620":{"this":{"__isSmartRef__":true,"id":3567},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3621}},"3621":{"$super":{"__isSmartRef__":true,"id":3622}},"3622":{"varMapping":{"__isSmartRef__":true,"id":3623},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3623":{"obj":{"__isSmartRef__":true,"id":3567},"name":"onMouseDown"},"3624":{},"3625":{},"3626":{"varMapping":{"__isSmartRef__":true,"id":3627},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3627":{"this":{"__isSmartRef__":true,"id":3567}},"3628":{},"3629":{"varMapping":{"__isSmartRef__":true,"id":3630},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3630":{"this":{"__isSmartRef__":true,"id":3567}},"3631":{},"3632":{"varMapping":{"__isSmartRef__":true,"id":3633},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3633":{"this":{"__isSmartRef__":true,"id":3567}},"3634":{},"3635":{"_Position":{"__isSmartRef__":true,"id":3636},"renderContextTable":{"__isSmartRef__":true,"id":3637},"_Extent":{"__isSmartRef__":true,"id":3638},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3639},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3636":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3637":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3638":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3639":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3640":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3641":{"morph":{"__isSmartRef__":true,"id":3566},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3642":{"layouter":{"__isSmartRef__":true,"id":3643},"resizeWidth":true},"3643":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3566},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3644":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3645":{"x":0,"y":460,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3646":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3647}},"3647":{"varMapping":{"__isSmartRef__":true,"id":3648},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3648":{"this":{"__isSmartRef__":true,"id":3566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3649}},"3649":{"$super":{"__isSmartRef__":true,"id":3650}},"3650":{"varMapping":{"__isSmartRef__":true,"id":3651},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3651":{"obj":{"__isSmartRef__":true,"id":3566},"name":"getLayoutableSubmorphs"},"3652":{},"3653":{},"3654":{"submorphs":[{"__isSmartRef__":true,"id":3655}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3724},"derivationIds":[null],"id":"911A2FA9-819E-40F4-A449-8E2BF3D3503F","renderContextTable":{"__isSmartRef__":true,"id":3729},"eventHandler":{"__isSmartRef__":true,"id":3730},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3731},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3733},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3734},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3735},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3655":{"submorphs":[{"__isSmartRef__":true,"id":3656},{"__isSmartRef__":true,"id":3677}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3694},"derivationIds":[null],"id":"F4145830-3733-48C3-8058-4AA7C86CCA2F","renderContextTable":{"__isSmartRef__":true,"id":3699},"eventHandler":{"__isSmartRef__":true,"id":3700},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3701},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":318},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"gridCoords","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3656},"text":{"__isSmartRef__":true,"id":3677},"owner":{"__isSmartRef__":true,"id":3654},"_Position":{"__isSmartRef__":true,"id":3702},"priorExtent":{"__isSmartRef__":true,"id":3703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3704},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3656":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3657},"derivationIds":[null],"id":"0A4CD1FC-F9F9-4D5C-B920-850503BD0816","renderContextTable":{"__isSmartRef__":true,"id":3663},"eventHandler":{"__isSmartRef__":true,"id":3664},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3665},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3655},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3666},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3657":{"_Position":{"__isSmartRef__":true,"id":3658},"renderContextTable":{"__isSmartRef__":true,"id":3659},"_Extent":{"__isSmartRef__":true,"id":3660},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3661},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3662},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3658":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3659":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3660":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3661":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3662":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3663":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3664":{"morph":{"__isSmartRef__":true,"id":3656},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3665":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3666":{"toggle":{"__isSmartRef__":true,"id":3667},"toggleExpansion":{"__isSmartRef__":true,"id":3674}},"3667":{"varMapping":{"__isSmartRef__":true,"id":3668},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3668":{"this":{"__isSmartRef__":true,"id":3656},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3669}},"3669":{"$super":{"__isSmartRef__":true,"id":3670}},"3670":{"varMapping":{"__isSmartRef__":true,"id":3671},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3671":{"obj":{"__isSmartRef__":true,"id":3656},"name":"toggle"},"3672":{},"3673":{},"3674":{"varMapping":{"__isSmartRef__":true,"id":3675},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3675":{"this":{"__isSmartRef__":true,"id":3656}},"3676":{},"3677":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3678},"derivationIds":[null],"id":"E5499FBE-7A22-487B-BAC8-A93499A23673","renderContextTable":{"__isSmartRef__":true,"id":3682},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3685}],"eventHandler":{"__isSmartRef__":true,"id":3687},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3688},"priorExtent":{"__isSmartRef__":true,"id":3689},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3655},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3690},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3678":{"_Position":{"__isSmartRef__":true,"id":3679},"renderContextTable":{"__isSmartRef__":true,"id":3680},"_Extent":{"__isSmartRef__":true,"id":3681},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3679":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3680":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3681":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3682":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3683":{"style":{"__isSmartRef__":true,"id":3684},"chunkOwner":{"__isSmartRef__":true,"id":3677},"storedString":"gridCoords","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3684":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3685":{"style":{"__isSmartRef__":true,"id":3686},"chunkOwner":{"__isSmartRef__":true,"id":3677},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3686":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3687":{"morph":{"__isSmartRef__":true,"id":3677},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3688":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3689":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3690":{"layoutText":{"__isSmartRef__":true,"id":3691}},"3691":{"varMapping":{"__isSmartRef__":true,"id":3692},"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":3693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3692":{"this":{"__isSmartRef__":true,"id":3677}},"3693":{},"3694":{"_Position":{"__isSmartRef__":true,"id":3695},"renderContextTable":{"__isSmartRef__":true,"id":3696},"_Extent":{"__isSmartRef__":true,"id":3697},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3698},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3695":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3696":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3697":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3698":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3699":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3700":{"morph":{"__isSmartRef__":true,"id":3655},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3701":{"resizeWidth":true},"3702":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3703":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3704":{"updateExpanderColor":{"__isSmartRef__":true,"id":3705},"onMouseDown":{"__isSmartRef__":true,"id":3708},"isRoot":{"__isSmartRef__":true,"id":3715},"displayValue":{"__isSmartRef__":true,"id":3718},"update":{"__isSmartRef__":true,"id":3721}},"3705":{"varMapping":{"__isSmartRef__":true,"id":3706},"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":3707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3706":{"this":{"__isSmartRef__":true,"id":3655}},"3707":{},"3708":{"varMapping":{"__isSmartRef__":true,"id":3709},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3709":{"this":{"__isSmartRef__":true,"id":3655},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3710}},"3710":{"$super":{"__isSmartRef__":true,"id":3711}},"3711":{"varMapping":{"__isSmartRef__":true,"id":3712},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3712":{"obj":{"__isSmartRef__":true,"id":3655},"name":"onMouseDown"},"3713":{},"3714":{},"3715":{"varMapping":{"__isSmartRef__":true,"id":3716},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3716":{"this":{"__isSmartRef__":true,"id":3655}},"3717":{},"3718":{"varMapping":{"__isSmartRef__":true,"id":3719},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3719":{"this":{"__isSmartRef__":true,"id":3655}},"3720":{},"3721":{"varMapping":{"__isSmartRef__":true,"id":3722},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3722":{"this":{"__isSmartRef__":true,"id":3655}},"3723":{},"3724":{"_Position":{"__isSmartRef__":true,"id":3725},"renderContextTable":{"__isSmartRef__":true,"id":3726},"_Extent":{"__isSmartRef__":true,"id":3727},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3728},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3725":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3726":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3727":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3728":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3729":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3730":{"morph":{"__isSmartRef__":true,"id":3654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3731":{"layouter":{"__isSmartRef__":true,"id":3732},"resizeWidth":true},"3732":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3654},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3733":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3734":{"x":0,"y":480,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3735":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3736}},"3736":{"varMapping":{"__isSmartRef__":true,"id":3737},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3737":{"this":{"__isSmartRef__":true,"id":3654},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3738}},"3738":{"$super":{"__isSmartRef__":true,"id":3739}},"3739":{"varMapping":{"__isSmartRef__":true,"id":3740},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3740":{"obj":{"__isSmartRef__":true,"id":3654},"name":"getLayoutableSubmorphs"},"3741":{},"3742":{},"3743":{"submorphs":[{"__isSmartRef__":true,"id":3744}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3812},"derivationIds":[null],"id":"AA2B4CD3-B1EA-4F78-AA24-47014CE55111","renderContextTable":{"__isSmartRef__":true,"id":3817},"eventHandler":{"__isSmartRef__":true,"id":3818},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3819},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3821},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3822},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3823},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3744":{"submorphs":[{"__isSmartRef__":true,"id":3745},{"__isSmartRef__":true,"id":3765}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3782},"derivationIds":[null],"id":"304C8AA1-C714-41C1-BBD3-4F2A7D421875","renderContextTable":{"__isSmartRef__":true,"id":3787},"eventHandler":{"__isSmartRef__":true,"id":3788},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3789},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"halos","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3745},"text":{"__isSmartRef__":true,"id":3765},"owner":{"__isSmartRef__":true,"id":3743},"_Position":{"__isSmartRef__":true,"id":3790},"priorExtent":{"__isSmartRef__":true,"id":3791},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3792},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3745":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3746},"derivationIds":[null],"id":"54158F8E-B43E-4156-BEDE-33C7978A457A","renderContextTable":{"__isSmartRef__":true,"id":3751},"eventHandler":{"__isSmartRef__":true,"id":3752},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3753},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3744},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3754},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3746":{"_Position":{"__isSmartRef__":true,"id":3747},"renderContextTable":{"__isSmartRef__":true,"id":3748},"_Extent":{"__isSmartRef__":true,"id":3749},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3750},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3747":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3748":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3749":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3750":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3751":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3752":{"morph":{"__isSmartRef__":true,"id":3745},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3753":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3754":{"toggle":{"__isSmartRef__":true,"id":3755},"toggleExpansion":{"__isSmartRef__":true,"id":3762}},"3755":{"varMapping":{"__isSmartRef__":true,"id":3756},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3756":{"this":{"__isSmartRef__":true,"id":3745},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3757}},"3757":{"$super":{"__isSmartRef__":true,"id":3758}},"3758":{"varMapping":{"__isSmartRef__":true,"id":3759},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3759":{"obj":{"__isSmartRef__":true,"id":3745},"name":"toggle"},"3760":{},"3761":{},"3762":{"varMapping":{"__isSmartRef__":true,"id":3763},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3763":{"this":{"__isSmartRef__":true,"id":3745}},"3764":{},"3765":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3766},"derivationIds":[null],"id":"811B0078-BB25-47A6-8674-CCE855D55499","renderContextTable":{"__isSmartRef__":true,"id":3770},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3771},{"__isSmartRef__":true,"id":3773}],"eventHandler":{"__isSmartRef__":true,"id":3775},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3776},"priorExtent":{"__isSmartRef__":true,"id":3777},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3744},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3778},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3766":{"_Position":{"__isSmartRef__":true,"id":3767},"renderContextTable":{"__isSmartRef__":true,"id":3768},"_Extent":{"__isSmartRef__":true,"id":3769},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3767":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3768":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3769":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3770":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3771":{"style":{"__isSmartRef__":true,"id":3772},"chunkOwner":{"__isSmartRef__":true,"id":3765},"storedString":"halos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3772":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3773":{"style":{"__isSmartRef__":true,"id":3774},"chunkOwner":{"__isSmartRef__":true,"id":3765},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3774":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3775":{"morph":{"__isSmartRef__":true,"id":3765},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3776":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3777":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3778":{"layoutText":{"__isSmartRef__":true,"id":3779}},"3779":{"varMapping":{"__isSmartRef__":true,"id":3780},"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":3781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3780":{"this":{"__isSmartRef__":true,"id":3765}},"3781":{},"3782":{"_Position":{"__isSmartRef__":true,"id":3783},"renderContextTable":{"__isSmartRef__":true,"id":3784},"_Extent":{"__isSmartRef__":true,"id":3785},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3786},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3783":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3784":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3785":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3786":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3787":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3788":{"morph":{"__isSmartRef__":true,"id":3744},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3789":{"resizeWidth":true},"3790":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3791":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3792":{"updateExpanderColor":{"__isSmartRef__":true,"id":3793},"onMouseDown":{"__isSmartRef__":true,"id":3796},"isRoot":{"__isSmartRef__":true,"id":3803},"displayValue":{"__isSmartRef__":true,"id":3806},"update":{"__isSmartRef__":true,"id":3809}},"3793":{"varMapping":{"__isSmartRef__":true,"id":3794},"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":3795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3794":{"this":{"__isSmartRef__":true,"id":3744}},"3795":{},"3796":{"varMapping":{"__isSmartRef__":true,"id":3797},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3797":{"this":{"__isSmartRef__":true,"id":3744},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3798}},"3798":{"$super":{"__isSmartRef__":true,"id":3799}},"3799":{"varMapping":{"__isSmartRef__":true,"id":3800},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3800":{"obj":{"__isSmartRef__":true,"id":3744},"name":"onMouseDown"},"3801":{},"3802":{},"3803":{"varMapping":{"__isSmartRef__":true,"id":3804},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3804":{"this":{"__isSmartRef__":true,"id":3744}},"3805":{},"3806":{"varMapping":{"__isSmartRef__":true,"id":3807},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3807":{"this":{"__isSmartRef__":true,"id":3744}},"3808":{},"3809":{"varMapping":{"__isSmartRef__":true,"id":3810},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3810":{"this":{"__isSmartRef__":true,"id":3744}},"3811":{},"3812":{"_Position":{"__isSmartRef__":true,"id":3813},"renderContextTable":{"__isSmartRef__":true,"id":3814},"_Extent":{"__isSmartRef__":true,"id":3815},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3816},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3813":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3814":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3815":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3816":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3817":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3818":{"morph":{"__isSmartRef__":true,"id":3743},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3819":{"layouter":{"__isSmartRef__":true,"id":3820},"resizeWidth":true},"3820":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3743},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3821":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3822":{"x":0,"y":500,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3823":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3824}},"3824":{"varMapping":{"__isSmartRef__":true,"id":3825},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3825":{"this":{"__isSmartRef__":true,"id":3743},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3826}},"3826":{"$super":{"__isSmartRef__":true,"id":3827}},"3827":{"varMapping":{"__isSmartRef__":true,"id":3828},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3828":{"obj":{"__isSmartRef__":true,"id":3743},"name":"getLayoutableSubmorphs"},"3829":{},"3830":{},"3831":{"submorphs":[{"__isSmartRef__":true,"id":3832}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3901},"derivationIds":[null],"id":"5A21A962-BFBA-4BCB-98AC-7EE130A6B08B","renderContextTable":{"__isSmartRef__":true,"id":3906},"eventHandler":{"__isSmartRef__":true,"id":3907},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3908},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3910},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":3911},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3912},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3832":{"submorphs":[{"__isSmartRef__":true,"id":3833},{"__isSmartRef__":true,"id":3854}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3871},"derivationIds":[null],"id":"973BE5B2-6B13-447E-809D-EA51BFEDF45B","renderContextTable":{"__isSmartRef__":true,"id":3876},"eventHandler":{"__isSmartRef__":true,"id":3877},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3878},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"halosEnabled","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3833},"text":{"__isSmartRef__":true,"id":3854},"owner":{"__isSmartRef__":true,"id":3831},"_Position":{"__isSmartRef__":true,"id":3879},"priorExtent":{"__isSmartRef__":true,"id":3880},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3881},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3833":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3834},"derivationIds":[null],"id":"FDB90DFE-9CF3-4599-9728-809975065EBF","renderContextTable":{"__isSmartRef__":true,"id":3840},"eventHandler":{"__isSmartRef__":true,"id":3841},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3842},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3832},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3843},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3834":{"_Position":{"__isSmartRef__":true,"id":3835},"renderContextTable":{"__isSmartRef__":true,"id":3836},"_Extent":{"__isSmartRef__":true,"id":3837},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3838},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3839},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3835":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3836":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3837":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3838":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3839":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3840":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3841":{"morph":{"__isSmartRef__":true,"id":3833},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3842":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3843":{"toggle":{"__isSmartRef__":true,"id":3844},"toggleExpansion":{"__isSmartRef__":true,"id":3851}},"3844":{"varMapping":{"__isSmartRef__":true,"id":3845},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3845":{"this":{"__isSmartRef__":true,"id":3833},"__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":3833},"name":"toggle"},"3849":{},"3850":{},"3851":{"varMapping":{"__isSmartRef__":true,"id":3852},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3852":{"this":{"__isSmartRef__":true,"id":3833}},"3853":{},"3854":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3855},"derivationIds":[null],"id":"9F9A8491-677E-45BA-9266-2BA7712016DA","renderContextTable":{"__isSmartRef__":true,"id":3859},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3860},{"__isSmartRef__":true,"id":3862}],"eventHandler":{"__isSmartRef__":true,"id":3864},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3865},"priorExtent":{"__isSmartRef__":true,"id":3866},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3832},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3867},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3855":{"_Position":{"__isSmartRef__":true,"id":3856},"renderContextTable":{"__isSmartRef__":true,"id":3857},"_Extent":{"__isSmartRef__":true,"id":3858},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3856":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3857":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3858":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3859":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3860":{"style":{"__isSmartRef__":true,"id":3861},"chunkOwner":{"__isSmartRef__":true,"id":3854},"storedString":"halosEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3861":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3862":{"style":{"__isSmartRef__":true,"id":3863},"chunkOwner":{"__isSmartRef__":true,"id":3854},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3863":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3864":{"morph":{"__isSmartRef__":true,"id":3854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3865":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3866":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3867":{"layoutText":{"__isSmartRef__":true,"id":3868}},"3868":{"varMapping":{"__isSmartRef__":true,"id":3869},"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":3870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3869":{"this":{"__isSmartRef__":true,"id":3854}},"3870":{},"3871":{"_Position":{"__isSmartRef__":true,"id":3872},"renderContextTable":{"__isSmartRef__":true,"id":3873},"_Extent":{"__isSmartRef__":true,"id":3874},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3875},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3872":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3873":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3874":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3875":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3876":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3877":{"morph":{"__isSmartRef__":true,"id":3832},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3878":{"resizeWidth":true},"3879":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3880":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3881":{"updateExpanderColor":{"__isSmartRef__":true,"id":3882},"onMouseDown":{"__isSmartRef__":true,"id":3885},"isRoot":{"__isSmartRef__":true,"id":3892},"displayValue":{"__isSmartRef__":true,"id":3895},"update":{"__isSmartRef__":true,"id":3898}},"3882":{"varMapping":{"__isSmartRef__":true,"id":3883},"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":3884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3883":{"this":{"__isSmartRef__":true,"id":3832}},"3884":{},"3885":{"varMapping":{"__isSmartRef__":true,"id":3886},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3886":{"this":{"__isSmartRef__":true,"id":3832},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3887}},"3887":{"$super":{"__isSmartRef__":true,"id":3888}},"3888":{"varMapping":{"__isSmartRef__":true,"id":3889},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3889":{"obj":{"__isSmartRef__":true,"id":3832},"name":"onMouseDown"},"3890":{},"3891":{},"3892":{"varMapping":{"__isSmartRef__":true,"id":3893},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3893":{"this":{"__isSmartRef__":true,"id":3832}},"3894":{},"3895":{"varMapping":{"__isSmartRef__":true,"id":3896},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3896":{"this":{"__isSmartRef__":true,"id":3832}},"3897":{},"3898":{"varMapping":{"__isSmartRef__":true,"id":3899},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3899":{"this":{"__isSmartRef__":true,"id":3832}},"3900":{},"3901":{"_Position":{"__isSmartRef__":true,"id":3902},"renderContextTable":{"__isSmartRef__":true,"id":3903},"_Extent":{"__isSmartRef__":true,"id":3904},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3905},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3902":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3903":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3904":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3905":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3906":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3907":{"morph":{"__isSmartRef__":true,"id":3831},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3908":{"layouter":{"__isSmartRef__":true,"id":3909},"resizeWidth":true},"3909":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3831},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3910":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3911":{"x":0,"y":520,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3912":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":3913}},"3913":{"varMapping":{"__isSmartRef__":true,"id":3914},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":3919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3914":{"this":{"__isSmartRef__":true,"id":3831},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3915}},"3915":{"$super":{"__isSmartRef__":true,"id":3916}},"3916":{"varMapping":{"__isSmartRef__":true,"id":3917},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3917":{"obj":{"__isSmartRef__":true,"id":3831},"name":"getLayoutableSubmorphs"},"3918":{},"3919":{},"3920":{"submorphs":[{"__isSmartRef__":true,"id":3921}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3990},"derivationIds":[null],"id":"4064C117-0CDF-45D8-A1B7-C0A2524C9843","renderContextTable":{"__isSmartRef__":true,"id":3995},"eventHandler":{"__isSmartRef__":true,"id":3996},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3997},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":3999},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4000},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4001},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3921":{"submorphs":[{"__isSmartRef__":true,"id":3922},{"__isSmartRef__":true,"id":3943}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3960},"derivationIds":[null],"id":"2C163B03-971B-42FC-AF8B-CDF0706077DF","renderContextTable":{"__isSmartRef__":true,"id":3965},"eventHandler":{"__isSmartRef__":true,"id":3966},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":3967},"grabbingEnabled":false,"draggingEnabled":false,"data":"3B34C230-D44E-438D-BF06-B005E3D953B7","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":1495},"label":"id","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":3922},"text":{"__isSmartRef__":true,"id":3943},"owner":{"__isSmartRef__":true,"id":3920},"_Position":{"__isSmartRef__":true,"id":3968},"priorExtent":{"__isSmartRef__":true,"id":3969},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3970},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"3922":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3923},"derivationIds":[null],"id":"65032693-10F8-4153-9F5E-03341660EAB6","renderContextTable":{"__isSmartRef__":true,"id":3929},"eventHandler":{"__isSmartRef__":true,"id":3930},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3931},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":3921},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3932},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"3923":{"_Position":{"__isSmartRef__":true,"id":3924},"renderContextTable":{"__isSmartRef__":true,"id":3925},"_Extent":{"__isSmartRef__":true,"id":3926},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3927},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":3928},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3924":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3925":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3926":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3927":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3928":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"3929":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3930":{"morph":{"__isSmartRef__":true,"id":3922},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3931":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3932":{"toggle":{"__isSmartRef__":true,"id":3933},"toggleExpansion":{"__isSmartRef__":true,"id":3940}},"3933":{"varMapping":{"__isSmartRef__":true,"id":3934},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":3939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3934":{"this":{"__isSmartRef__":true,"id":3922},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3935}},"3935":{"$super":{"__isSmartRef__":true,"id":3936}},"3936":{"varMapping":{"__isSmartRef__":true,"id":3937},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3937":{"obj":{"__isSmartRef__":true,"id":3922},"name":"toggle"},"3938":{},"3939":{},"3940":{"varMapping":{"__isSmartRef__":true,"id":3941},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":3942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3941":{"this":{"__isSmartRef__":true,"id":3922}},"3942":{},"3943":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3944},"derivationIds":[null],"id":"7ABDE629-CB26-4513-BD13-214C2295BA34","renderContextTable":{"__isSmartRef__":true,"id":3948},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3949},{"__isSmartRef__":true,"id":3951}],"eventHandler":{"__isSmartRef__":true,"id":3953},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":3954},"priorExtent":{"__isSmartRef__":true,"id":3955},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3921},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3956},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3944":{"_Position":{"__isSmartRef__":true,"id":3945},"renderContextTable":{"__isSmartRef__":true,"id":3946},"_Extent":{"__isSmartRef__":true,"id":3947},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3945":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3946":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3947":{"x":308,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3948":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"3949":{"style":{"__isSmartRef__":true,"id":3950},"chunkOwner":{"__isSmartRef__":true,"id":3943},"storedString":"id","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3950":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3951":{"style":{"__isSmartRef__":true,"id":3952},"chunkOwner":{"__isSmartRef__":true,"id":3943},"storedString":": 3B34C230-D44E-438D-BF06-B005E3D953B7","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3952":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3953":{"morph":{"__isSmartRef__":true,"id":3943},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3954":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3955":{"x":300,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3956":{"layoutText":{"__isSmartRef__":true,"id":3957}},"3957":{"varMapping":{"__isSmartRef__":true,"id":3958},"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":3959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3958":{"this":{"__isSmartRef__":true,"id":3943}},"3959":{},"3960":{"_Position":{"__isSmartRef__":true,"id":3961},"renderContextTable":{"__isSmartRef__":true,"id":3962},"_Extent":{"__isSmartRef__":true,"id":3963},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3964},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3961":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3962":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3963":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3964":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3965":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3966":{"morph":{"__isSmartRef__":true,"id":3921},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3967":{"resizeWidth":true},"3968":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3969":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3970":{"updateExpanderColor":{"__isSmartRef__":true,"id":3971},"onMouseDown":{"__isSmartRef__":true,"id":3974},"isRoot":{"__isSmartRef__":true,"id":3981},"displayValue":{"__isSmartRef__":true,"id":3984},"update":{"__isSmartRef__":true,"id":3987}},"3971":{"varMapping":{"__isSmartRef__":true,"id":3972},"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":3973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3972":{"this":{"__isSmartRef__":true,"id":3921}},"3973":{},"3974":{"varMapping":{"__isSmartRef__":true,"id":3975},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":3980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3975":{"this":{"__isSmartRef__":true,"id":3921},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3976}},"3976":{"$super":{"__isSmartRef__":true,"id":3977}},"3977":{"varMapping":{"__isSmartRef__":true,"id":3978},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3978":{"obj":{"__isSmartRef__":true,"id":3921},"name":"onMouseDown"},"3979":{},"3980":{},"3981":{"varMapping":{"__isSmartRef__":true,"id":3982},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":3983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3982":{"this":{"__isSmartRef__":true,"id":3921}},"3983":{},"3984":{"varMapping":{"__isSmartRef__":true,"id":3985},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":3986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3985":{"this":{"__isSmartRef__":true,"id":3921}},"3986":{},"3987":{"varMapping":{"__isSmartRef__":true,"id":3988},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"3988":{"this":{"__isSmartRef__":true,"id":3921}},"3989":{},"3990":{"_Position":{"__isSmartRef__":true,"id":3991},"renderContextTable":{"__isSmartRef__":true,"id":3992},"_Extent":{"__isSmartRef__":true,"id":3993},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3994},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"3991":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3992":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"3993":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3994":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"3995":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3996":{"morph":{"__isSmartRef__":true,"id":3920},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3997":{"layouter":{"__isSmartRef__":true,"id":3998},"resizeWidth":true},"3998":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":3920},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"3999":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4000":{"x":0,"y":540,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4001":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4002}},"4002":{"varMapping":{"__isSmartRef__":true,"id":4003},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4003":{"this":{"__isSmartRef__":true,"id":3920},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4004}},"4004":{"$super":{"__isSmartRef__":true,"id":4005}},"4005":{"varMapping":{"__isSmartRef__":true,"id":4006},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4006":{"obj":{"__isSmartRef__":true,"id":3920},"name":"getLayoutableSubmorphs"},"4007":{},"4008":{},"4009":{"submorphs":[{"__isSmartRef__":true,"id":4010}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4079},"derivationIds":[null],"id":"701FDE90-0A04-4A2B-AE63-BD8F25F93027","renderContextTable":{"__isSmartRef__":true,"id":4084},"eventHandler":{"__isSmartRef__":true,"id":4085},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4086},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4088},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4089},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4090},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4010":{"submorphs":[{"__isSmartRef__":true,"id":4011},{"__isSmartRef__":true,"id":4032}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4049},"derivationIds":[null],"id":"135D3C9B-D05E-4789-8524-16237A785E21","renderContextTable":{"__isSmartRef__":true,"id":4054},"eventHandler":{"__isSmartRef__":true,"id":4055},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4056},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"isBeingDragged","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4011},"text":{"__isSmartRef__":true,"id":4032},"owner":{"__isSmartRef__":true,"id":4009},"_Position":{"__isSmartRef__":true,"id":4057},"priorExtent":{"__isSmartRef__":true,"id":4058},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4059},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4011":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4012},"derivationIds":[null],"id":"D314B0DF-2E9A-4938-96CC-B39218544D56","renderContextTable":{"__isSmartRef__":true,"id":4018},"eventHandler":{"__isSmartRef__":true,"id":4019},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4020},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4010},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4021},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4012":{"_Position":{"__isSmartRef__":true,"id":4013},"renderContextTable":{"__isSmartRef__":true,"id":4014},"_Extent":{"__isSmartRef__":true,"id":4015},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4016},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4017},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4013":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4014":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4015":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4016":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4017":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4018":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4019":{"morph":{"__isSmartRef__":true,"id":4011},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4020":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4021":{"toggle":{"__isSmartRef__":true,"id":4022},"toggleExpansion":{"__isSmartRef__":true,"id":4029}},"4022":{"varMapping":{"__isSmartRef__":true,"id":4023},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4023":{"this":{"__isSmartRef__":true,"id":4011},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4024}},"4024":{"$super":{"__isSmartRef__":true,"id":4025}},"4025":{"varMapping":{"__isSmartRef__":true,"id":4026},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4026":{"obj":{"__isSmartRef__":true,"id":4011},"name":"toggle"},"4027":{},"4028":{},"4029":{"varMapping":{"__isSmartRef__":true,"id":4030},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4030":{"this":{"__isSmartRef__":true,"id":4011}},"4031":{},"4032":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4033},"derivationIds":[null],"id":"6CBA049F-2765-4B4B-A3F7-183A3B516BD3","renderContextTable":{"__isSmartRef__":true,"id":4037},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4038},{"__isSmartRef__":true,"id":4040}],"eventHandler":{"__isSmartRef__":true,"id":4042},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4043},"priorExtent":{"__isSmartRef__":true,"id":4044},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4010},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4045},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4033":{"_Position":{"__isSmartRef__":true,"id":4034},"renderContextTable":{"__isSmartRef__":true,"id":4035},"_Extent":{"__isSmartRef__":true,"id":4036},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4034":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4035":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4036":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4038":{"style":{"__isSmartRef__":true,"id":4039},"chunkOwner":{"__isSmartRef__":true,"id":4032},"storedString":"isBeingDragged","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4039":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4040":{"style":{"__isSmartRef__":true,"id":4041},"chunkOwner":{"__isSmartRef__":true,"id":4032},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4041":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4042":{"morph":{"__isSmartRef__":true,"id":4032},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4043":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4044":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4045":{"layoutText":{"__isSmartRef__":true,"id":4046}},"4046":{"varMapping":{"__isSmartRef__":true,"id":4047},"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":4048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4047":{"this":{"__isSmartRef__":true,"id":4032}},"4048":{},"4049":{"_Position":{"__isSmartRef__":true,"id":4050},"renderContextTable":{"__isSmartRef__":true,"id":4051},"_Extent":{"__isSmartRef__":true,"id":4052},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4053},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4050":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4051":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4052":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4053":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4054":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4055":{"morph":{"__isSmartRef__":true,"id":4010},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4056":{"resizeWidth":true},"4057":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4058":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4059":{"updateExpanderColor":{"__isSmartRef__":true,"id":4060},"onMouseDown":{"__isSmartRef__":true,"id":4063},"isRoot":{"__isSmartRef__":true,"id":4070},"displayValue":{"__isSmartRef__":true,"id":4073},"update":{"__isSmartRef__":true,"id":4076}},"4060":{"varMapping":{"__isSmartRef__":true,"id":4061},"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":4062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4061":{"this":{"__isSmartRef__":true,"id":4010}},"4062":{},"4063":{"varMapping":{"__isSmartRef__":true,"id":4064},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4064":{"this":{"__isSmartRef__":true,"id":4010},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4065}},"4065":{"$super":{"__isSmartRef__":true,"id":4066}},"4066":{"varMapping":{"__isSmartRef__":true,"id":4067},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4067":{"obj":{"__isSmartRef__":true,"id":4010},"name":"onMouseDown"},"4068":{},"4069":{},"4070":{"varMapping":{"__isSmartRef__":true,"id":4071},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4071":{"this":{"__isSmartRef__":true,"id":4010}},"4072":{},"4073":{"varMapping":{"__isSmartRef__":true,"id":4074},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4074":{"this":{"__isSmartRef__":true,"id":4010}},"4075":{},"4076":{"varMapping":{"__isSmartRef__":true,"id":4077},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4077":{"this":{"__isSmartRef__":true,"id":4010}},"4078":{},"4079":{"_Position":{"__isSmartRef__":true,"id":4080},"renderContextTable":{"__isSmartRef__":true,"id":4081},"_Extent":{"__isSmartRef__":true,"id":4082},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4083},"__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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4083":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4084":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4085":{"morph":{"__isSmartRef__":true,"id":4009},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4086":{"layouter":{"__isSmartRef__":true,"id":4087},"resizeWidth":true},"4087":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4009},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4088":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4089":{"x":0,"y":560,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4090":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4091}},"4091":{"varMapping":{"__isSmartRef__":true,"id":4092},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4092":{"this":{"__isSmartRef__":true,"id":4009},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4093}},"4093":{"$super":{"__isSmartRef__":true,"id":4094}},"4094":{"varMapping":{"__isSmartRef__":true,"id":4095},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4095":{"obj":{"__isSmartRef__":true,"id":4009},"name":"getLayoutableSubmorphs"},"4096":{},"4097":{},"4098":{"submorphs":[{"__isSmartRef__":true,"id":4099}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4168},"derivationIds":[null],"id":"EC2178ED-5EF0-42B0-BC15-1735FD8992E5","renderContextTable":{"__isSmartRef__":true,"id":4173},"eventHandler":{"__isSmartRef__":true,"id":4174},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4175},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4177},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4178},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4179},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4099":{"submorphs":[{"__isSmartRef__":true,"id":4100},{"__isSmartRef__":true,"id":4121}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4138},"derivationIds":[null],"id":"DEA958E4-21D0-42E0-96D5-8397BC70271E","renderContextTable":{"__isSmartRef__":true,"id":4143},"eventHandler":{"__isSmartRef__":true,"id":4144},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4145},"grabbingEnabled":false,"draggingEnabled":false,"data":11,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"lastFindLoc","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4100},"text":{"__isSmartRef__":true,"id":4121},"owner":{"__isSmartRef__":true,"id":4098},"_Position":{"__isSmartRef__":true,"id":4146},"priorExtent":{"__isSmartRef__":true,"id":4147},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4148},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4100":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4101},"derivationIds":[null],"id":"330D237D-813B-4768-AA28-C662DA48359D","renderContextTable":{"__isSmartRef__":true,"id":4107},"eventHandler":{"__isSmartRef__":true,"id":4108},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4109},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4099},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4110},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4101":{"_Position":{"__isSmartRef__":true,"id":4102},"renderContextTable":{"__isSmartRef__":true,"id":4103},"_Extent":{"__isSmartRef__":true,"id":4104},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4105},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4106},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4102":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4103":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4104":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4105":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4106":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4107":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4108":{"morph":{"__isSmartRef__":true,"id":4100},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4109":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4110":{"toggle":{"__isSmartRef__":true,"id":4111},"toggleExpansion":{"__isSmartRef__":true,"id":4118}},"4111":{"varMapping":{"__isSmartRef__":true,"id":4112},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4112":{"this":{"__isSmartRef__":true,"id":4100},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4113}},"4113":{"$super":{"__isSmartRef__":true,"id":4114}},"4114":{"varMapping":{"__isSmartRef__":true,"id":4115},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4115":{"obj":{"__isSmartRef__":true,"id":4100},"name":"toggle"},"4116":{},"4117":{},"4118":{"varMapping":{"__isSmartRef__":true,"id":4119},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4119":{"this":{"__isSmartRef__":true,"id":4100}},"4120":{},"4121":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4122},"derivationIds":[null],"id":"94CDCFD3-C676-4031-8330-7044881D500B","renderContextTable":{"__isSmartRef__":true,"id":4126},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4127},{"__isSmartRef__":true,"id":4129}],"eventHandler":{"__isSmartRef__":true,"id":4131},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4132},"priorExtent":{"__isSmartRef__":true,"id":4133},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4099},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4134},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4122":{"_Position":{"__isSmartRef__":true,"id":4123},"renderContextTable":{"__isSmartRef__":true,"id":4124},"_Extent":{"__isSmartRef__":true,"id":4125},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4123":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4125":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4126":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4127":{"style":{"__isSmartRef__":true,"id":4128},"chunkOwner":{"__isSmartRef__":true,"id":4121},"storedString":"lastFindLoc","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4128":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4129":{"style":{"__isSmartRef__":true,"id":4130},"chunkOwner":{"__isSmartRef__":true,"id":4121},"storedString":": 11","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4130":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4131":{"morph":{"__isSmartRef__":true,"id":4121},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4132":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4133":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4134":{"layoutText":{"__isSmartRef__":true,"id":4135}},"4135":{"varMapping":{"__isSmartRef__":true,"id":4136},"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":4137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4136":{"this":{"__isSmartRef__":true,"id":4121}},"4137":{},"4138":{"_Position":{"__isSmartRef__":true,"id":4139},"renderContextTable":{"__isSmartRef__":true,"id":4140},"_Extent":{"__isSmartRef__":true,"id":4141},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4142},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4139":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4140":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4141":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4142":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4143":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4144":{"morph":{"__isSmartRef__":true,"id":4099},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4145":{"resizeWidth":true},"4146":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4147":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4148":{"updateExpanderColor":{"__isSmartRef__":true,"id":4149},"onMouseDown":{"__isSmartRef__":true,"id":4152},"isRoot":{"__isSmartRef__":true,"id":4159},"displayValue":{"__isSmartRef__":true,"id":4162},"update":{"__isSmartRef__":true,"id":4165}},"4149":{"varMapping":{"__isSmartRef__":true,"id":4150},"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":4151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4150":{"this":{"__isSmartRef__":true,"id":4099}},"4151":{},"4152":{"varMapping":{"__isSmartRef__":true,"id":4153},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4153":{"this":{"__isSmartRef__":true,"id":4099},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4154}},"4154":{"$super":{"__isSmartRef__":true,"id":4155}},"4155":{"varMapping":{"__isSmartRef__":true,"id":4156},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4156":{"obj":{"__isSmartRef__":true,"id":4099},"name":"onMouseDown"},"4157":{},"4158":{},"4159":{"varMapping":{"__isSmartRef__":true,"id":4160},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4160":{"this":{"__isSmartRef__":true,"id":4099}},"4161":{},"4162":{"varMapping":{"__isSmartRef__":true,"id":4163},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4163":{"this":{"__isSmartRef__":true,"id":4099}},"4164":{},"4165":{"varMapping":{"__isSmartRef__":true,"id":4166},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4166":{"this":{"__isSmartRef__":true,"id":4099}},"4167":{},"4168":{"_Position":{"__isSmartRef__":true,"id":4169},"renderContextTable":{"__isSmartRef__":true,"id":4170},"_Extent":{"__isSmartRef__":true,"id":4171},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4172},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4169":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4170":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4171":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4172":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4173":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4174":{"morph":{"__isSmartRef__":true,"id":4098},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4175":{"layouter":{"__isSmartRef__":true,"id":4176},"resizeWidth":true},"4176":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4098},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4177":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4178":{"x":0,"y":580,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4179":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4180}},"4180":{"varMapping":{"__isSmartRef__":true,"id":4181},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4181":{"this":{"__isSmartRef__":true,"id":4098},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4182}},"4182":{"$super":{"__isSmartRef__":true,"id":4183}},"4183":{"varMapping":{"__isSmartRef__":true,"id":4184},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4184":{"obj":{"__isSmartRef__":true,"id":4098},"name":"getLayoutableSubmorphs"},"4185":{},"4186":{},"4187":{"submorphs":[{"__isSmartRef__":true,"id":4188}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4257},"derivationIds":[null],"id":"86BD2258-F0ED-4C1C-87D5-F45CD3D0C709","renderContextTable":{"__isSmartRef__":true,"id":4262},"eventHandler":{"__isSmartRef__":true,"id":4263},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4264},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4266},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4267},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4268},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4188":{"submorphs":[{"__isSmartRef__":true,"id":4189},{"__isSmartRef__":true,"id":4210}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4227},"derivationIds":[null],"id":"44B5018A-A77C-4E60-90BA-70FC49D84CBD","renderContextTable":{"__isSmartRef__":true,"id":4232},"eventHandler":{"__isSmartRef__":true,"id":4233},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4234},"grabbingEnabled":false,"draggingEnabled":false,"data":"[2;1]","propertyList":["0","1","2","3","4"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"name","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4189},"text":{"__isSmartRef__":true,"id":4210},"owner":{"__isSmartRef__":true,"id":4187},"_Position":{"__isSmartRef__":true,"id":4235},"priorExtent":{"__isSmartRef__":true,"id":4236},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4237},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4189":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4190},"derivationIds":[null],"id":"91A70F68-08B0-45C9-A3BD-49A04A2DF8D1","renderContextTable":{"__isSmartRef__":true,"id":4196},"eventHandler":{"__isSmartRef__":true,"id":4197},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4198},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4188},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4199},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4190":{"_Position":{"__isSmartRef__":true,"id":4191},"renderContextTable":{"__isSmartRef__":true,"id":4192},"_Extent":{"__isSmartRef__":true,"id":4193},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4194},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4195},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4191":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4192":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4193":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4194":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4195":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4196":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4197":{"morph":{"__isSmartRef__":true,"id":4189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4198":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4199":{"toggle":{"__isSmartRef__":true,"id":4200},"toggleExpansion":{"__isSmartRef__":true,"id":4207}},"4200":{"varMapping":{"__isSmartRef__":true,"id":4201},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4201":{"this":{"__isSmartRef__":true,"id":4189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4202}},"4202":{"$super":{"__isSmartRef__":true,"id":4203}},"4203":{"varMapping":{"__isSmartRef__":true,"id":4204},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4204":{"obj":{"__isSmartRef__":true,"id":4189},"name":"toggle"},"4205":{},"4206":{},"4207":{"varMapping":{"__isSmartRef__":true,"id":4208},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4208":{"this":{"__isSmartRef__":true,"id":4189}},"4209":{},"4210":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4211},"derivationIds":[null],"id":"FADB2D5D-3E0D-4259-8644-EACED063ABB2","renderContextTable":{"__isSmartRef__":true,"id":4215},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4216},{"__isSmartRef__":true,"id":4218}],"eventHandler":{"__isSmartRef__":true,"id":4220},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4221},"priorExtent":{"__isSmartRef__":true,"id":4222},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4188},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4223},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4211":{"_Position":{"__isSmartRef__":true,"id":4212},"renderContextTable":{"__isSmartRef__":true,"id":4213},"_Extent":{"__isSmartRef__":true,"id":4214},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4212":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4213":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4214":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4215":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4216":{"style":{"__isSmartRef__":true,"id":4217},"chunkOwner":{"__isSmartRef__":true,"id":4210},"storedString":"name","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4217":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4218":{"style":{"__isSmartRef__":true,"id":4219},"chunkOwner":{"__isSmartRef__":true,"id":4210},"storedString":": [2;1]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4219":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4220":{"morph":{"__isSmartRef__":true,"id":4210},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4221":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4222":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4223":{"layoutText":{"__isSmartRef__":true,"id":4224}},"4224":{"varMapping":{"__isSmartRef__":true,"id":4225},"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":4226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4225":{"this":{"__isSmartRef__":true,"id":4210}},"4226":{},"4227":{"_Position":{"__isSmartRef__":true,"id":4228},"renderContextTable":{"__isSmartRef__":true,"id":4229},"_Extent":{"__isSmartRef__":true,"id":4230},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4231},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4228":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4229":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4230":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4231":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4232":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4233":{"morph":{"__isSmartRef__":true,"id":4188},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4234":{"resizeWidth":true},"4235":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4236":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4237":{"updateExpanderColor":{"__isSmartRef__":true,"id":4238},"onMouseDown":{"__isSmartRef__":true,"id":4241},"isRoot":{"__isSmartRef__":true,"id":4248},"displayValue":{"__isSmartRef__":true,"id":4251},"update":{"__isSmartRef__":true,"id":4254}},"4238":{"varMapping":{"__isSmartRef__":true,"id":4239},"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":4240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4239":{"this":{"__isSmartRef__":true,"id":4188}},"4240":{},"4241":{"varMapping":{"__isSmartRef__":true,"id":4242},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4242":{"this":{"__isSmartRef__":true,"id":4188},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4243}},"4243":{"$super":{"__isSmartRef__":true,"id":4244}},"4244":{"varMapping":{"__isSmartRef__":true,"id":4245},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4245":{"obj":{"__isSmartRef__":true,"id":4188},"name":"onMouseDown"},"4246":{},"4247":{},"4248":{"varMapping":{"__isSmartRef__":true,"id":4249},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4249":{"this":{"__isSmartRef__":true,"id":4188}},"4250":{},"4251":{"varMapping":{"__isSmartRef__":true,"id":4252},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4252":{"this":{"__isSmartRef__":true,"id":4188}},"4253":{},"4254":{"varMapping":{"__isSmartRef__":true,"id":4255},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4255":{"this":{"__isSmartRef__":true,"id":4188}},"4256":{},"4257":{"_Position":{"__isSmartRef__":true,"id":4258},"renderContextTable":{"__isSmartRef__":true,"id":4259},"_Extent":{"__isSmartRef__":true,"id":4260},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4261},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4258":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4259":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4260":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4261":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4262":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4263":{"morph":{"__isSmartRef__":true,"id":4187},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4264":{"layouter":{"__isSmartRef__":true,"id":4265},"resizeWidth":true},"4265":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4187},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4266":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4267":{"x":0,"y":600,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4268":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4269}},"4269":{"varMapping":{"__isSmartRef__":true,"id":4270},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4270":{"this":{"__isSmartRef__":true,"id":4187},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4271}},"4271":{"$super":{"__isSmartRef__":true,"id":4272}},"4272":{"varMapping":{"__isSmartRef__":true,"id":4273},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4273":{"obj":{"__isSmartRef__":true,"id":4187},"name":"getLayoutableSubmorphs"},"4274":{},"4275":{},"4276":{"submorphs":[{"__isSmartRef__":true,"id":4277}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4345},"derivationIds":[null],"id":"3D953503-AA8B-44DC-A4B6-D229DF77B06C","renderContextTable":{"__isSmartRef__":true,"id":4350},"eventHandler":{"__isSmartRef__":true,"id":4351},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4352},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4354},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4355},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4356},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4277":{"submorphs":[{"__isSmartRef__":true,"id":4278},{"__isSmartRef__":true,"id":4298}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4315},"derivationIds":[null],"id":"8309C677-54A8-4C97-A3BF-31D7775724DC","renderContextTable":{"__isSmartRef__":true,"id":4320},"eventHandler":{"__isSmartRef__":true,"id":4321},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4322},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":17},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","eventHandler","droppingEnabled","halosEnabled","defaultCellHeight","defaultCellWidth","borderSize","colNames","numCols","numRows","activeCellContent","rows","dataModel","priorExtent","colHeads","layout","isInLayoutCycle","owner","showsHalos","halos","_Position","distanceToDragEvent","attributeConnections","doNotSerialize","doNotCopyProperties","$$activeCell","activeCell"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"owner","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4278},"text":{"__isSmartRef__":true,"id":4298},"owner":{"__isSmartRef__":true,"id":4276},"_Position":{"__isSmartRef__":true,"id":4323},"priorExtent":{"__isSmartRef__":true,"id":4324},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4325},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4279},"derivationIds":[null],"id":"5B9AD9B2-6BE5-4EF8-93E6-7D21D8FAA2DE","renderContextTable":{"__isSmartRef__":true,"id":4284},"eventHandler":{"__isSmartRef__":true,"id":4285},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4286},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4277},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4287},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4279":{"_Position":{"__isSmartRef__":true,"id":4280},"renderContextTable":{"__isSmartRef__":true,"id":4281},"_Extent":{"__isSmartRef__":true,"id":4282},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4283},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":2862},"__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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4283":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4284":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4285":{"morph":{"__isSmartRef__":true,"id":4278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4286":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4287":{"toggle":{"__isSmartRef__":true,"id":4288},"toggleExpansion":{"__isSmartRef__":true,"id":4295}},"4288":{"varMapping":{"__isSmartRef__":true,"id":4289},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4289":{"this":{"__isSmartRef__":true,"id":4278},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4290}},"4290":{"$super":{"__isSmartRef__":true,"id":4291}},"4291":{"varMapping":{"__isSmartRef__":true,"id":4292},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4292":{"obj":{"__isSmartRef__":true,"id":4278},"name":"toggle"},"4293":{},"4294":{},"4295":{"varMapping":{"__isSmartRef__":true,"id":4296},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4296":{"this":{"__isSmartRef__":true,"id":4278}},"4297":{},"4298":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4299},"derivationIds":[null],"id":"D1567AB8-AA82-4C09-BA86-1B38200E8442","renderContextTable":{"__isSmartRef__":true,"id":4303},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4304},{"__isSmartRef__":true,"id":4306}],"eventHandler":{"__isSmartRef__":true,"id":4308},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4309},"priorExtent":{"__isSmartRef__":true,"id":4310},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4277},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4311},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4299":{"_Position":{"__isSmartRef__":true,"id":4300},"renderContextTable":{"__isSmartRef__":true,"id":4301},"_Extent":{"__isSmartRef__":true,"id":4302},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4300":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4301":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4302":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4303":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4304":{"style":{"__isSmartRef__":true,"id":4305},"chunkOwner":{"__isSmartRef__":true,"id":4298},"storedString":"owner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4305":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4306":{"style":{"__isSmartRef__":true,"id":4307},"chunkOwner":{"__isSmartRef__":true,"id":4298},"storedString":": DataGrid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4307":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4308":{"morph":{"__isSmartRef__":true,"id":4298},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4309":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4310":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4311":{"layoutText":{"__isSmartRef__":true,"id":4312}},"4312":{"varMapping":{"__isSmartRef__":true,"id":4313},"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":4314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4313":{"this":{"__isSmartRef__":true,"id":4298}},"4314":{},"4315":{"_Position":{"__isSmartRef__":true,"id":4316},"renderContextTable":{"__isSmartRef__":true,"id":4317},"_Extent":{"__isSmartRef__":true,"id":4318},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4319},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4316":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4317":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4318":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4319":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4320":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4321":{"morph":{"__isSmartRef__":true,"id":4277},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4322":{"resizeWidth":true},"4323":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4324":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4325":{"updateExpanderColor":{"__isSmartRef__":true,"id":4326},"onMouseDown":{"__isSmartRef__":true,"id":4329},"isRoot":{"__isSmartRef__":true,"id":4336},"displayValue":{"__isSmartRef__":true,"id":4339},"update":{"__isSmartRef__":true,"id":4342}},"4326":{"varMapping":{"__isSmartRef__":true,"id":4327},"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":4328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4327":{"this":{"__isSmartRef__":true,"id":4277}},"4328":{},"4329":{"varMapping":{"__isSmartRef__":true,"id":4330},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4330":{"this":{"__isSmartRef__":true,"id":4277},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4331}},"4331":{"$super":{"__isSmartRef__":true,"id":4332}},"4332":{"varMapping":{"__isSmartRef__":true,"id":4333},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4333":{"obj":{"__isSmartRef__":true,"id":4277},"name":"onMouseDown"},"4334":{},"4335":{},"4336":{"varMapping":{"__isSmartRef__":true,"id":4337},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4337":{"this":{"__isSmartRef__":true,"id":4277}},"4338":{},"4339":{"varMapping":{"__isSmartRef__":true,"id":4340},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4340":{"this":{"__isSmartRef__":true,"id":4277}},"4341":{},"4342":{"varMapping":{"__isSmartRef__":true,"id":4343},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4343":{"this":{"__isSmartRef__":true,"id":4277}},"4344":{},"4345":{"_Position":{"__isSmartRef__":true,"id":4346},"renderContextTable":{"__isSmartRef__":true,"id":4347},"_Extent":{"__isSmartRef__":true,"id":4348},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4349},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4346":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4347":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4348":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4349":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4350":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4351":{"morph":{"__isSmartRef__":true,"id":4276},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4352":{"layouter":{"__isSmartRef__":true,"id":4353},"resizeWidth":true},"4353":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4276},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4354":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4355":{"x":0,"y":620,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4356":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4357}},"4357":{"varMapping":{"__isSmartRef__":true,"id":4358},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4358":{"this":{"__isSmartRef__":true,"id":4276},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4359}},"4359":{"$super":{"__isSmartRef__":true,"id":4360}},"4360":{"varMapping":{"__isSmartRef__":true,"id":4361},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4361":{"obj":{"__isSmartRef__":true,"id":4276},"name":"getLayoutableSubmorphs"},"4362":{},"4363":{},"4364":{"submorphs":[{"__isSmartRef__":true,"id":4365}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4434},"derivationIds":[null],"id":"83CCC1C7-4E8D-461C-91D3-14BCA96456D9","renderContextTable":{"__isSmartRef__":true,"id":4439},"eventHandler":{"__isSmartRef__":true,"id":4440},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4441},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4443},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4444},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4445},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4365":{"submorphs":[{"__isSmartRef__":true,"id":4366},{"__isSmartRef__":true,"id":4387}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4404},"derivationIds":[null],"id":"57DB3ECA-22BB-4B84-8F9E-50C9444FDDC5","renderContextTable":{"__isSmartRef__":true,"id":4409},"eventHandler":{"__isSmartRef__":true,"id":4410},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4411},"grabbingEnabled":false,"draggingEnabled":false,"data":[6,6],"propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"previousSelection","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4366},"text":{"__isSmartRef__":true,"id":4387},"owner":{"__isSmartRef__":true,"id":4364},"_Position":{"__isSmartRef__":true,"id":4412},"priorExtent":{"__isSmartRef__":true,"id":4413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4414},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4366":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4367},"derivationIds":[null],"id":"6995B000-E7D9-49B9-999F-B3A957ABCC38","renderContextTable":{"__isSmartRef__":true,"id":4373},"eventHandler":{"__isSmartRef__":true,"id":4374},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4375},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4365},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4376},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4367":{"_Position":{"__isSmartRef__":true,"id":4368},"renderContextTable":{"__isSmartRef__":true,"id":4369},"_Extent":{"__isSmartRef__":true,"id":4370},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4371},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4372},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4368":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4369":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4370":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4371":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4372":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4373":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4374":{"morph":{"__isSmartRef__":true,"id":4366},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4375":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4376":{"toggle":{"__isSmartRef__":true,"id":4377},"toggleExpansion":{"__isSmartRef__":true,"id":4384}},"4377":{"varMapping":{"__isSmartRef__":true,"id":4378},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4378":{"this":{"__isSmartRef__":true,"id":4366},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4379}},"4379":{"$super":{"__isSmartRef__":true,"id":4380}},"4380":{"varMapping":{"__isSmartRef__":true,"id":4381},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4381":{"obj":{"__isSmartRef__":true,"id":4366},"name":"toggle"},"4382":{},"4383":{},"4384":{"varMapping":{"__isSmartRef__":true,"id":4385},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4385":{"this":{"__isSmartRef__":true,"id":4366}},"4386":{},"4387":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4388},"derivationIds":[null],"id":"6935FFD3-97A5-438B-A9B2-57B48D352061","renderContextTable":{"__isSmartRef__":true,"id":4392},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4393},{"__isSmartRef__":true,"id":4395}],"eventHandler":{"__isSmartRef__":true,"id":4397},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4398},"priorExtent":{"__isSmartRef__":true,"id":4399},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4365},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4400},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4388":{"_Position":{"__isSmartRef__":true,"id":4389},"renderContextTable":{"__isSmartRef__":true,"id":4390},"_Extent":{"__isSmartRef__":true,"id":4391},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4389":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4390":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4391":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4392":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4393":{"style":{"__isSmartRef__":true,"id":4394},"chunkOwner":{"__isSmartRef__":true,"id":4387},"storedString":"previousSelection","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4394":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4395":{"style":{"__isSmartRef__":true,"id":4396},"chunkOwner":{"__isSmartRef__":true,"id":4387},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4396":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4397":{"morph":{"__isSmartRef__":true,"id":4387},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4398":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4399":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4400":{"layoutText":{"__isSmartRef__":true,"id":4401}},"4401":{"varMapping":{"__isSmartRef__":true,"id":4402},"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":4403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4402":{"this":{"__isSmartRef__":true,"id":4387}},"4403":{},"4404":{"_Position":{"__isSmartRef__":true,"id":4405},"renderContextTable":{"__isSmartRef__":true,"id":4406},"_Extent":{"__isSmartRef__":true,"id":4407},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4408},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4405":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4406":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4407":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4408":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4409":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4410":{"morph":{"__isSmartRef__":true,"id":4365},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4411":{"resizeWidth":true},"4412":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4413":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4414":{"updateExpanderColor":{"__isSmartRef__":true,"id":4415},"onMouseDown":{"__isSmartRef__":true,"id":4418},"isRoot":{"__isSmartRef__":true,"id":4425},"displayValue":{"__isSmartRef__":true,"id":4428},"update":{"__isSmartRef__":true,"id":4431}},"4415":{"varMapping":{"__isSmartRef__":true,"id":4416},"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":4417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4416":{"this":{"__isSmartRef__":true,"id":4365}},"4417":{},"4418":{"varMapping":{"__isSmartRef__":true,"id":4419},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4419":{"this":{"__isSmartRef__":true,"id":4365},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4420}},"4420":{"$super":{"__isSmartRef__":true,"id":4421}},"4421":{"varMapping":{"__isSmartRef__":true,"id":4422},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4422":{"obj":{"__isSmartRef__":true,"id":4365},"name":"onMouseDown"},"4423":{},"4424":{},"4425":{"varMapping":{"__isSmartRef__":true,"id":4426},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4426":{"this":{"__isSmartRef__":true,"id":4365}},"4427":{},"4428":{"varMapping":{"__isSmartRef__":true,"id":4429},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4429":{"this":{"__isSmartRef__":true,"id":4365}},"4430":{},"4431":{"varMapping":{"__isSmartRef__":true,"id":4432},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4432":{"this":{"__isSmartRef__":true,"id":4365}},"4433":{},"4434":{"_Position":{"__isSmartRef__":true,"id":4435},"renderContextTable":{"__isSmartRef__":true,"id":4436},"_Extent":{"__isSmartRef__":true,"id":4437},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4438},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4435":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4436":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4437":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4438":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4439":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4440":{"morph":{"__isSmartRef__":true,"id":4364},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4441":{"layouter":{"__isSmartRef__":true,"id":4442},"resizeWidth":true},"4442":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4364},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4443":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4444":{"x":0,"y":640,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4445":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4446}},"4446":{"varMapping":{"__isSmartRef__":true,"id":4447},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4447":{"this":{"__isSmartRef__":true,"id":4364},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4448}},"4448":{"$super":{"__isSmartRef__":true,"id":4449}},"4449":{"varMapping":{"__isSmartRef__":true,"id":4450},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4450":{"obj":{"__isSmartRef__":true,"id":4364},"name":"getLayoutableSubmorphs"},"4451":{},"4452":{},"4453":{"submorphs":[{"__isSmartRef__":true,"id":4454}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4523},"derivationIds":[null],"id":"C27D59E0-953B-4A72-8D54-33E964620A2F","renderContextTable":{"__isSmartRef__":true,"id":4528},"eventHandler":{"__isSmartRef__":true,"id":4529},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4530},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4532},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4533},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4534},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4454":{"submorphs":[{"__isSmartRef__":true,"id":4455},{"__isSmartRef__":true,"id":4476}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4493},"derivationIds":[null],"id":"6D158E78-EECC-43AF-A65F-29EC61C60651","renderContextTable":{"__isSmartRef__":true,"id":4498},"eventHandler":{"__isSmartRef__":true,"id":4499},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4500},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":317},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"priorExtent","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4455},"text":{"__isSmartRef__":true,"id":4476},"owner":{"__isSmartRef__":true,"id":4453},"_Position":{"__isSmartRef__":true,"id":4501},"priorExtent":{"__isSmartRef__":true,"id":4502},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4503},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4455":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4456},"derivationIds":[null],"id":"772895AD-7EBF-43B4-8615-D4D13F314574","renderContextTable":{"__isSmartRef__":true,"id":4462},"eventHandler":{"__isSmartRef__":true,"id":4463},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4464},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4454},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4465},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4456":{"_Position":{"__isSmartRef__":true,"id":4457},"renderContextTable":{"__isSmartRef__":true,"id":4458},"_Extent":{"__isSmartRef__":true,"id":4459},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4460},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4461},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4457":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4458":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4459":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4460":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4461":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4462":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4463":{"morph":{"__isSmartRef__":true,"id":4455},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4464":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4465":{"toggle":{"__isSmartRef__":true,"id":4466},"toggleExpansion":{"__isSmartRef__":true,"id":4473}},"4466":{"varMapping":{"__isSmartRef__":true,"id":4467},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4467":{"this":{"__isSmartRef__":true,"id":4455},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4468}},"4468":{"$super":{"__isSmartRef__":true,"id":4469}},"4469":{"varMapping":{"__isSmartRef__":true,"id":4470},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4470":{"obj":{"__isSmartRef__":true,"id":4455},"name":"toggle"},"4471":{},"4472":{},"4473":{"varMapping":{"__isSmartRef__":true,"id":4474},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4474":{"this":{"__isSmartRef__":true,"id":4455}},"4475":{},"4476":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4477},"derivationIds":[null],"id":"C5E11546-BBF4-4120-B954-6BBCEBE0FE9F","renderContextTable":{"__isSmartRef__":true,"id":4481},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4482},{"__isSmartRef__":true,"id":4484}],"eventHandler":{"__isSmartRef__":true,"id":4486},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4487},"priorExtent":{"__isSmartRef__":true,"id":4488},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4454},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4489},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4477":{"_Position":{"__isSmartRef__":true,"id":4478},"renderContextTable":{"__isSmartRef__":true,"id":4479},"_Extent":{"__isSmartRef__":true,"id":4480},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4478":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4479":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4480":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4481":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4482":{"style":{"__isSmartRef__":true,"id":4483},"chunkOwner":{"__isSmartRef__":true,"id":4476},"storedString":"priorExtent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4483":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4484":{"style":{"__isSmartRef__":true,"id":4485},"chunkOwner":{"__isSmartRef__":true,"id":4476},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4485":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4486":{"morph":{"__isSmartRef__":true,"id":4476},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4487":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4488":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4489":{"layoutText":{"__isSmartRef__":true,"id":4490}},"4490":{"varMapping":{"__isSmartRef__":true,"id":4491},"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":4492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4491":{"this":{"__isSmartRef__":true,"id":4476}},"4492":{},"4493":{"_Position":{"__isSmartRef__":true,"id":4494},"renderContextTable":{"__isSmartRef__":true,"id":4495},"_Extent":{"__isSmartRef__":true,"id":4496},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4497},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4494":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4495":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4496":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4497":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4498":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4499":{"morph":{"__isSmartRef__":true,"id":4454},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4500":{"resizeWidth":true},"4501":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4502":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4503":{"updateExpanderColor":{"__isSmartRef__":true,"id":4504},"onMouseDown":{"__isSmartRef__":true,"id":4507},"isRoot":{"__isSmartRef__":true,"id":4514},"displayValue":{"__isSmartRef__":true,"id":4517},"update":{"__isSmartRef__":true,"id":4520}},"4504":{"varMapping":{"__isSmartRef__":true,"id":4505},"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":4506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4505":{"this":{"__isSmartRef__":true,"id":4454}},"4506":{},"4507":{"varMapping":{"__isSmartRef__":true,"id":4508},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4508":{"this":{"__isSmartRef__":true,"id":4454},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4509}},"4509":{"$super":{"__isSmartRef__":true,"id":4510}},"4510":{"varMapping":{"__isSmartRef__":true,"id":4511},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4511":{"obj":{"__isSmartRef__":true,"id":4454},"name":"onMouseDown"},"4512":{},"4513":{},"4514":{"varMapping":{"__isSmartRef__":true,"id":4515},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4515":{"this":{"__isSmartRef__":true,"id":4454}},"4516":{},"4517":{"varMapping":{"__isSmartRef__":true,"id":4518},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4518":{"this":{"__isSmartRef__":true,"id":4454}},"4519":{},"4520":{"varMapping":{"__isSmartRef__":true,"id":4521},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4521":{"this":{"__isSmartRef__":true,"id":4454}},"4522":{},"4523":{"_Position":{"__isSmartRef__":true,"id":4524},"renderContextTable":{"__isSmartRef__":true,"id":4525},"_Extent":{"__isSmartRef__":true,"id":4526},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4527},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4524":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4525":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4526":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4527":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4528":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4529":{"morph":{"__isSmartRef__":true,"id":4453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4530":{"layouter":{"__isSmartRef__":true,"id":4531},"resizeWidth":true},"4531":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4453},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4532":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4533":{"x":0,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4534":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4535}},"4535":{"varMapping":{"__isSmartRef__":true,"id":4536},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4536":{"this":{"__isSmartRef__":true,"id":4453},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4537}},"4537":{"$super":{"__isSmartRef__":true,"id":4538}},"4538":{"varMapping":{"__isSmartRef__":true,"id":4539},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4539":{"obj":{"__isSmartRef__":true,"id":4453},"name":"getLayoutableSubmorphs"},"4540":{},"4541":{},"4542":{"submorphs":[{"__isSmartRef__":true,"id":4543}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4612},"derivationIds":[null],"id":"CDC7A5E6-FF3A-48B2-9A7B-E4CCE756C514","renderContextTable":{"__isSmartRef__":true,"id":4617},"eventHandler":{"__isSmartRef__":true,"id":4618},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4619},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4621},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4622},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4623},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4543":{"submorphs":[{"__isSmartRef__":true,"id":4544},{"__isSmartRef__":true,"id":4565}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4582},"derivationIds":[null],"id":"CAC2AF6A-EADD-408E-9673-0E452B9E8370","renderContextTable":{"__isSmartRef__":true,"id":4587},"eventHandler":{"__isSmartRef__":true,"id":4588},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4589},"grabbingEnabled":false,"draggingEnabled":false,"data":[2,2],"propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"priorSelectionRange","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4544},"text":{"__isSmartRef__":true,"id":4565},"owner":{"__isSmartRef__":true,"id":4542},"_Position":{"__isSmartRef__":true,"id":4590},"priorExtent":{"__isSmartRef__":true,"id":4591},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4592},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4544":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4545},"derivationIds":[null],"id":"613481D9-DD9A-4938-A643-637287FEAF38","renderContextTable":{"__isSmartRef__":true,"id":4551},"eventHandler":{"__isSmartRef__":true,"id":4552},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4553},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4554},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4545":{"_Position":{"__isSmartRef__":true,"id":4546},"renderContextTable":{"__isSmartRef__":true,"id":4547},"_Extent":{"__isSmartRef__":true,"id":4548},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4549},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4550},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4546":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4547":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4548":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4549":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4550":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4551":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4552":{"morph":{"__isSmartRef__":true,"id":4544},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4553":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4554":{"toggle":{"__isSmartRef__":true,"id":4555},"toggleExpansion":{"__isSmartRef__":true,"id":4562}},"4555":{"varMapping":{"__isSmartRef__":true,"id":4556},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4556":{"this":{"__isSmartRef__":true,"id":4544},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4557}},"4557":{"$super":{"__isSmartRef__":true,"id":4558}},"4558":{"varMapping":{"__isSmartRef__":true,"id":4559},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4559":{"obj":{"__isSmartRef__":true,"id":4544},"name":"toggle"},"4560":{},"4561":{},"4562":{"varMapping":{"__isSmartRef__":true,"id":4563},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4563":{"this":{"__isSmartRef__":true,"id":4544}},"4564":{},"4565":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4566},"derivationIds":[null],"id":"CA33A479-F3BD-4037-A7DE-AB6310859565","renderContextTable":{"__isSmartRef__":true,"id":4570},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4571},{"__isSmartRef__":true,"id":4573}],"eventHandler":{"__isSmartRef__":true,"id":4575},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4576},"priorExtent":{"__isSmartRef__":true,"id":4577},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4578},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4566":{"_Position":{"__isSmartRef__":true,"id":4567},"renderContextTable":{"__isSmartRef__":true,"id":4568},"_Extent":{"__isSmartRef__":true,"id":4569},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4567":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4568":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4569":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4570":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4571":{"style":{"__isSmartRef__":true,"id":4572},"chunkOwner":{"__isSmartRef__":true,"id":4565},"storedString":"priorSelectionRange","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4572":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4573":{"style":{"__isSmartRef__":true,"id":4574},"chunkOwner":{"__isSmartRef__":true,"id":4565},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4574":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4575":{"morph":{"__isSmartRef__":true,"id":4565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4576":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4577":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4578":{"layoutText":{"__isSmartRef__":true,"id":4579}},"4579":{"varMapping":{"__isSmartRef__":true,"id":4580},"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":4581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4580":{"this":{"__isSmartRef__":true,"id":4565}},"4581":{},"4582":{"_Position":{"__isSmartRef__":true,"id":4583},"renderContextTable":{"__isSmartRef__":true,"id":4584},"_Extent":{"__isSmartRef__":true,"id":4585},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4586},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4583":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4584":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4585":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4586":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4587":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4588":{"morph":{"__isSmartRef__":true,"id":4543},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4589":{"resizeWidth":true},"4590":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4591":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4592":{"updateExpanderColor":{"__isSmartRef__":true,"id":4593},"onMouseDown":{"__isSmartRef__":true,"id":4596},"isRoot":{"__isSmartRef__":true,"id":4603},"displayValue":{"__isSmartRef__":true,"id":4606},"update":{"__isSmartRef__":true,"id":4609}},"4593":{"varMapping":{"__isSmartRef__":true,"id":4594},"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":4595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4594":{"this":{"__isSmartRef__":true,"id":4543}},"4595":{},"4596":{"varMapping":{"__isSmartRef__":true,"id":4597},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4597":{"this":{"__isSmartRef__":true,"id":4543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4598}},"4598":{"$super":{"__isSmartRef__":true,"id":4599}},"4599":{"varMapping":{"__isSmartRef__":true,"id":4600},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4600":{"obj":{"__isSmartRef__":true,"id":4543},"name":"onMouseDown"},"4601":{},"4602":{},"4603":{"varMapping":{"__isSmartRef__":true,"id":4604},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4604":{"this":{"__isSmartRef__":true,"id":4543}},"4605":{},"4606":{"varMapping":{"__isSmartRef__":true,"id":4607},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4607":{"this":{"__isSmartRef__":true,"id":4543}},"4608":{},"4609":{"varMapping":{"__isSmartRef__":true,"id":4610},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4610":{"this":{"__isSmartRef__":true,"id":4543}},"4611":{},"4612":{"_Position":{"__isSmartRef__":true,"id":4613},"renderContextTable":{"__isSmartRef__":true,"id":4614},"_Extent":{"__isSmartRef__":true,"id":4615},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4616},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4613":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4614":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4615":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4616":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4617":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4618":{"morph":{"__isSmartRef__":true,"id":4542},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4619":{"layouter":{"__isSmartRef__":true,"id":4620},"resizeWidth":true},"4620":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4542},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4621":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4622":{"x":0,"y":680,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4623":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4624}},"4624":{"varMapping":{"__isSmartRef__":true,"id":4625},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4625":{"this":{"__isSmartRef__":true,"id":4542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4626}},"4626":{"$super":{"__isSmartRef__":true,"id":4627}},"4627":{"varMapping":{"__isSmartRef__":true,"id":4628},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4628":{"obj":{"__isSmartRef__":true,"id":4542},"name":"getLayoutableSubmorphs"},"4629":{},"4630":{},"4631":{"submorphs":[{"__isSmartRef__":true,"id":4632}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4701},"derivationIds":[null],"id":"A9592069-718F-4FB1-AED2-19C6C1A90C6D","renderContextTable":{"__isSmartRef__":true,"id":4706},"eventHandler":{"__isSmartRef__":true,"id":4707},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4708},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4710},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4711},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4712},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4632":{"submorphs":[{"__isSmartRef__":true,"id":4633},{"__isSmartRef__":true,"id":4654}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4671},"derivationIds":[null],"id":"6A2DEA99-B546-4618-94A0-AA573F039368","renderContextTable":{"__isSmartRef__":true,"id":4676},"eventHandler":{"__isSmartRef__":true,"id":4677},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4678},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":313},"propertyList":["replaceRenderContext","init","append","remove","triggerEvent","setTransform","setPosition","setRotation","setExtent","setScale","setVisible","adjustOrigin","setPivotPoint","setClipMode","showsVerticalScrollBar","showsHorizontalScrollBar","getScrollBarExtent","setHandStyle","setPointerEvents","setToolTip","focus","blur","setFocusable","updateText","setTextExtent","setMaxTextWidth","setMaxTextHeight","setMinTextWidth","setMinTextHeight","getTextExtent","getTextString","ignoreTextEvents","unignoreTextEvents","enableTextEvents","setFontFamily","setFontSize","setTextColor","setPadding","setAlign","setVerticalAlign","setDisplay","setWhiteSpaceHandling","focusMorph"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"renderContextTable","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4633},"text":{"__isSmartRef__":true,"id":4654},"owner":{"__isSmartRef__":true,"id":4631},"_Position":{"__isSmartRef__":true,"id":4679},"priorExtent":{"__isSmartRef__":true,"id":4680},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4681},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4633":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4634},"derivationIds":[null],"id":"9F09CB25-DE16-44F7-8307-2E02B9DAF8DC","renderContextTable":{"__isSmartRef__":true,"id":4640},"eventHandler":{"__isSmartRef__":true,"id":4641},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4642},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4632},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4643},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4634":{"_Position":{"__isSmartRef__":true,"id":4635},"renderContextTable":{"__isSmartRef__":true,"id":4636},"_Extent":{"__isSmartRef__":true,"id":4637},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4638},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4639},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4635":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4636":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4637":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4638":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4639":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4640":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4641":{"morph":{"__isSmartRef__":true,"id":4633},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4642":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4643":{"toggle":{"__isSmartRef__":true,"id":4644},"toggleExpansion":{"__isSmartRef__":true,"id":4651}},"4644":{"varMapping":{"__isSmartRef__":true,"id":4645},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4645":{"this":{"__isSmartRef__":true,"id":4633},"__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":4633},"name":"toggle"},"4649":{},"4650":{},"4651":{"varMapping":{"__isSmartRef__":true,"id":4652},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4652":{"this":{"__isSmartRef__":true,"id":4633}},"4653":{},"4654":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4655},"derivationIds":[null],"id":"4090D37A-4A74-42B5-ADDA-CC30F6D9514B","renderContextTable":{"__isSmartRef__":true,"id":4659},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4660},{"__isSmartRef__":true,"id":4662}],"eventHandler":{"__isSmartRef__":true,"id":4664},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4665},"priorExtent":{"__isSmartRef__":true,"id":4666},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4632},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4667},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4655":{"_Position":{"__isSmartRef__":true,"id":4656},"renderContextTable":{"__isSmartRef__":true,"id":4657},"_Extent":{"__isSmartRef__":true,"id":4658},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4656":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4657":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4658":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4659":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4660":{"style":{"__isSmartRef__":true,"id":4661},"chunkOwner":{"__isSmartRef__":true,"id":4654},"storedString":"renderContextTable","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4661":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4662":{"style":{"__isSmartRef__":true,"id":4663},"chunkOwner":{"__isSmartRef__":true,"id":4654},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4663":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4664":{"morph":{"__isSmartRef__":true,"id":4654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4665":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4666":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4667":{"layoutText":{"__isSmartRef__":true,"id":4668}},"4668":{"varMapping":{"__isSmartRef__":true,"id":4669},"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":4670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4669":{"this":{"__isSmartRef__":true,"id":4654}},"4670":{},"4671":{"_Position":{"__isSmartRef__":true,"id":4672},"renderContextTable":{"__isSmartRef__":true,"id":4673},"_Extent":{"__isSmartRef__":true,"id":4674},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4675},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4672":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4673":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4674":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4675":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4676":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4677":{"morph":{"__isSmartRef__":true,"id":4632},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4678":{"resizeWidth":true},"4679":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4680":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4681":{"updateExpanderColor":{"__isSmartRef__":true,"id":4682},"onMouseDown":{"__isSmartRef__":true,"id":4685},"isRoot":{"__isSmartRef__":true,"id":4692},"displayValue":{"__isSmartRef__":true,"id":4695},"update":{"__isSmartRef__":true,"id":4698}},"4682":{"varMapping":{"__isSmartRef__":true,"id":4683},"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":4684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4683":{"this":{"__isSmartRef__":true,"id":4632}},"4684":{},"4685":{"varMapping":{"__isSmartRef__":true,"id":4686},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4686":{"this":{"__isSmartRef__":true,"id":4632},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4687}},"4687":{"$super":{"__isSmartRef__":true,"id":4688}},"4688":{"varMapping":{"__isSmartRef__":true,"id":4689},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4689":{"obj":{"__isSmartRef__":true,"id":4632},"name":"onMouseDown"},"4690":{},"4691":{},"4692":{"varMapping":{"__isSmartRef__":true,"id":4693},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4693":{"this":{"__isSmartRef__":true,"id":4632}},"4694":{},"4695":{"varMapping":{"__isSmartRef__":true,"id":4696},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4696":{"this":{"__isSmartRef__":true,"id":4632}},"4697":{},"4698":{"varMapping":{"__isSmartRef__":true,"id":4699},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4699":{"this":{"__isSmartRef__":true,"id":4632}},"4700":{},"4701":{"_Position":{"__isSmartRef__":true,"id":4702},"renderContextTable":{"__isSmartRef__":true,"id":4703},"_Extent":{"__isSmartRef__":true,"id":4704},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4705},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4702":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4703":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4704":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4705":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4706":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4707":{"morph":{"__isSmartRef__":true,"id":4631},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4708":{"layouter":{"__isSmartRef__":true,"id":4709},"resizeWidth":true},"4709":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4631},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4710":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4711":{"x":0,"y":700,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4712":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4713}},"4713":{"varMapping":{"__isSmartRef__":true,"id":4714},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4714":{"this":{"__isSmartRef__":true,"id":4631},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4715}},"4715":{"$super":{"__isSmartRef__":true,"id":4716}},"4716":{"varMapping":{"__isSmartRef__":true,"id":4717},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4717":{"obj":{"__isSmartRef__":true,"id":4631},"name":"getLayoutableSubmorphs"},"4718":{},"4719":{},"4720":{"submorphs":[{"__isSmartRef__":true,"id":4721}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4790},"derivationIds":[null],"id":"99549F4D-736B-4E03-8FDD-BE87B8541796","renderContextTable":{"__isSmartRef__":true,"id":4795},"eventHandler":{"__isSmartRef__":true,"id":4796},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4797},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4799},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4800},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4801},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4721":{"submorphs":[{"__isSmartRef__":true,"id":4722},{"__isSmartRef__":true,"id":4743}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4760},"derivationIds":[null],"id":"01DDC735-A6D0-4772-8670-025E024C36E6","renderContextTable":{"__isSmartRef__":true,"id":4765},"eventHandler":{"__isSmartRef__":true,"id":4766},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4767},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"scripts","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4722},"text":{"__isSmartRef__":true,"id":4743},"owner":{"__isSmartRef__":true,"id":4720},"_Position":{"__isSmartRef__":true,"id":4768},"priorExtent":{"__isSmartRef__":true,"id":4769},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4770},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4722":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4723},"derivationIds":[null],"id":"FA874ED7-1793-4B88-841A-06C6375243EF","renderContextTable":{"__isSmartRef__":true,"id":4729},"eventHandler":{"__isSmartRef__":true,"id":4730},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4731},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4721},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4732},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4723":{"_Position":{"__isSmartRef__":true,"id":4724},"renderContextTable":{"__isSmartRef__":true,"id":4725},"_Extent":{"__isSmartRef__":true,"id":4726},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4727},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4728},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4724":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4725":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4726":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4727":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4728":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4729":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4730":{"morph":{"__isSmartRef__":true,"id":4722},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4731":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4732":{"toggle":{"__isSmartRef__":true,"id":4733},"toggleExpansion":{"__isSmartRef__":true,"id":4740}},"4733":{"varMapping":{"__isSmartRef__":true,"id":4734},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4734":{"this":{"__isSmartRef__":true,"id":4722},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4735}},"4735":{"$super":{"__isSmartRef__":true,"id":4736}},"4736":{"varMapping":{"__isSmartRef__":true,"id":4737},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4737":{"obj":{"__isSmartRef__":true,"id":4722},"name":"toggle"},"4738":{},"4739":{},"4740":{"varMapping":{"__isSmartRef__":true,"id":4741},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4741":{"this":{"__isSmartRef__":true,"id":4722}},"4742":{},"4743":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4744},"derivationIds":[null],"id":"7815C121-DF3C-4A92-93AF-11DD4383DDDB","renderContextTable":{"__isSmartRef__":true,"id":4748},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4749},{"__isSmartRef__":true,"id":4751}],"eventHandler":{"__isSmartRef__":true,"id":4753},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4754},"priorExtent":{"__isSmartRef__":true,"id":4755},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4721},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4756},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4744":{"_Position":{"__isSmartRef__":true,"id":4745},"renderContextTable":{"__isSmartRef__":true,"id":4746},"_Extent":{"__isSmartRef__":true,"id":4747},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4745":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4746":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4747":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4748":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4749":{"style":{"__isSmartRef__":true,"id":4750},"chunkOwner":{"__isSmartRef__":true,"id":4743},"storedString":"scripts","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4750":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4751":{"style":{"__isSmartRef__":true,"id":4752},"chunkOwner":{"__isSmartRef__":true,"id":4743},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4752":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4753":{"morph":{"__isSmartRef__":true,"id":4743},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4754":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4755":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4756":{"layoutText":{"__isSmartRef__":true,"id":4757}},"4757":{"varMapping":{"__isSmartRef__":true,"id":4758},"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":4759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4758":{"this":{"__isSmartRef__":true,"id":4743}},"4759":{},"4760":{"_Position":{"__isSmartRef__":true,"id":4761},"renderContextTable":{"__isSmartRef__":true,"id":4762},"_Extent":{"__isSmartRef__":true,"id":4763},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4764},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4761":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4762":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4763":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4764":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4765":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4766":{"morph":{"__isSmartRef__":true,"id":4721},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4767":{"resizeWidth":true},"4768":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4769":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4770":{"updateExpanderColor":{"__isSmartRef__":true,"id":4771},"onMouseDown":{"__isSmartRef__":true,"id":4774},"isRoot":{"__isSmartRef__":true,"id":4781},"displayValue":{"__isSmartRef__":true,"id":4784},"update":{"__isSmartRef__":true,"id":4787}},"4771":{"varMapping":{"__isSmartRef__":true,"id":4772},"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":4773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4772":{"this":{"__isSmartRef__":true,"id":4721}},"4773":{},"4774":{"varMapping":{"__isSmartRef__":true,"id":4775},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4775":{"this":{"__isSmartRef__":true,"id":4721},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4776}},"4776":{"$super":{"__isSmartRef__":true,"id":4777}},"4777":{"varMapping":{"__isSmartRef__":true,"id":4778},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4778":{"obj":{"__isSmartRef__":true,"id":4721},"name":"onMouseDown"},"4779":{},"4780":{},"4781":{"varMapping":{"__isSmartRef__":true,"id":4782},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4782":{"this":{"__isSmartRef__":true,"id":4721}},"4783":{},"4784":{"varMapping":{"__isSmartRef__":true,"id":4785},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4785":{"this":{"__isSmartRef__":true,"id":4721}},"4786":{},"4787":{"varMapping":{"__isSmartRef__":true,"id":4788},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4788":{"this":{"__isSmartRef__":true,"id":4721}},"4789":{},"4790":{"_Position":{"__isSmartRef__":true,"id":4791},"renderContextTable":{"__isSmartRef__":true,"id":4792},"_Extent":{"__isSmartRef__":true,"id":4793},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4794},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4791":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4792":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4793":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4794":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4795":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4796":{"morph":{"__isSmartRef__":true,"id":4720},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4797":{"layouter":{"__isSmartRef__":true,"id":4798},"resizeWidth":true},"4798":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4720},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4799":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4800":{"x":0,"y":720,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4801":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4802}},"4802":{"varMapping":{"__isSmartRef__":true,"id":4803},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4803":{"this":{"__isSmartRef__":true,"id":4720},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4804}},"4804":{"$super":{"__isSmartRef__":true,"id":4805}},"4805":{"varMapping":{"__isSmartRef__":true,"id":4806},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4806":{"obj":{"__isSmartRef__":true,"id":4720},"name":"getLayoutableSubmorphs"},"4807":{},"4808":{},"4809":{"submorphs":[{"__isSmartRef__":true,"id":4810}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4879},"derivationIds":[null],"id":"678754CE-D7AE-42CB-AE36-924190F99B45","renderContextTable":{"__isSmartRef__":true,"id":4884},"eventHandler":{"__isSmartRef__":true,"id":4885},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4886},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4888},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4889},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4890},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4810":{"submorphs":[{"__isSmartRef__":true,"id":4811},{"__isSmartRef__":true,"id":4832}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4849},"derivationIds":[null],"id":"1E8323AF-210D-4059-B4E5-F35E186BE720","renderContextTable":{"__isSmartRef__":true,"id":4854},"eventHandler":{"__isSmartRef__":true,"id":4855},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4856},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":307},"propertyList":["_Position","renderContextTable","_renderContext","_Extent","_ClipMode","_Padding","_BorderWidth","_BorderColor","_Fill"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"shape","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4811},"text":{"__isSmartRef__":true,"id":4832},"owner":{"__isSmartRef__":true,"id":4809},"_Position":{"__isSmartRef__":true,"id":4857},"priorExtent":{"__isSmartRef__":true,"id":4858},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4859},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4811":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4812},"derivationIds":[null],"id":"C09249BE-165F-4467-B511-460DB9E18D64","renderContextTable":{"__isSmartRef__":true,"id":4818},"eventHandler":{"__isSmartRef__":true,"id":4819},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4820},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4810},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4821},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4812":{"_Position":{"__isSmartRef__":true,"id":4813},"renderContextTable":{"__isSmartRef__":true,"id":4814},"_Extent":{"__isSmartRef__":true,"id":4815},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4816},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4817},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4813":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4814":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4815":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4816":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4817":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4818":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4819":{"morph":{"__isSmartRef__":true,"id":4811},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4820":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4821":{"toggle":{"__isSmartRef__":true,"id":4822},"toggleExpansion":{"__isSmartRef__":true,"id":4829}},"4822":{"varMapping":{"__isSmartRef__":true,"id":4823},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4823":{"this":{"__isSmartRef__":true,"id":4811},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4824}},"4824":{"$super":{"__isSmartRef__":true,"id":4825}},"4825":{"varMapping":{"__isSmartRef__":true,"id":4826},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4826":{"obj":{"__isSmartRef__":true,"id":4811},"name":"toggle"},"4827":{},"4828":{},"4829":{"varMapping":{"__isSmartRef__":true,"id":4830},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4830":{"this":{"__isSmartRef__":true,"id":4811}},"4831":{},"4832":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4833},"derivationIds":[null],"id":"32020FF2-1E4E-49BC-B4C5-52961D604DE9","renderContextTable":{"__isSmartRef__":true,"id":4837},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4838},{"__isSmartRef__":true,"id":4840}],"eventHandler":{"__isSmartRef__":true,"id":4842},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4843},"priorExtent":{"__isSmartRef__":true,"id":4844},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4810},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4845},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4833":{"_Position":{"__isSmartRef__":true,"id":4834},"renderContextTable":{"__isSmartRef__":true,"id":4835},"_Extent":{"__isSmartRef__":true,"id":4836},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4834":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4835":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4836":{"x":128,"y":20,"__LivelyClassName__":"Point","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4838":{"style":{"__isSmartRef__":true,"id":4839},"chunkOwner":{"__isSmartRef__":true,"id":4832},"storedString":"shape","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4839":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4840":{"style":{"__isSmartRef__":true,"id":4841},"chunkOwner":{"__isSmartRef__":true,"id":4832},"storedString":": Rectangle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4841":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4842":{"morph":{"__isSmartRef__":true,"id":4832},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4843":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4844":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4845":{"layoutText":{"__isSmartRef__":true,"id":4846}},"4846":{"varMapping":{"__isSmartRef__":true,"id":4847},"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":4848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4847":{"this":{"__isSmartRef__":true,"id":4832}},"4848":{},"4849":{"_Position":{"__isSmartRef__":true,"id":4850},"renderContextTable":{"__isSmartRef__":true,"id":4851},"_Extent":{"__isSmartRef__":true,"id":4852},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4853},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4850":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4851":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4852":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4853":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4854":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4855":{"morph":{"__isSmartRef__":true,"id":4810},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4856":{"resizeWidth":true},"4857":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4858":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4859":{"updateExpanderColor":{"__isSmartRef__":true,"id":4860},"onMouseDown":{"__isSmartRef__":true,"id":4863},"isRoot":{"__isSmartRef__":true,"id":4870},"displayValue":{"__isSmartRef__":true,"id":4873},"update":{"__isSmartRef__":true,"id":4876}},"4860":{"varMapping":{"__isSmartRef__":true,"id":4861},"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":4862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4861":{"this":{"__isSmartRef__":true,"id":4810}},"4862":{},"4863":{"varMapping":{"__isSmartRef__":true,"id":4864},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4864":{"this":{"__isSmartRef__":true,"id":4810},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4865}},"4865":{"$super":{"__isSmartRef__":true,"id":4866}},"4866":{"varMapping":{"__isSmartRef__":true,"id":4867},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4867":{"obj":{"__isSmartRef__":true,"id":4810},"name":"onMouseDown"},"4868":{},"4869":{},"4870":{"varMapping":{"__isSmartRef__":true,"id":4871},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4871":{"this":{"__isSmartRef__":true,"id":4810}},"4872":{},"4873":{"varMapping":{"__isSmartRef__":true,"id":4874},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4874":{"this":{"__isSmartRef__":true,"id":4810}},"4875":{},"4876":{"varMapping":{"__isSmartRef__":true,"id":4877},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4877":{"this":{"__isSmartRef__":true,"id":4810}},"4878":{},"4879":{"_Position":{"__isSmartRef__":true,"id":4880},"renderContextTable":{"__isSmartRef__":true,"id":4881},"_Extent":{"__isSmartRef__":true,"id":4882},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4883},"__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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4883":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4884":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4885":{"morph":{"__isSmartRef__":true,"id":4809},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4886":{"layouter":{"__isSmartRef__":true,"id":4887},"resizeWidth":true},"4887":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4809},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4888":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4889":{"x":0,"y":740,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4890":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4891}},"4891":{"varMapping":{"__isSmartRef__":true,"id":4892},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4892":{"this":{"__isSmartRef__":true,"id":4809},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4893}},"4893":{"$super":{"__isSmartRef__":true,"id":4894}},"4894":{"varMapping":{"__isSmartRef__":true,"id":4895},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4895":{"obj":{"__isSmartRef__":true,"id":4809},"name":"getLayoutableSubmorphs"},"4896":{},"4897":{},"4898":{"submorphs":[{"__isSmartRef__":true,"id":4899}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4968},"derivationIds":[null],"id":"EC67077C-A206-4C90-A472-A6BD2589E07A","renderContextTable":{"__isSmartRef__":true,"id":4973},"eventHandler":{"__isSmartRef__":true,"id":4974},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4975},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":4977},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":4978},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4979},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4899":{"submorphs":[{"__isSmartRef__":true,"id":4900},{"__isSmartRef__":true,"id":4921}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4938},"derivationIds":[null],"id":"7219F9F3-99BA-4315-9466-59CB88FBE3E9","renderContextTable":{"__isSmartRef__":true,"id":4943},"eventHandler":{"__isSmartRef__":true,"id":4944},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":4945},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"showsHalos","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4900},"text":{"__isSmartRef__":true,"id":4921},"owner":{"__isSmartRef__":true,"id":4898},"_Position":{"__isSmartRef__":true,"id":4946},"priorExtent":{"__isSmartRef__":true,"id":4947},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4948},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4900":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4901},"derivationIds":[null],"id":"8D36E3EA-0660-4DC5-97D5-BC3584AE1B7A","renderContextTable":{"__isSmartRef__":true,"id":4907},"eventHandler":{"__isSmartRef__":true,"id":4908},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4909},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4899},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4910},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4901":{"_Position":{"__isSmartRef__":true,"id":4902},"renderContextTable":{"__isSmartRef__":true,"id":4903},"_Extent":{"__isSmartRef__":true,"id":4904},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4905},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4906},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4902":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4903":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4904":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4905":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4906":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4907":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4908":{"morph":{"__isSmartRef__":true,"id":4900},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4909":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4910":{"toggle":{"__isSmartRef__":true,"id":4911},"toggleExpansion":{"__isSmartRef__":true,"id":4918}},"4911":{"varMapping":{"__isSmartRef__":true,"id":4912},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":4917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4912":{"this":{"__isSmartRef__":true,"id":4900},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4913}},"4913":{"$super":{"__isSmartRef__":true,"id":4914}},"4914":{"varMapping":{"__isSmartRef__":true,"id":4915},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4915":{"obj":{"__isSmartRef__":true,"id":4900},"name":"toggle"},"4916":{},"4917":{},"4918":{"varMapping":{"__isSmartRef__":true,"id":4919},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":4920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4919":{"this":{"__isSmartRef__":true,"id":4900}},"4920":{},"4921":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4922},"derivationIds":[null],"id":"27F37162-3203-45F4-80B3-B5167EBA1739","renderContextTable":{"__isSmartRef__":true,"id":4926},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":4927},{"__isSmartRef__":true,"id":4929}],"eventHandler":{"__isSmartRef__":true,"id":4931},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":4932},"priorExtent":{"__isSmartRef__":true,"id":4933},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4899},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4934},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4922":{"_Position":{"__isSmartRef__":true,"id":4923},"renderContextTable":{"__isSmartRef__":true,"id":4924},"_Extent":{"__isSmartRef__":true,"id":4925},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4923":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4924":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4925":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4926":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4927":{"style":{"__isSmartRef__":true,"id":4928},"chunkOwner":{"__isSmartRef__":true,"id":4921},"storedString":"showsHalos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4928":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4929":{"style":{"__isSmartRef__":true,"id":4930},"chunkOwner":{"__isSmartRef__":true,"id":4921},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4930":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4931":{"morph":{"__isSmartRef__":true,"id":4921},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4932":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4933":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4934":{"layoutText":{"__isSmartRef__":true,"id":4935}},"4935":{"varMapping":{"__isSmartRef__":true,"id":4936},"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":4937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4936":{"this":{"__isSmartRef__":true,"id":4921}},"4937":{},"4938":{"_Position":{"__isSmartRef__":true,"id":4939},"renderContextTable":{"__isSmartRef__":true,"id":4940},"_Extent":{"__isSmartRef__":true,"id":4941},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4942},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4939":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4940":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4941":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4942":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4943":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4944":{"morph":{"__isSmartRef__":true,"id":4899},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4945":{"resizeWidth":true},"4946":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4947":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4948":{"updateExpanderColor":{"__isSmartRef__":true,"id":4949},"onMouseDown":{"__isSmartRef__":true,"id":4952},"isRoot":{"__isSmartRef__":true,"id":4959},"displayValue":{"__isSmartRef__":true,"id":4962},"update":{"__isSmartRef__":true,"id":4965}},"4949":{"varMapping":{"__isSmartRef__":true,"id":4950},"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":4951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4950":{"this":{"__isSmartRef__":true,"id":4899}},"4951":{},"4952":{"varMapping":{"__isSmartRef__":true,"id":4953},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":4958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4953":{"this":{"__isSmartRef__":true,"id":4899},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4954}},"4954":{"$super":{"__isSmartRef__":true,"id":4955}},"4955":{"varMapping":{"__isSmartRef__":true,"id":4956},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4956":{"obj":{"__isSmartRef__":true,"id":4899},"name":"onMouseDown"},"4957":{},"4958":{},"4959":{"varMapping":{"__isSmartRef__":true,"id":4960},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":4961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4960":{"this":{"__isSmartRef__":true,"id":4899}},"4961":{},"4962":{"varMapping":{"__isSmartRef__":true,"id":4963},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":4964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4963":{"this":{"__isSmartRef__":true,"id":4899}},"4964":{},"4965":{"varMapping":{"__isSmartRef__":true,"id":4966},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4966":{"this":{"__isSmartRef__":true,"id":4899}},"4967":{},"4968":{"_Position":{"__isSmartRef__":true,"id":4969},"renderContextTable":{"__isSmartRef__":true,"id":4970},"_Extent":{"__isSmartRef__":true,"id":4971},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4972},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4969":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4970":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4971":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4972":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4973":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4974":{"morph":{"__isSmartRef__":true,"id":4898},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4975":{"layouter":{"__isSmartRef__":true,"id":4976},"resizeWidth":true},"4976":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4898},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"4977":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4978":{"x":0,"y":760,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4979":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":4980}},"4980":{"varMapping":{"__isSmartRef__":true,"id":4981},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":4986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4981":{"this":{"__isSmartRef__":true,"id":4898},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4982}},"4982":{"$super":{"__isSmartRef__":true,"id":4983}},"4983":{"varMapping":{"__isSmartRef__":true,"id":4984},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"4984":{"obj":{"__isSmartRef__":true,"id":4898},"name":"getLayoutableSubmorphs"},"4985":{},"4986":{},"4987":{"submorphs":[{"__isSmartRef__":true,"id":4988}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5057},"derivationIds":[null],"id":"762EBCC8-DD50-421B-A3F1-74DEE1220877","renderContextTable":{"__isSmartRef__":true,"id":5062},"eventHandler":{"__isSmartRef__":true,"id":5063},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5064},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5066},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":5067},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5068},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4988":{"submorphs":[{"__isSmartRef__":true,"id":4989},{"__isSmartRef__":true,"id":5010}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5027},"derivationIds":[null],"id":"14A45770-3277-4071-9343-83A6FECD5841","renderContextTable":{"__isSmartRef__":true,"id":5032},"eventHandler":{"__isSmartRef__":true,"id":5033},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5034},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"submorphs","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":4989},"text":{"__isSmartRef__":true,"id":5010},"owner":{"__isSmartRef__":true,"id":4987},"_Position":{"__isSmartRef__":true,"id":5035},"priorExtent":{"__isSmartRef__":true,"id":5036},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5037},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"4989":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4990},"derivationIds":[null],"id":"6EBCE660-CA10-40EC-AE1E-2D320B371D9B","renderContextTable":{"__isSmartRef__":true,"id":4996},"eventHandler":{"__isSmartRef__":true,"id":4997},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4998},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":4988},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4999},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"4990":{"_Position":{"__isSmartRef__":true,"id":4991},"renderContextTable":{"__isSmartRef__":true,"id":4992},"_Extent":{"__isSmartRef__":true,"id":4993},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4994},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":4995},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"4991":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4992":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4993":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4994":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"4995":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"4996":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4997":{"morph":{"__isSmartRef__":true,"id":4989},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4998":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4999":{"toggle":{"__isSmartRef__":true,"id":5000},"toggleExpansion":{"__isSmartRef__":true,"id":5007}},"5000":{"varMapping":{"__isSmartRef__":true,"id":5001},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5001":{"this":{"__isSmartRef__":true,"id":4989},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5002}},"5002":{"$super":{"__isSmartRef__":true,"id":5003}},"5003":{"varMapping":{"__isSmartRef__":true,"id":5004},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5004":{"obj":{"__isSmartRef__":true,"id":4989},"name":"toggle"},"5005":{},"5006":{},"5007":{"varMapping":{"__isSmartRef__":true,"id":5008},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5008":{"this":{"__isSmartRef__":true,"id":4989}},"5009":{},"5010":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5011},"derivationIds":[null],"id":"44D2A926-46A1-4D3A-AE51-C2211342D42A","renderContextTable":{"__isSmartRef__":true,"id":5015},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5016},{"__isSmartRef__":true,"id":5018}],"eventHandler":{"__isSmartRef__":true,"id":5020},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5021},"priorExtent":{"__isSmartRef__":true,"id":5022},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4988},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5023},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5011":{"_Position":{"__isSmartRef__":true,"id":5012},"renderContextTable":{"__isSmartRef__":true,"id":5013},"_Extent":{"__isSmartRef__":true,"id":5014},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5012":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5013":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5014":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5015":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5016":{"style":{"__isSmartRef__":true,"id":5017},"chunkOwner":{"__isSmartRef__":true,"id":5010},"storedString":"submorphs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5017":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5018":{"style":{"__isSmartRef__":true,"id":5019},"chunkOwner":{"__isSmartRef__":true,"id":5010},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5019":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5020":{"morph":{"__isSmartRef__":true,"id":5010},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5021":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5022":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5023":{"layoutText":{"__isSmartRef__":true,"id":5024}},"5024":{"varMapping":{"__isSmartRef__":true,"id":5025},"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":5026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5025":{"this":{"__isSmartRef__":true,"id":5010}},"5026":{},"5027":{"_Position":{"__isSmartRef__":true,"id":5028},"renderContextTable":{"__isSmartRef__":true,"id":5029},"_Extent":{"__isSmartRef__":true,"id":5030},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5031},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5028":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5029":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5030":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5031":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5032":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5033":{"morph":{"__isSmartRef__":true,"id":4988},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5034":{"resizeWidth":true},"5035":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5036":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5037":{"updateExpanderColor":{"__isSmartRef__":true,"id":5038},"onMouseDown":{"__isSmartRef__":true,"id":5041},"isRoot":{"__isSmartRef__":true,"id":5048},"displayValue":{"__isSmartRef__":true,"id":5051},"update":{"__isSmartRef__":true,"id":5054}},"5038":{"varMapping":{"__isSmartRef__":true,"id":5039},"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":5040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5039":{"this":{"__isSmartRef__":true,"id":4988}},"5040":{},"5041":{"varMapping":{"__isSmartRef__":true,"id":5042},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5042":{"this":{"__isSmartRef__":true,"id":4988},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5043}},"5043":{"$super":{"__isSmartRef__":true,"id":5044}},"5044":{"varMapping":{"__isSmartRef__":true,"id":5045},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5045":{"obj":{"__isSmartRef__":true,"id":4988},"name":"onMouseDown"},"5046":{},"5047":{},"5048":{"varMapping":{"__isSmartRef__":true,"id":5049},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5049":{"this":{"__isSmartRef__":true,"id":4988}},"5050":{},"5051":{"varMapping":{"__isSmartRef__":true,"id":5052},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":5053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5052":{"this":{"__isSmartRef__":true,"id":4988}},"5053":{},"5054":{"varMapping":{"__isSmartRef__":true,"id":5055},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5055":{"this":{"__isSmartRef__":true,"id":4988}},"5056":{},"5057":{"_Position":{"__isSmartRef__":true,"id":5058},"renderContextTable":{"__isSmartRef__":true,"id":5059},"_Extent":{"__isSmartRef__":true,"id":5060},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5061},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5058":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5059":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5060":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5061":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5062":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5063":{"morph":{"__isSmartRef__":true,"id":4987},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5064":{"layouter":{"__isSmartRef__":true,"id":5065},"resizeWidth":true},"5065":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":4987},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5066":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5067":{"x":0,"y":780,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5068":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5069}},"5069":{"varMapping":{"__isSmartRef__":true,"id":5070},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5070":{"this":{"__isSmartRef__":true,"id":4987},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5071}},"5071":{"$super":{"__isSmartRef__":true,"id":5072}},"5072":{"varMapping":{"__isSmartRef__":true,"id":5073},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5073":{"obj":{"__isSmartRef__":true,"id":4987},"name":"getLayoutableSubmorphs"},"5074":{},"5075":{},"5076":{"submorphs":[{"__isSmartRef__":true,"id":5077}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5146},"derivationIds":[null],"id":"BF4513D3-4641-4BB7-A09A-E322565242CC","renderContextTable":{"__isSmartRef__":true,"id":5151},"eventHandler":{"__isSmartRef__":true,"id":5152},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5153},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5155},"owner":{"__isSmartRef__":true,"id":1606},"_Position":{"__isSmartRef__":true,"id":5156},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5157},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5077":{"submorphs":[{"__isSmartRef__":true,"id":5078},{"__isSmartRef__":true,"id":5099}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5116},"derivationIds":[null],"id":"C6F7DC8F-9D9B-4682-BF64-6EAF267F3BFF","renderContextTable":{"__isSmartRef__":true,"id":5121},"eventHandler":{"__isSmartRef__":true,"id":5122},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5123},"grabbingEnabled":false,"draggingEnabled":false,"data":[{"__isSmartRef__":true,"id":314}],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":1495},"label":"textChunks","children":[],"parent":{"__isSmartRef__":true,"id":1498},"expander":{"__isSmartRef__":true,"id":5078},"text":{"__isSmartRef__":true,"id":5099},"owner":{"__isSmartRef__":true,"id":5076},"_Position":{"__isSmartRef__":true,"id":5124},"priorExtent":{"__isSmartRef__":true,"id":5125},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5126},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5079},"derivationIds":[null],"id":"83445D74-C760-4755-8D51-92E427B1B5E9","renderContextTable":{"__isSmartRef__":true,"id":5085},"eventHandler":{"__isSmartRef__":true,"id":5086},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5087},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5077},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5088},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5079":{"_Position":{"__isSmartRef__":true,"id":5080},"renderContextTable":{"__isSmartRef__":true,"id":5081},"_Extent":{"__isSmartRef__":true,"id":5082},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5083},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1505},"_Fill":{"__isSmartRef__":true,"id":5084},"__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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5083":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5084":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5085":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5086":{"morph":{"__isSmartRef__":true,"id":5078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5087":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5088":{"toggle":{"__isSmartRef__":true,"id":5089},"toggleExpansion":{"__isSmartRef__":true,"id":5096}},"5089":{"varMapping":{"__isSmartRef__":true,"id":5090},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5090":{"this":{"__isSmartRef__":true,"id":5078},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5091}},"5091":{"$super":{"__isSmartRef__":true,"id":5092}},"5092":{"varMapping":{"__isSmartRef__":true,"id":5093},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5093":{"obj":{"__isSmartRef__":true,"id":5078},"name":"toggle"},"5094":{},"5095":{},"5096":{"varMapping":{"__isSmartRef__":true,"id":5097},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5097":{"this":{"__isSmartRef__":true,"id":5078}},"5098":{},"5099":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5100},"derivationIds":[null],"id":"890EE658-2306-4DE5-AF5C-15C0595B840D","renderContextTable":{"__isSmartRef__":true,"id":5104},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5105},{"__isSmartRef__":true,"id":5107}],"eventHandler":{"__isSmartRef__":true,"id":5109},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5110},"priorExtent":{"__isSmartRef__":true,"id":5111},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5077},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5112},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5100":{"_Position":{"__isSmartRef__":true,"id":5101},"renderContextTable":{"__isSmartRef__":true,"id":5102},"_Extent":{"__isSmartRef__":true,"id":5103},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5101":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5102":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5103":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5104":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5105":{"style":{"__isSmartRef__":true,"id":5106},"chunkOwner":{"__isSmartRef__":true,"id":5099},"storedString":"textChunks","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5106":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5107":{"style":{"__isSmartRef__":true,"id":5108},"chunkOwner":{"__isSmartRef__":true,"id":5099},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5108":{"color":{"__isSmartRef__":true,"id":1532},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5109":{"morph":{"__isSmartRef__":true,"id":5099},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5110":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5111":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5112":{"layoutText":{"__isSmartRef__":true,"id":5113}},"5113":{"varMapping":{"__isSmartRef__":true,"id":5114},"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":5115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5114":{"this":{"__isSmartRef__":true,"id":5099}},"5115":{},"5116":{"_Position":{"__isSmartRef__":true,"id":5117},"renderContextTable":{"__isSmartRef__":true,"id":5118},"_Extent":{"__isSmartRef__":true,"id":5119},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5120},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5117":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5118":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5119":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5120":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5121":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5122":{"morph":{"__isSmartRef__":true,"id":5077},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5123":{"resizeWidth":true},"5124":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5125":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5126":{"updateExpanderColor":{"__isSmartRef__":true,"id":5127},"onMouseDown":{"__isSmartRef__":true,"id":5130},"isRoot":{"__isSmartRef__":true,"id":5137},"displayValue":{"__isSmartRef__":true,"id":5140},"update":{"__isSmartRef__":true,"id":5143}},"5127":{"varMapping":{"__isSmartRef__":true,"id":5128},"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":5129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5128":{"this":{"__isSmartRef__":true,"id":5077}},"5129":{},"5130":{"varMapping":{"__isSmartRef__":true,"id":5131},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5131":{"this":{"__isSmartRef__":true,"id":5077},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5132}},"5132":{"$super":{"__isSmartRef__":true,"id":5133}},"5133":{"varMapping":{"__isSmartRef__":true,"id":5134},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5134":{"obj":{"__isSmartRef__":true,"id":5077},"name":"onMouseDown"},"5135":{},"5136":{},"5137":{"varMapping":{"__isSmartRef__":true,"id":5138},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5138":{"this":{"__isSmartRef__":true,"id":5077}},"5139":{},"5140":{"varMapping":{"__isSmartRef__":true,"id":5141},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":5142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5141":{"this":{"__isSmartRef__":true,"id":5077}},"5142":{},"5143":{"varMapping":{"__isSmartRef__":true,"id":5144},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5144":{"this":{"__isSmartRef__":true,"id":5077}},"5145":{},"5146":{"_Position":{"__isSmartRef__":true,"id":5147},"renderContextTable":{"__isSmartRef__":true,"id":5148},"_Extent":{"__isSmartRef__":true,"id":5149},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5150},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5147":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5148":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5149":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5150":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5151":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5152":{"morph":{"__isSmartRef__":true,"id":5076},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5153":{"layouter":{"__isSmartRef__":true,"id":5154},"resizeWidth":true},"5154":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5076},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5155":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5156":{"x":0,"y":800,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5157":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5158}},"5158":{"varMapping":{"__isSmartRef__":true,"id":5159},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5159":{"this":{"__isSmartRef__":true,"id":5076},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5160}},"5160":{"$super":{"__isSmartRef__":true,"id":5161}},"5161":{"varMapping":{"__isSmartRef__":true,"id":5162},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5162":{"obj":{"__isSmartRef__":true,"id":5076},"name":"getLayoutableSubmorphs"},"5163":{},"5164":{},"5165":{"_Position":{"__isSmartRef__":true,"id":5166},"renderContextTable":{"__isSmartRef__":true,"id":5167},"_Extent":{"__isSmartRef__":true,"id":5168},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5169},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5166":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5167":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5168":{"x":100,"y":820,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5169":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5170":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5171":{"morph":{"__isSmartRef__":true,"id":1606},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5172":{"layouter":{"__isSmartRef__":true,"id":5173},"resizeWidth":true},"5173":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1606},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5174":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5175":{"x":100,"y":820,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5176":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5177},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":5184}},"5177":{"varMapping":{"__isSmartRef__":true,"id":5178},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5178":{"this":{"__isSmartRef__":true,"id":1606},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5179}},"5179":{"$super":{"__isSmartRef__":true,"id":5180}},"5180":{"varMapping":{"__isSmartRef__":true,"id":5181},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5181":{"obj":{"__isSmartRef__":true,"id":1606},"name":"getLayoutableSubmorphs"},"5182":{},"5183":{},"5184":{"varMapping":{"__isSmartRef__":true,"id":5185},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5185":{"this":{"__isSmartRef__":true,"id":1606}},"5186":{},"5187":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5188":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5189}},"5189":{"varMapping":{"__isSmartRef__":true,"id":5190},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5190":{"this":{"__isSmartRef__":true,"id":1595},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5191}},"5191":{"$super":{"__isSmartRef__":true,"id":5192}},"5192":{"varMapping":{"__isSmartRef__":true,"id":5193},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5193":{"obj":{"__isSmartRef__":true,"id":1595},"name":"getLayoutableSubmorphs"},"5194":{},"5195":{},"5196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5197":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5198":{"updateExpanderColor":{"__isSmartRef__":true,"id":5199},"onMouseDown":{"__isSmartRef__":true,"id":5202},"isRoot":{"__isSmartRef__":true,"id":5209},"displayValue":{"__isSmartRef__":true,"id":5212},"update":{"__isSmartRef__":true,"id":5215}},"5199":{"varMapping":{"__isSmartRef__":true,"id":5200},"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":5201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5200":{"this":{"__isSmartRef__":true,"id":1548}},"5201":{},"5202":{"varMapping":{"__isSmartRef__":true,"id":5203},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5203":{"this":{"__isSmartRef__":true,"id":1548},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5204}},"5204":{"$super":{"__isSmartRef__":true,"id":5205}},"5205":{"varMapping":{"__isSmartRef__":true,"id":5206},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5206":{"obj":{"__isSmartRef__":true,"id":1548},"name":"onMouseDown"},"5207":{},"5208":{},"5209":{"varMapping":{"__isSmartRef__":true,"id":5210},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5210":{"this":{"__isSmartRef__":true,"id":1548}},"5211":{},"5212":{"varMapping":{"__isSmartRef__":true,"id":5213},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":5214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5213":{"this":{"__isSmartRef__":true,"id":1548}},"5214":{},"5215":{"varMapping":{"__isSmartRef__":true,"id":5216},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5216":{"this":{"__isSmartRef__":true,"id":1548}},"5217":{},"5218":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5219":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5220":{"updateExpanderColor":{"__isSmartRef__":true,"id":5221},"onMouseDown":{"__isSmartRef__":true,"id":5224},"isRoot":{"__isSmartRef__":true,"id":5231},"displayValue":{"__isSmartRef__":true,"id":5234},"update":{"__isSmartRef__":true,"id":5237}},"5221":{"varMapping":{"__isSmartRef__":true,"id":5222},"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":5223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5222":{"this":{"__isSmartRef__":true,"id":1498}},"5223":{},"5224":{"varMapping":{"__isSmartRef__":true,"id":5225},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5225":{"this":{"__isSmartRef__":true,"id":1498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5226}},"5226":{"$super":{"__isSmartRef__":true,"id":5227}},"5227":{"varMapping":{"__isSmartRef__":true,"id":5228},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5228":{"obj":{"__isSmartRef__":true,"id":1498},"name":"onMouseDown"},"5229":{},"5230":{},"5231":{"varMapping":{"__isSmartRef__":true,"id":5232},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5232":{"this":{"__isSmartRef__":true,"id":1498}},"5233":{},"5234":{"varMapping":{"__isSmartRef__":true,"id":5235},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":5236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5235":{"this":{"__isSmartRef__":true,"id":1498}},"5236":{},"5237":{"varMapping":{"__isSmartRef__":true,"id":5238},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5238":{"this":{"__isSmartRef__":true,"id":1498}},"5239":{},"5240":{"_Position":{"__isSmartRef__":true,"id":5241},"renderContextTable":{"__isSmartRef__":true,"id":5242},"_Extent":{"__isSmartRef__":true,"id":5243},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5244},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5241":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5242":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5243":{"x":100,"y":840,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5244":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5245":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5246":{"morph":{"__isSmartRef__":true,"id":1497},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5247":{"layouter":{"__isSmartRef__":true,"id":5248},"resizeWidth":true},"5248":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1497},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5249":{"x":100,"y":820,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5250":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5251}},"5251":{"varMapping":{"__isSmartRef__":true,"id":5252},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5252":{"this":{"__isSmartRef__":true,"id":1497},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5253}},"5253":{"$super":{"__isSmartRef__":true,"id":5254}},"5254":{"varMapping":{"__isSmartRef__":true,"id":5255},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5255":{"obj":{"__isSmartRef__":true,"id":1497},"name":"getLayoutableSubmorphs"},"5256":{},"5257":{},"5258":{"_Position":{"__isSmartRef__":true,"id":5259},"renderContextTable":{"__isSmartRef__":true,"id":5260},"_Extent":{"__isSmartRef__":true,"id":5261},"_ClipMode":"scroll","_Padding":{"__isSmartRef__":true,"id":5262},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5259":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5260":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5261":{"x":211.96194292390481,"y":253.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5262":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5263":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5264":{"morph":{"__isSmartRef__":true,"id":1496},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5265":{"x":10,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5266":{"resizeWidth":true,"resizeHeight":true},"5267":{"x":231.96194292390481,"y":273.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5268":{"setClipModeHTML":{"__isSmartRef__":true,"id":5269}},"5269":{"varMapping":{"__isSmartRef__":true,"id":5270},"source":"function setClipModeHTML(ctx, modeString) {\n $super(ctx, modeString);\n ctx.morphNode.style['overflow-x'] = 'hidden';\n }","funcProperties":{"__isSmartRef__":true,"id":5275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5270":{"this":{"__isSmartRef__":true,"id":1496},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5271}},"5271":{"$super":{"__isSmartRef__":true,"id":5272}},"5272":{"varMapping":{"__isSmartRef__":true,"id":5273},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5273":{"obj":{"__isSmartRef__":true,"id":1496},"name":"setClipModeHTML"},"5274":{},"5275":{},"5276":{"target":{"__isSmartRef__":true,"id":1495},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":9811,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"5277":{"position":{"__isSmartRef__":true,"id":5278},"_Extent":{"__isSmartRef__":true,"id":5279},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5280},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5281},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5282},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5278":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5279":{"x":231.96194292390481,"y":273.99799699599487,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5280":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"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":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5283":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5284":{"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"},"5285":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5286":{"morph":{"__isSmartRef__":true,"id":1495},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5287":{"x":230.96194292390481,"y":273.99799699599487,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5288":{"layouter":{"__isSmartRef__":true,"id":5289},"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false,"adjustForNewBounds":true},"5289":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":1495},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"5290":{"x":164.35052570087606,"y":-15.96995493992489,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5291":{"border":{"__isSmartRef__":true,"id":1505},"contractedExpander":{"__isSmartRef__":true,"id":2862},"expandedExpander":{"__isSmartRef__":true,"id":1506},"focusedText":{"__isSmartRef__":true,"id":1526},"emphasizedText":{"__isSmartRef__":true,"id":1532}},"5292":{"size":10},"5293":{"wrapperExtent":{"__isSmartRef__":true,"id":5294},"expanderExtent":{"__isSmartRef__":true,"id":5295},"expanderOffset":{"__isSmartRef__":true,"id":5296},"textOffset":{"__isSmartRef__":true,"id":5297},"levelIndent":10,"maxTextWidth":500},"5294":{"x":0,"y":0,"width":100,"height":18,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5295":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5296":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5297":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5298":{"renderTree":{"__isSmartRef__":true,"id":5299},"createTreeNode":{"__isSmartRef__":true,"id":5303},"createTreeWrapper":{"__isSmartRef__":true,"id":5307},"reset":{"__isSmartRef__":true,"id":5311},"createTreeNodeMorph":{"__isSmartRef__":true,"id":5315},"createExpanderButton":{"__isSmartRef__":true,"id":5319},"createPropertyText":{"__isSmartRef__":true,"id":5323},"createScrollClip":{"__isSmartRef__":true,"id":5327},"resetDefaults":{"__isSmartRef__":true,"id":5331},"testMutabilityOf":{"__isSmartRef__":true,"id":5335},"getClassNameOf":{"__isSmartRef__":true,"id":5339},"getTypeOf":{"__isSmartRef__":true,"id":5343},"addScriptsToTreeNode":{"__isSmartRef__":true,"id":5347},"addScriptsToExpander":{"__isSmartRef__":true,"id":5351},"containsValues":{"__isSmartRef__":true,"id":5355},"getDisplayStringFor":{"__isSmartRef__":true,"id":5359},"getTypeStringFor":{"__isSmartRef__":true,"id":5363},"update":{"__isSmartRef__":true,"id":5367},"addScriptsToText":{"__isSmartRef__":true,"id":5371},"toggleAll":{"__isSmartRef__":true,"id":5375}},"5299":{"varMapping":{"__isSmartRef__":true,"id":5300},"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":5301},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5300":{"this":{"__isSmartRef__":true,"id":1495}},"5301":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5302}},"5302":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:42:55 GMT-0700 (PDT)"},"5303":{"varMapping":{"__isSmartRef__":true,"id":5304},"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":5305},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5304":{"this":{"__isSmartRef__":true,"id":1495}},"5305":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5306}},"5306":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:43:34 GMT-0700 (PDT)"},"5307":{"varMapping":{"__isSmartRef__":true,"id":5308},"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":5309},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5308":{"this":{"__isSmartRef__":true,"id":1495}},"5309":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5310}},"5310":{"isSerializedDate":true,"string":"Tue Sep 20 2011 08:05:52 GMT-0700 (PDT)"},"5311":{"varMapping":{"__isSmartRef__":true,"id":5312},"source":"function reset() {\n this.removeAllMorphs();\n this.resetDefaults();\n this.rootNode = null; \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":5313},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5312":{"this":{"__isSmartRef__":true,"id":1495}},"5313":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5314}},"5314":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:41:57 GMT-0700 (PDT)"},"5315":{"varMapping":{"__isSmartRef__":true,"id":5316},"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":5317},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5316":{"this":{"__isSmartRef__":true,"id":1495}},"5317":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5318}},"5318":{"isSerializedDate":true,"string":"Tue Oct 25 2011 10:24:35 GMT-0700 (PDT)"},"5319":{"varMapping":{"__isSmartRef__":true,"id":5320},"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":5321},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5320":{"this":{"__isSmartRef__":true,"id":1495}},"5321":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5322}},"5322":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:32:58 GMT-0700 (PDT)"},"5323":{"varMapping":{"__isSmartRef__":true,"id":5324},"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":5325},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5324":{"this":{"__isSmartRef__":true,"id":1495}},"5325":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5326}},"5326":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:18:07 GMT-0700 (PDT)"},"5327":{"varMapping":{"__isSmartRef__":true,"id":5328},"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":5329},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5328":{"this":{"__isSmartRef__":true,"id":1495}},"5329":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5330}},"5330":{"isSerializedDate":true,"string":"Mon Sep 19 2011 10:54:00 GMT-0700 (PDT)"},"5331":{"varMapping":{"__isSmartRef__":true,"id":5332},"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":5333},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5332":{"this":{"__isSmartRef__":true,"id":1495}},"5333":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5334}},"5334":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:38:04 GMT-0700 (PDT)"},"5335":{"varMapping":{"__isSmartRef__":true,"id":5336},"source":"function testMutabilityOf(value) {\n var type = this.getTypeOf(value);\n return (type === \"array\" || type === \"object\");\n}","funcProperties":{"__isSmartRef__":true,"id":5337},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5336":{"this":{"__isSmartRef__":true,"id":1495}},"5337":{"timestamp":{"__isSmartRef__":true,"id":5338},"user":"fbo","tags":[]},"5338":{"isSerializedDate":true,"string":"Fri Dec 02 2011 15:05:37 GMT-0800 (PST)"},"5339":{"varMapping":{"__isSmartRef__":true,"id":5340},"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":5341},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5340":{"this":{"__isSmartRef__":true,"id":1495}},"5341":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5342}},"5342":{"isSerializedDate":true,"string":"Tue Oct 25 2011 13:35:56 GMT-0700 (PDT)"},"5343":{"varMapping":{"__isSmartRef__":true,"id":5344},"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 } else if (value instanceof Date) {\n return \"date\";\n }\n } else {\n return null;\n }\n } \n return type;\n}","funcProperties":{"__isSmartRef__":true,"id":5345},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5344":{"this":{"__isSmartRef__":true,"id":1495}},"5345":{"timestamp":{"__isSmartRef__":true,"id":5346},"user":"fbo","tags":[]},"5346":{"isSerializedDate":true,"string":"Fri Dec 02 2011 15:04:45 GMT-0800 (PST)"},"5347":{"varMapping":{"__isSmartRef__":true,"id":5348},"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 isRoot() {\n return (this.parent === null || this.parent === undefined);\n });\n\n treeNode.addScript(function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n });\n \n treeNode.addScript(function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":5349},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5348":{"this":{"__isSmartRef__":true,"id":1495}},"5349":{"timestamp":{"__isSmartRef__":true,"id":5350},"user":"lauritz","tags":[]},"5350":{"isSerializedDate":true,"string":"Mon Dec 05 2011 15:52:51 GMT-0800 (PST)"},"5351":{"varMapping":{"__isSmartRef__":true,"id":5352},"source":"function addScriptsToExpander(expander) {\n\n expander.addScript(function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n });\n\n expander.addScript(function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && 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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":5353},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5352":{"this":{"__isSmartRef__":true,"id":1495}},"5353":{"timestamp":{"__isSmartRef__":true,"id":5354},"user":"lauritz","tags":[]},"5354":{"isSerializedDate":true,"string":"Wed Nov 30 2011 14:21:34 GMT-0800 (PST)"},"5355":{"varMapping":{"__isSmartRef__":true,"id":5356},"source":"function containsValues(value) {\n return (this.testMutabilityOf(value) && Properties.own(value).length > 0);\n}","funcProperties":{"__isSmartRef__":true,"id":5357},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5356":{"this":{"__isSmartRef__":true,"id":1495}},"5357":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5358}},"5358":{"isSerializedDate":true,"string":"Tue Sep 20 2011 13:32:20 GMT-0700 (PDT)"},"5359":{"varMapping":{"__isSmartRef__":true,"id":5360},"source":"function getDisplayStringFor(treeNode) {\n return treeNode.label + \": \" + (this.testMutabilityOf(treeNode.data) ? this.getTypeStringFor(treeNode.data) : treeNode.data)\n}","funcProperties":{"__isSmartRef__":true,"id":5361},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5360":{"this":{"__isSmartRef__":true,"id":1495}},"5361":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5362}},"5362":{"isSerializedDate":true,"string":"Mon Sep 26 2011 10:07:44 GMT-0700 (PDT)"},"5363":{"varMapping":{"__isSmartRef__":true,"id":5364},"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 displayTypeAndEmptiness(\"date\", \"<\", \">\");\n }\n return name;\n}","funcProperties":{"__isSmartRef__":true,"id":5365},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5364":{"this":{"__isSmartRef__":true,"id":1495}},"5365":{"timestamp":{"__isSmartRef__":true,"id":5366},"user":"fbo","tags":[]},"5366":{"isSerializedDate":true,"string":"Fri Dec 02 2011 15:05:17 GMT-0800 (PST)"},"5367":{"varMapping":{"__isSmartRef__":true,"id":5368},"source":"function update() {\n this.rootNode.update();\n}","funcProperties":{"__isSmartRef__":true,"id":5369},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5368":{"this":{"__isSmartRef__":true,"id":1495}},"5369":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5370}},"5370":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:42:27 GMT-0700 (PDT)"},"5371":{"varMapping":{"__isSmartRef__":true,"id":5372},"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":5373},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5372":{"this":{"__isSmartRef__":true,"id":1495}},"5373":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5374}},"5374":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:16:48 GMT-0700 (PDT)"},"5375":{"varMapping":{"__isSmartRef__":true,"id":5376},"source":"function toggleAll() {\n\n if (!this.rootNode) return;\n\n try {\n JSON.stringify(this.rootNode.data);\n } catch (e) {\n // probably a circular structure\n return;\n }\n\n var toggleChildren = function (node) {\n\n if (!node.children) return;\n\n (function() {\n node.children.forEach(function (each) {\n each.expander.toggleExpansion();\n toggleChildren(each);\n });\n }).bind(this).delay(0); // asynchronous\n }\n\n toggleChildren(this.rootNode);\n \n}","funcProperties":{"__isSmartRef__":true,"id":5377},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5376":{"this":{"__isSmartRef__":true,"id":1495}},"5377":{"timestamp":{"__isSmartRef__":true,"id":5378},"user":"lauritz","tags":[]},"5378":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:58:11 GMT-0800 (PST)"},"5379":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5380},"id":"B1875B0F-0687-444A-893E-C1A2DAE17586","renderContextTable":{"__isSmartRef__":true,"id":5387},"textChunks":[{"__isSmartRef__":true,"id":5388},{"__isSmartRef__":true,"id":5390},{"__isSmartRef__":true,"id":5392}],"eventHandler":{"__isSmartRef__":true,"id":5394},"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":5395},"priorExtent":{"__isSmartRef__":true,"id":5396},"_MaxTextWidth":221.96194292390481,"_MinTextWidth":221.96194292390481,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":5397},"doitContext":{"__isSmartRef__":true,"id":306},"previousSelection":[17,17],"priorSelectionRange":[71,71],"charsReplaced":"","lastFindLoc":49,"__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"isBeingDragged":false,"showsHalos":false,"name":"Workspace","owner":{"__isSmartRef__":true,"id":1494},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":5398},"isCopyMorphRef":true,"morphRefId":1,"scriptAnnotations":{"__isSmartRef__":true,"id":5399},"lastDragTime":1317079672221,"derivationIds":[372,"3BBD270B-A828-436A-915C-D23688CF2067","D0890AA7-6E65-4B35-9600-1AD66DF96797","243534E4-AE49-45EC-9DB9-384D7DE4B994","251CC01A-7FDF-4357-9313-99DE732BDF7B"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5402},"__LivelyClassName__":"lively.morphic.Text"},"5380":{"_Position":{"__isSmartRef__":true,"id":5381},"renderContextTable":{"__isSmartRef__":true,"id":5382},"_Extent":{"__isSmartRef__":true,"id":5383},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":5384},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5385},"_Fill":{"__isSmartRef__":true,"id":5386},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5381":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5382":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5383":{"x":231.96194292390481,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5384":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5385":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5386":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5387":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5388":{"style":{"__isSmartRef__":true,"id":5389},"chunkOwner":{"__isSmartRef__":true,"id":5379},"storedString":"this.getContent()=cell(1,0)+cell(1,0)\n\nthis.put(\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5389":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5390":{"style":{"__isSmartRef__":true,"id":5391},"chunkOwner":{"__isSmartRef__":true,"id":5379},"storedString":"=cell(1,0)+cell(1,1)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5391":{"color":"rgb(0,0,0)","fontFamily":"Helvetica","fontSize":"13px","fontStyle":"normal","fontVariant":"normal","fontWeight":"normal","letterSpacing":"normal","lineHeight":"normal","orphans":"2","textAlign":"-webkit-auto","textIndent":"0px","textTransform":"none","whiteSpace":"pre-wrap","widows":"2","wordSpacing":"0px","webkitTextSizeAdjust":"auto","webkitTextStrokeWidth":"0px","backgroundColor":"rgb(243,243,243)","display":"inline!important","float":"none","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5392":{"style":{"__isSmartRef__":true,"id":5393},"chunkOwner":{"__isSmartRef__":true,"id":5379},"storedString":"\")","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5393":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5394":{"morph":{"__isSmartRef__":true,"id":5379},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5395":{"x":10,"y":298.99799699599487,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5396":{"x":231.96194292390481,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5397":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true,"adjustForNewBounds":true},"5398":{"x":164.35052570087606,"y":-17.252879506132672,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5399":{"reset":{"__isSmartRef__":true,"id":5400}},"5400":{"time":{"__isSmartRef__":true,"id":5401},"user":"lauritz"},"5401":{"isSerializedDate":true,"string":"Tue Nov 15 2011 14:03:51 GMT-0800 (PST)"},"5402":{"reset":{"__isSmartRef__":true,"id":5403}},"5403":{"varMapping":{"__isSmartRef__":true,"id":5404},"source":"function reset() {\n this.doitContext = null;\n this.setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":5405},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5404":{"this":{"__isSmartRef__":true,"id":5379}},"5405":{},"5406":{"position":{"__isSmartRef__":true,"id":5407},"_Extent":{"__isSmartRef__":true,"id":5408},"_BorderWidth":1.4500000000000002,"_BorderColor":{"__isSmartRef__":true,"id":5409},"_Fill":{"__isSmartRef__":true,"id":5410},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5411},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5412},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5407":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5408":{"x":251.96194292390481,"y":389.9999999999999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5409":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5410":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5411":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5412":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5413":{"x":0,"y":19,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5414":{"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":5415}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5415":{"date":{"__isSmartRef__":true,"id":5416},"author":"lauritz","message":"Disabled grabbing and dragging on other submorphs as well..."},"5416":{"isSerializedDate":true,"string":"Tue Oct 25 2011 11:21:08 GMT-0700 (PDT)"},"5417":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5418":{"morph":{"__isSmartRef__":true,"id":1494},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5419":{"x":250.96194292390481,"y":389.9999999999999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5420":{"x":191.9999999999999,"y":-16.00000000000128,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5421":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true,"layouter":{"__isSmartRef__":true,"id":5422}},"5422":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":1494},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"5423":{"reset":{"__isSmartRef__":true,"id":5424},"moveFocusTo":{"__isSmartRef__":true,"id":5428},"explore":{"__isSmartRef__":true,"id":5432},"toggleAll":{"__isSmartRef__":true,"id":5436}},"5424":{"varMapping":{"__isSmartRef__":true,"id":5425},"source":"function reset() {\n this.workspace.reset();\n this.treeView.reset();\n this.focusedNode = null;\n}","funcProperties":{"__isSmartRef__":true,"id":5426},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5425":{"this":{"__isSmartRef__":true,"id":1494}},"5426":{"timestamp":{"__isSmartRef__":true,"id":5427},"user":"lauritz","tags":[]},"5427":{"isSerializedDate":true,"string":"Tue Sep 20 2011 16:48:08 GMT-0700 (PDT)"},"5428":{"varMapping":{"__isSmartRef__":true,"id":5429},"source":"function moveFocusTo(focusedNode) {\n\n // set workspace context\n var previouslyFocusedNode = this.focusedNode;\n this.focusedNode = focusedNode;\n this.workspace.doitContext = this.focusedNode.data;\n\n // display focus\n if (previouslyFocusedNode && previouslyFocusedNode.setFill) \n previouslyFocusedNode.text.setFill(null);\n this.focusedNode.text.setFill(this.focusedNode.treeView.colors.focusedText);\n this.focusedNode.expander.toggle();\n}","funcProperties":{"__isSmartRef__":true,"id":5430},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5429":{"this":{"__isSmartRef__":true,"id":1494}},"5430":{"timestamp":{"__isSmartRef__":true,"id":5431},"user":"lauritz","tags":[]},"5431":{"isSerializedDate":true,"string":"Tue Dec 13 2011 14:21:02 GMT-0800 (PST)"},"5432":{"varMapping":{"__isSmartRef__":true,"id":5433},"source":"function explore(object) {\n this.reset();\n this.treeView.renderTree(object);\n\n this.moveFocusTo(this.treeView.rootNode);\n this.workspace.setTextString(\"this\");\n}","funcProperties":{"__isSmartRef__":true,"id":5434},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5433":{"this":{"__isSmartRef__":true,"id":1494}},"5434":{"timestamp":{"__isSmartRef__":true,"id":5435},"user":"lauritz","tags":[]},"5435":{"isSerializedDate":true,"string":"Tue Dec 13 2011 14:21:07 GMT-0800 (PST)"},"5436":{"varMapping":{"__isSmartRef__":true,"id":5437},"source":"function toggleAll() {\n this.treeView.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":5438},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5437":{"this":{"__isSmartRef__":true,"id":1494}},"5438":{"timestamp":{"__isSmartRef__":true,"id":5439},"user":"lauritz","tags":[]},"5439":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:40:54 GMT-0800 (PST)"},"5440":{"submorphs":[],"scripts":[],"id":"7D827D30-9305-44B1-9824-056223DCB0E6","shape":{"__isSmartRef__":true,"id":5441},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5448},"showsHalos":false,"name":"ResizeCorner3","partsBinMetaInfo":{"__isSmartRef__":true,"id":5449},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":5450},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":5451},"eventHandler":{"__isSmartRef__":true,"id":5452},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":1493},"priorExtent":{"__isSmartRef__":true,"id":5453},"distanceToDragEvent":{"__isSmartRef__":true,"id":5454},"derivationIds":[373,"EE44AF79-9BA3-4128-9A82-23CA02A35CBA","2DF62558-574F-4341-A678-C082E7B62474","0B40BDFA-37E3-4097-9157-BE8CCF94B0A1","3600D2AA-3070-493B-839E-BF41427E5A08"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5455},"__LivelyClassName__":"lively.morphic.Box"},"5441":{"position":{"__isSmartRef__":true,"id":5442},"_Extent":{"__isSmartRef__":true,"id":5443},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5444},"_Fill":{"__isSmartRef__":true,"id":5445},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5446},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5447},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5442":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5443":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5444":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5445":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5446":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5447":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5448":{"x":238.49672894514134,"y":396.92138184230294,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5449":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5450":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5451":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5452":{"morph":{"__isSmartRef__":true,"id":5440},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5453":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5454":{"x":29.503271054858715,"y":-15.921381842302935,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5455":{"onDrag":{"__isSmartRef__":true,"id":5456},"onDragEnd":{"__isSmartRef__":true,"id":5463},"onDragStart":{"__isSmartRef__":true,"id":5470}},"5456":{"varMapping":{"__isSmartRef__":true,"id":5457},"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":5462},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5457":{"this":{"__isSmartRef__":true,"id":5440},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5458}},"5458":{"$super":{"__isSmartRef__":true,"id":5459}},"5459":{"varMapping":{"__isSmartRef__":true,"id":5460},"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":5461},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5460":{"obj":{"__isSmartRef__":true,"id":5440},"name":"onDrag"},"5461":{},"5462":{},"5463":{"varMapping":{"__isSmartRef__":true,"id":5464},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":5469},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5464":{"this":{"__isSmartRef__":true,"id":5440},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5465}},"5465":{"$super":{"__isSmartRef__":true,"id":5466}},"5466":{"varMapping":{"__isSmartRef__":true,"id":5467},"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":5468},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5467":{"obj":{"__isSmartRef__":true,"id":5440},"name":"onDragEnd"},"5468":{},"5469":{},"5470":{"varMapping":{"__isSmartRef__":true,"id":5471},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":5476},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5471":{"this":{"__isSmartRef__":true,"id":5440},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5472}},"5472":{"$super":{"__isSmartRef__":true,"id":5473}},"5473":{"varMapping":{"__isSmartRef__":true,"id":5474},"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":5475},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5474":{"obj":{"__isSmartRef__":true,"id":5440},"name":"onDragStart"},"5475":{},"5476":{},"5477":{"submorphs":[{"__isSmartRef__":true,"id":5478},{"__isSmartRef__":true,"id":5492},{"__isSmartRef__":true,"id":5539},{"__isSmartRef__":true,"id":5574}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5610},"id":"4FA3C8C1-D763-4453-953C-EC5268FAA8B6","renderContextTable":{"__isSmartRef__":true,"id":5621},"eventHandler":{"__isSmartRef__":true,"id":5622},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5623},"_Position":{"__isSmartRef__":true,"id":5624},"windowMorph":{"__isSmartRef__":true,"id":1493},"label":{"__isSmartRef__":true,"id":5478},"closeButton":{"__isSmartRef__":true,"id":5492},"menuButton":{"__isSmartRef__":true,"id":5539},"collapseButton":{"__isSmartRef__":true,"id":5574},"priorExtent":{"__isSmartRef__":true,"id":5625},"owner":{"__isSmartRef__":true,"id":1493},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[374,"CFE848EF-BE01-4E69-BBD0-796826FDBA2C","27B1F973-A4A1-49ED-8194-15A2125092E5","1AAC1E25-BFD3-4949-82B7-CA49C7FE30CC","AAFC6ADC-565B-42D5-B95A-49BB4FAE6F07"],"__LivelyClassName__":"lively.morphic.TitleBar"},"5478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5479},"id":"1AADEC3E-5B4D-469D-9A44-3E291BA8E681","renderContextTable":{"__isSmartRef__":true,"id":5485},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5486}],"eventHandler":{"__isSmartRef__":true,"id":5488},"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":5489},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5477},"priorExtent":{"__isSmartRef__":true,"id":5490},"_MaxTextWidth":192.49672894514134,"_MinTextWidth":192.49672894514134,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":5491},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[375,"73673BCB-A91C-4ECA-A36D-D85A24B4F4A3","2EE1A4B9-842D-4C63-ABEA-21DC74163CEE","3F973521-D5D9-4B44-BCF8-822B923644E8","F50BD739-1DA1-4EB3-9653-7B3145EA8817"],"__LivelyClassName__":"lively.morphic.Text"},"5479":{"_Position":{"__isSmartRef__":true,"id":5480},"renderContextTable":{"__isSmartRef__":true,"id":5481},"_Extent":{"__isSmartRef__":true,"id":5482},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5483},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5484},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5480":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"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":192.49672894514134,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5483":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5484":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5485":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5486":{"style":{"__isSmartRef__":true,"id":5487},"chunkOwner":{"__isSmartRef__":true,"id":5478},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Explorer","__LivelyClassName__":"lively.morphic.TextChunk"},"5487":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5488":{"morph":{"__isSmartRef__":true,"id":5478},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5489":{"resizeWidth":true},"5490":{"x":192.49672894514134,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5491":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5492":{"submorphs":[{"__isSmartRef__":true,"id":5493}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5505},"id":"B888B45C-80C3-4DE2-92B3-4BD81215EE5F","renderContextTable":{"__isSmartRef__":true,"id":5521},"eventHandler":{"__isSmartRef__":true,"id":5522},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":5523},"priorExtent":{"__isSmartRef__":true,"id":5524},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5511},"lighterFill":{"__isSmartRef__":true,"id":5525},"label":{"__isSmartRef__":true,"id":5493},"owner":{"__isSmartRef__":true,"id":5477},"layout":{"__isSmartRef__":true,"id":5534},"attributeConnections":[{"__isSmartRef__":true,"id":5535},{"__isSmartRef__":true,"id":5537}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[376,"C3AC01F3-7977-4D0A-A42C-700DE29F8F8E","A9533421-3987-49B1-B8FE-11D3B48B77B3","EC79C6DC-0809-4378-8061-032B4DD2D496","4DB70E9E-760D-401A-9BAD-25367B78CF72"],"__LivelyClassName__":"lively.morphic.WindowControl"},"5493":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5494},"id":"73F46CC0-F465-4248-9881-330B7F50CB06","renderContextTable":{"__isSmartRef__":true,"id":5499},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5500}],"eventHandler":{"__isSmartRef__":true,"id":5502},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":5503},"priorExtent":{"__isSmartRef__":true,"id":5504},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5492},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[377,"C621D837-4DB4-4C83-A8C9-1C995944A45D","BCB8C9A6-BD1A-49F5-8BDD-7C6C8BFB840C","9AA4F44C-9D66-4990-B0E2-2998FC750C65","E136552C-1013-430B-8229-122AA2720D75"],"__LivelyClassName__":"lively.morphic.Text"},"5494":{"_Position":{"__isSmartRef__":true,"id":5495},"renderContextTable":{"__isSmartRef__":true,"id":5496},"_Extent":{"__isSmartRef__":true,"id":5497},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5498},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5484},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5495":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5496":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5497":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5498":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5499":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5500":{"style":{"__isSmartRef__":true,"id":5501},"chunkOwner":{"__isSmartRef__":true,"id":5493},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"5501":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5502":{"morph":{"__isSmartRef__":true,"id":5493},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5503":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5504":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5505":{"_Position":{"__isSmartRef__":true,"id":5506},"renderContextTable":{"__isSmartRef__":true,"id":5507},"_Extent":{"__isSmartRef__":true,"id":5508},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5509},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5510},"_Fill":{"__isSmartRef__":true,"id":5511},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5506":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5507":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5508":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5509":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5510":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5511":{"stops":[{"__isSmartRef__":true,"id":5512},{"__isSmartRef__":true,"id":5514},{"__isSmartRef__":true,"id":5516},{"__isSmartRef__":true,"id":5518}],"vector":{"__isSmartRef__":true,"id":5520},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5512":{"offset":0,"color":{"__isSmartRef__":true,"id":5513}},"5513":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5514":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5515}},"5515":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5516":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5517}},"5517":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5518":{"offset":1,"color":{"__isSmartRef__":true,"id":5519}},"5519":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5520":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5521":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5522":{"morph":{"__isSmartRef__":true,"id":5492},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5523":{"x":231.49672894514134,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5524":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5525":{"stops":[{"__isSmartRef__":true,"id":5526},{"__isSmartRef__":true,"id":5528},{"__isSmartRef__":true,"id":5530},{"__isSmartRef__":true,"id":5532}],"vector":{"__isSmartRef__":true,"id":5520},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5526":{"offset":0,"color":{"__isSmartRef__":true,"id":5527}},"5527":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5528":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5529}},"5529":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5530":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5531}},"5531":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5532":{"offset":1,"color":{"__isSmartRef__":true,"id":5533}},"5533":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5534":{"moveHorizontal":true},"5535":{"sourceObj":{"__isSmartRef__":true,"id":5492},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1493},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5536},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5536":{"source":{"__isSmartRef__":true,"id":5492},"target":{"__isSmartRef__":true,"id":1493}},"5537":{"sourceObj":{"__isSmartRef__":true,"id":5492},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1493},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5538},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5538":{"source":{"__isSmartRef__":true,"id":5492},"target":{"__isSmartRef__":true,"id":1493}},"5539":{"submorphs":[{"__isSmartRef__":true,"id":5540}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5552},"id":"D84EC39D-99E5-4A69-ADB1-DE85A1555224","renderContextTable":{"__isSmartRef__":true,"id":5557},"eventHandler":{"__isSmartRef__":true,"id":5558},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":5559},"priorExtent":{"__isSmartRef__":true,"id":5560},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5511},"lighterFill":{"__isSmartRef__":true,"id":5561},"label":{"__isSmartRef__":true,"id":5540},"owner":{"__isSmartRef__":true,"id":5477},"attributeConnections":[{"__isSmartRef__":true,"id":5570},{"__isSmartRef__":true,"id":5572}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","prevScroll":[0,0],"derivationIds":[378,"FF4FE4CA-DFFC-40C6-A1E8-32667E37F3EC","A8A6A338-D618-4672-AFA8-914FD7C2A19E","85D2A7A2-F0B5-45CD-BB83-E6F60E8B681C","535E0653-E19D-4F22-952A-34C8EDED44E9"],"__LivelyClassName__":"lively.morphic.WindowControl"},"5540":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5541},"id":"A2B068C0-4056-4FFF-B5DD-71961DDD2980","renderContextTable":{"__isSmartRef__":true,"id":5546},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5547}],"eventHandler":{"__isSmartRef__":true,"id":5549},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":5550},"priorExtent":{"__isSmartRef__":true,"id":5551},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5539},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[379,"9C08820E-6B60-44C2-9150-BD546391671F","36F5662C-375A-4549-B94E-F150DCBCE3F8","030ACD5E-7567-45E7-928D-24821846DBD3","B1DB7B8C-99F5-44D9-8312-ADD58545154E"],"__LivelyClassName__":"lively.morphic.Text"},"5541":{"_Position":{"__isSmartRef__":true,"id":5542},"renderContextTable":{"__isSmartRef__":true,"id":5543},"_Extent":{"__isSmartRef__":true,"id":5544},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5545},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5484},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5542":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5543":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5544":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5545":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5546":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5547":{"style":{"__isSmartRef__":true,"id":5548},"chunkOwner":{"__isSmartRef__":true,"id":5540},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"5548":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5549":{"morph":{"__isSmartRef__":true,"id":5540},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5550":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5551":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5552":{"_Position":{"__isSmartRef__":true,"id":5553},"renderContextTable":{"__isSmartRef__":true,"id":5554},"_Extent":{"__isSmartRef__":true,"id":5555},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5556},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5510},"_Fill":{"__isSmartRef__":true,"id":5511},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5553":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5554":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5555":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5556":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5557":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5558":{"morph":{"__isSmartRef__":true,"id":5539},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5559":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5560":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5561":{"stops":[{"__isSmartRef__":true,"id":5562},{"__isSmartRef__":true,"id":5564},{"__isSmartRef__":true,"id":5566},{"__isSmartRef__":true,"id":5568}],"vector":{"__isSmartRef__":true,"id":5520},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5562":{"offset":0,"color":{"__isSmartRef__":true,"id":5563}},"5563":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5564":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5565}},"5565":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5566":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5567}},"5567":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5568":{"offset":1,"color":{"__isSmartRef__":true,"id":5569}},"5569":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5570":{"sourceObj":{"__isSmartRef__":true,"id":5539},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1493},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5571},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5571":{"source":{"__isSmartRef__":true,"id":5539},"target":{"__isSmartRef__":true,"id":1493}},"5572":{"sourceObj":{"__isSmartRef__":true,"id":5539},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1493},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5573},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5573":{"source":{"__isSmartRef__":true,"id":5539},"target":{"__isSmartRef__":true,"id":1493}},"5574":{"submorphs":[{"__isSmartRef__":true,"id":5575}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5587},"id":"248CE429-AAE5-4C19-A037-714DDE760D16","renderContextTable":{"__isSmartRef__":true,"id":5592},"eventHandler":{"__isSmartRef__":true,"id":5593},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":5594},"priorExtent":{"__isSmartRef__":true,"id":5595},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5511},"lighterFill":{"__isSmartRef__":true,"id":5596},"label":{"__isSmartRef__":true,"id":5575},"owner":{"__isSmartRef__":true,"id":5477},"layout":{"__isSmartRef__":true,"id":5605},"attributeConnections":[{"__isSmartRef__":true,"id":5606},{"__isSmartRef__":true,"id":5608}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[380,"B603C6F6-E6E9-4618-BF46-1521ADDE21FE","7D67707D-A36A-46C7-AF4E-DBA063259CD8","0CE8DB38-9500-4B3D-BA30-191E72ABDE7C","9C2B6C81-CB1C-4AD9-941A-5307CCDA74CC"],"__LivelyClassName__":"lively.morphic.WindowControl"},"5575":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5576},"id":"E83A7794-82E2-4F71-A540-014ECF5FF687","renderContextTable":{"__isSmartRef__":true,"id":5581},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":5582}],"eventHandler":{"__isSmartRef__":true,"id":5584},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":5585},"priorExtent":{"__isSmartRef__":true,"id":5586},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":5574},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[381,"B48F0AA9-A9AE-4316-865F-D969FFFD4C87","3CE2E949-41E5-4680-ADB0-8AF865F87CA7","C865C749-7005-416E-B5A2-0FB224AB308E","CAED6589-594E-438B-ADB7-264F9B9D92B0"],"__LivelyClassName__":"lively.morphic.Text"},"5576":{"_Position":{"__isSmartRef__":true,"id":5577},"renderContextTable":{"__isSmartRef__":true,"id":5578},"_Extent":{"__isSmartRef__":true,"id":5579},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5580},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5484},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5577":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5578":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5579":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5580":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5581":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5582":{"style":{"__isSmartRef__":true,"id":5583},"chunkOwner":{"__isSmartRef__":true,"id":5575},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"5583":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5584":{"morph":{"__isSmartRef__":true,"id":5575},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5585":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5586":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5587":{"_Position":{"__isSmartRef__":true,"id":5588},"renderContextTable":{"__isSmartRef__":true,"id":5589},"_Extent":{"__isSmartRef__":true,"id":5590},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5591},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5510},"_Fill":{"__isSmartRef__":true,"id":5511},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5588":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5589":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5590":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5591":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5592":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5593":{"morph":{"__isSmartRef__":true,"id":5574},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5594":{"x":212.49672894514134,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5595":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5596":{"stops":[{"__isSmartRef__":true,"id":5597},{"__isSmartRef__":true,"id":5599},{"__isSmartRef__":true,"id":5601},{"__isSmartRef__":true,"id":5603}],"vector":{"__isSmartRef__":true,"id":5520},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"5597":{"offset":0,"color":{"__isSmartRef__":true,"id":5598}},"5598":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5599":{"offset":0.4,"color":{"__isSmartRef__":true,"id":5600}},"5600":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5601":{"offset":0.6,"color":{"__isSmartRef__":true,"id":5602}},"5602":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5603":{"offset":1,"color":{"__isSmartRef__":true,"id":5604}},"5604":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5605":{"moveHorizontal":true},"5606":{"sourceObj":{"__isSmartRef__":true,"id":5574},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1493},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5607},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5607":{"source":{"__isSmartRef__":true,"id":5574},"target":{"__isSmartRef__":true,"id":1493}},"5608":{"sourceObj":{"__isSmartRef__":true,"id":5574},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1493},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":5609},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"5609":{"source":{"__isSmartRef__":true,"id":5574},"target":{"__isSmartRef__":true,"id":1493}},"5610":{"_Position":{"__isSmartRef__":true,"id":5611},"renderContextTable":{"__isSmartRef__":true,"id":5612},"_Extent":{"__isSmartRef__":true,"id":5613},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5614},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5615},"_Fill":{"__isSmartRef__":true,"id":5616},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","_Opacity":1,"_BorderStyle":"solid","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5611":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5612":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5613":{"x":251.49672894514134,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5614":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5615":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5616":{"stops":[{"__isSmartRef__":true,"id":5617},{"__isSmartRef__":true,"id":5618}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5617":{"offset":0,"color":{"__isSmartRef__":true,"id":1506}},"5618":{"offset":1,"color":{"__isSmartRef__":true,"id":5619}},"5619":{"r":0.6400000000000001,"g":0.6400000000000001,"b":0.6400000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5620":{"x":0,"y":0,"width":0,"height":1,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5621":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5622":{"morph":{"__isSmartRef__":true,"id":5477},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5623":{"resizeWidth":true,"adjustForNewBounds":true},"5624":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5625":{"x":251.49672894514134,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5626":{"renderContextTable":{"__isSmartRef__":true,"id":5627},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5628},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":5629},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5627":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5628":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"5629":{"x":251.49672894514134,"y":411.92138184230294,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5630":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5631":{"morph":{"__isSmartRef__":true,"id":1493},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5632":{"adjustForNewBounds":true},"5633":{"x":913.2419960853151,"y":411.1341177034619,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5634":{"x":251.49672894514134,"y":411.92138184230294,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5635":{"x":0,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5636":{"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Displays object properties and provides a workspace. The workspace's context is set to the last clicked element.","migrationLevel":4,"partName":"Explorer","changes":[{"__isSmartRef__":true,"id":5637},{"__isSmartRef__":true,"id":5639},{"__isSmartRef__":true,"id":5641},{"__isSmartRef__":true,"id":5643},{"__isSmartRef__":true,"id":5645},{"__isSmartRef__":true,"id":5647},{"__isSmartRef__":true,"id":5649},{"__isSmartRef__":true,"id":5651},{"__isSmartRef__":true,"id":5653},{"__isSmartRef__":true,"id":5655},{"__isSmartRef__":true,"id":5657},{"__isSmartRef__":true,"id":5659},{"__isSmartRef__":true,"id":5661},{"__isSmartRef__":true,"id":5663},{"__isSmartRef__":true,"id":5665},{"__isSmartRef__":true,"id":5667},{"__isSmartRef__":true,"id":5669},{"__isSmartRef__":true,"id":5671},{"__isSmartRef__":true,"id":5673}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5637":{"date":{"__isSmartRef__":true,"id":5638},"author":"lauritz","message":"","id":"41FC1B0F-23FC-4454-A424-F141A1C09663"},"5638":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:46:05 GMT-0800 (PST)"},"5639":{"date":{"__isSmartRef__":true,"id":5640},"author":"lauritz","message":"added >>expandAllNodes() which can expand complete trees, but not graphs.","id":"60178F3F-BA87-45A8-BD26-CF776AC017A7"},"5640":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:33:39 GMT-0800 (PST)"},"5641":{"date":{"__isSmartRef__":true,"id":5642},"author":"lauritz","message":"decreased width a bit","id":"837B2170-C0B8-4FA1-99D3-D6A1EB465519"},"5642":{"isSerializedDate":true,"string":"Fri Dec 02 2011 15:36:19 GMT-0800 (PST)"},"5643":{"date":{"__isSmartRef__":true,"id":5644},"author":"lauritz","message":"made expanding loop asynchronous","id":"5DFF88BC-08E6-43BD-B5B1-A9E8C93C7B19"},"5644":{"isSerializedDate":true,"string":"Wed Nov 30 2011 14:23:19 GMT-0800 (PST)"},"5645":{"date":{"__isSmartRef__":true,"id":5646},"author":"lauritz","message":"corrected toggling","id":"BFC57057-2596-42D0-89A1-811C34FCF5E1"},"5646":{"isSerializedDate":true,"string":"Tue Nov 22 2011 13:44:25 GMT-0800 (PST)"},"5647":{"date":{"__isSmartRef__":true,"id":5648},"author":"lauritz","message":"set a minimal extent","id":"D1DCDCB8-84EE-48D9-8AAE-3926E9D97D30"},"5648":{"isSerializedDate":true,"string":"Tue Nov 15 2011 14:39:16 GMT-0800 (PST)"},"5649":{"date":{"__isSmartRef__":true,"id":5650},"author":"lauritz","message":"convenience preset by default: tree is expanded, workspace says \"this\"","id":"D364A417-6014-4266-8DF3-CEA313F15793"},"5650":{"isSerializedDate":true,"string":"Tue Nov 15 2011 14:18:29 GMT-0800 (PST)"},"5651":{"date":{"__isSmartRef__":true,"id":5652},"author":"lauritz","message":"Disabled grabbing and dragging on other morphs as well."},"5652":{"isSerializedDate":true,"string":"Tue Oct 25 2011 11:23:10 GMT-0700 (PDT)"},"5653":{"date":{"__isSmartRef__":true,"id":5654},"author":"lauritz","message":"Disabled dragging and grabbing on tree nodes. Those should only be clickable."},"5654":{"isSerializedDate":true,"string":"Tue Oct 25 2011 10:25:14 GMT-0700 (PDT)"},"5655":{"date":{"__isSmartRef__":true,"id":5656},"author":"lauritz","message":"Fixed a bug by adding a condition to getClassNameOf. In case an object has no constructor."},"5656":{"isSerializedDate":true,"string":"Tue Oct 25 2011 13:37:11 GMT-0700 (PDT)"},"5657":{"date":{"__isSmartRef__":true,"id":5658},"author":"jenslincke","message":"reset scales","id":"5E64592A-C360-44DD-BDAE-AD956FBA7675"},"5658":{"isSerializedDate":true,"string":"Fri Oct 28 2011 07:11:21 GMT-0700 (PDT)"},"5659":{"date":{"__isSmartRef__":true,"id":5660},"author":"jenslincke","message":"bring resize corner to front","id":"765AA8A1-AA38-433A-B800-FFF743B3B9EF"},"5660":{"isSerializedDate":true,"string":"Thu Nov 03 2011 08:10:26 GMT-0700 (PDT)"},"5661":{"date":{"__isSmartRef__":true,"id":5662},"author":"lauritz","message":"layout changes","id":"F09F5196-5203-405A-8EC3-1648A100FFF5"},"5662":{"isSerializedDate":true,"string":"Fri Nov 18 2011 14:54:38 GMT-0800 (PST)"},"5663":{"date":{"__isSmartRef__":true,"id":5664},"author":"lauritz","message":"corrected the order of array elements","id":"B41E19A0-DDED-40DC-BD23-6AB94F76D76D"},"5664":{"isSerializedDate":true,"string":"Tue Nov 22 2011 14:44:29 GMT-0800 (PST)"},"5665":{"date":{"__isSmartRef__":true,"id":5666},"author":"fbo","message":"fix Date bug","id":"64EDCB63-EB39-477E-A73D-E066101A8B21"},"5666":{"isSerializedDate":true,"string":"Fri Dec 02 2011 15:07:10 GMT-0800 (PST)"},"5667":{"date":{"__isSmartRef__":true,"id":5668},"author":"lauritz","message":"significantly reduced a performance problem regarding \"long\" string properties, doesnt freeze anymore.","id":"EA85DB22-3FD3-4D13-B769-763C4483C445"},"5668":{"isSerializedDate":true,"string":"Mon Dec 05 2011 15:55:19 GMT-0800 (PST)"},"5669":{"date":{"__isSmartRef__":true,"id":5670},"author":"lauritz","message":"clicking a node no longer resets the workspace content","id":"C8AE0678-08F5-4FFB-9662-77D7120DA285"},"5670":{"isSerializedDate":true,"string":"Tue Dec 13 2011 14:22:10 GMT-0800 (PST)"},"5671":{"date":{"__isSmartRef__":true,"id":5672},"author":"lauritz","message":"renamed >>#expandAllNodes to >>#toggleAll","id":"D9931ABA-396B-4C81-9C7E-7C2712405803"},"5672":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:41:44 GMT-0800 (PST)"},"5673":{"date":{"__isSmartRef__":true,"id":5674},"author":"lauritz","message":"asynchronous >>#toggleAll, because toggling is actually asynchronous and rendering as well...","id":"3B15F99C-CFD6-41FA-9778-D2BFBBD53B8D"},"5674":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:58:54 GMT-0800 (PST)"},"5675":{"x":1002,"y":422,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5676":{"x":178,"y":269,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5677":{"explore":{"__isSmartRef__":true,"id":5678},"reset":{"__isSmartRef__":true,"id":5682},"inspect":{"__isSmartRef__":true,"id":5686},"toggleAll":{"__isSmartRef__":true,"id":5690}},"5678":{"varMapping":{"__isSmartRef__":true,"id":5679},"source":"function explore(object) {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":5680},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5679":{"this":{"__isSmartRef__":true,"id":1493}},"5680":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5681}},"5681":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:25:04 GMT-0700 (PDT)"},"5682":{"varMapping":{"__isSmartRef__":true,"id":5683},"source":"function reset() {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":5684},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5683":{"this":{"__isSmartRef__":true,"id":1493}},"5684":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5685}},"5685":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:25:04 GMT-0700 (PDT)"},"5686":{"varMapping":{"__isSmartRef__":true,"id":5687},"source":"function inspect(object) {\n // alias for explore\n this.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":5688},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5687":{"this":{"__isSmartRef__":true,"id":1493}},"5688":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":5689}},"5689":{"isSerializedDate":true,"string":"Tue Nov 15 2011 14:04:54 GMT-0800 (PST)"},"5690":{"varMapping":{"__isSmartRef__":true,"id":5691},"source":"function toggleAll() {\n this.explorer.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":5692},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"5691":{"this":{"__isSmartRef__":true,"id":1493}},"5692":{"timestamp":{"__isSmartRef__":true,"id":5693},"user":"lauritz","tags":[]},"5693":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:40:45 GMT-0800 (PST)"},"5694":{"submorphs":[{"__isSmartRef__":true,"id":5695},{"__isSmartRef__":true,"id":12885},{"__isSmartRef__":true,"id":12922}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13066},"id":"A2B3D24C-25AF-4BEA-AD4A-873C620A8F30","renderContextTable":{"__isSmartRef__":true,"id":13070},"eventHandler":{"__isSmartRef__":true,"id":13071},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":13072},"LK2":true,"_Position":{"__isSmartRef__":true,"id":13073},"priorExtent":{"__isSmartRef__":true,"id":13074},"targetMorph":{"__isSmartRef__":true,"id":5695},"titleBar":{"__isSmartRef__":true,"id":12922},"contentOffset":{"__isSmartRef__":true,"id":13075},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5636},"name":"Explorer1","prevDragPos":{"__isSmartRef__":true,"id":13076},"isBeingDragged":false,"highlighted":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","explorer":{"__isSmartRef__":true,"id":5695},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"minExtent":{"__isSmartRef__":true,"id":13077},"derivationIds":[369,"5976C77B-5C20-4DC4-BDA1-A2269E9FEC17","8A4661CC-271E-4CA9-9B42-C428E5DCCB01","B002D7D6-4167-4D6A-8981-E569CE5EE4CC","21A298C5-87D3-4C5F-8FB6-34DB19723B44"],"_Rotation":0,"_Scale":1.0141055623885957,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13078},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"5695":{"submorphs":[{"__isSmartRef__":true,"id":5696},{"__isSmartRef__":true,"id":8869}],"scripts":[],"id":"F33A0E23-7D29-4E71-83BB-992B8EA6750A","shape":{"__isSmartRef__":true,"id":8892},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8899},"showsHalos":false,"name":"ExplorerPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":8900},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":8903},"eventHandler":{"__isSmartRef__":true,"id":8904},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":5694},"priorExtent":{"__isSmartRef__":true,"id":8905},"distanceToDragEvent":{"__isSmartRef__":true,"id":8906},"layout":{"__isSmartRef__":true,"id":8907},"workspace":{"__isSmartRef__":true,"id":8869},"treeView":{"__isSmartRef__":true,"id":5696},"focusedNode":{"__isSmartRef__":true,"id":8909},"isInLayoutCycle":false,"prevScroll":[0,0],"derivationIds":[370,"19EB328E-FFB1-41CD-B181-A60FCF27908C","D1C1A399-6222-405C-A922-2ADD2DFBFB56","F7B66347-DB63-470F-8ABC-5C342E31BC5E","7A83A60F-0956-4BD5-AFDB-B7CFECEF9E30"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12868},"__LivelyClassName__":"lively.morphic.Box"},"5696":{"submorphs":[{"__isSmartRef__":true,"id":5697}],"scripts":[{"__isSmartRef__":true,"id":8765}],"id":"1C0D1433-3045-47DD-B44C-FC191F45783F","shape":{"__isSmartRef__":true,"id":8766},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8772},"showsHalos":false,"name":"TreeView","partsBinMetaInfo":{"__isSmartRef__":true,"id":8773},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":8774},"eventHandler":{"__isSmartRef__":true,"id":8775},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":8776},"layout":{"__isSmartRef__":true,"id":8777},"isInLayoutCycle":false,"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":5695},"distanceToDragEvent":{"__isSmartRef__":true,"id":8779},"colors":{"__isSmartRef__":true,"id":8780},"fonts":{"__isSmartRef__":true,"id":8782},"sizes":{"__isSmartRef__":true,"id":8783},"rootNode":{"__isSmartRef__":true,"id":5699},"prevScroll":[0,0],"derivationIds":[371,"5F72E9BF-51FA-45DD-9F01-ADDC32FBF64C","4B46569F-B458-41CF-846F-31DB325C55FE","BC2E4190-4592-4E2C-8644-51CA0FC16963","DBB73829-F82D-45F0-8499-2332C8C0487E"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8788},"__LivelyClassName__":"lively.morphic.Box"},"5697":{"submorphs":[{"__isSmartRef__":true,"id":5698}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8747},"derivationIds":[null],"id":"E4F52874-272D-4415-BB7A-9A1C8AB496C8","renderContextTable":{"__isSmartRef__":true,"id":8752},"eventHandler":{"__isSmartRef__":true,"id":8753},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8754},"_ClipMode":"scroll","layout":{"__isSmartRef__":true,"id":8755},"grabbingEnabled":false,"draggingEnabled":false,"name":"TreeViewScrollPane","owner":{"__isSmartRef__":true,"id":5696},"priorExtent":{"__isSmartRef__":true,"id":8756},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8757},"__LivelyClassName__":"lively.morphic.Clip","__SourceModuleName__":"Global.lively.morphic.Core"},"5698":{"submorphs":[{"__isSmartRef__":true,"id":5699},{"__isSmartRef__":true,"id":5805}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8729},"derivationIds":[null],"id":"7B619E0C-9B15-402F-B4E0-55627A9E08A6","renderContextTable":{"__isSmartRef__":true,"id":8734},"eventHandler":{"__isSmartRef__":true,"id":8735},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8736},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8738},"owner":{"__isSmartRef__":true,"id":5697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8739},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5699":{"submorphs":[{"__isSmartRef__":true,"id":5700},{"__isSmartRef__":true,"id":5721}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5739},"derivationIds":[null],"id":"B60F9FF4-BF3F-4934-B860-40BCA0F4847B","renderContextTable":{"__isSmartRef__":true,"id":5744},"eventHandler":{"__isSmartRef__":true,"id":5745},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5746},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":17},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","eventHandler","droppingEnabled","halosEnabled","defaultCellHeight","defaultCellWidth","borderSize","colNames","numCols","numRows","activeCellContent","rows","dataModel","priorExtent","colHeads","layout","isInLayoutCycle","owner","showsHalos","halos","_Position","distanceToDragEvent","attributeConnections","doNotSerialize","doNotCopyProperties","$$activeCell","activeCell"],"level":0,"treeView":{"__isSmartRef__":true,"id":5696},"label":"Properties","children":[{"__isSmartRef__":true,"id":5747},{"__isSmartRef__":true,"id":5807},{"__isSmartRef__":true,"id":5896},{"__isSmartRef__":true,"id":5986},{"__isSmartRef__":true,"id":6074},{"__isSmartRef__":true,"id":6163},{"__isSmartRef__":true,"id":6252},{"__isSmartRef__":true,"id":6341},{"__isSmartRef__":true,"id":6430},{"__isSmartRef__":true,"id":6519},{"__isSmartRef__":true,"id":6608},{"__isSmartRef__":true,"id":6697},{"__isSmartRef__":true,"id":6786},{"__isSmartRef__":true,"id":6875},{"__isSmartRef__":true,"id":6964},{"__isSmartRef__":true,"id":7053},{"__isSmartRef__":true,"id":7142},{"__isSmartRef__":true,"id":7231},{"__isSmartRef__":true,"id":7320},{"__isSmartRef__":true,"id":7409},{"__isSmartRef__":true,"id":7498},{"__isSmartRef__":true,"id":7587},{"__isSmartRef__":true,"id":7676},{"__isSmartRef__":true,"id":7765},{"__isSmartRef__":true,"id":7854},{"__isSmartRef__":true,"id":7943},{"__isSmartRef__":true,"id":8032},{"__isSmartRef__":true,"id":8121},{"__isSmartRef__":true,"id":8210},{"__isSmartRef__":true,"id":8299},{"__isSmartRef__":true,"id":8388},{"__isSmartRef__":true,"id":8477},{"__isSmartRef__":true,"id":8566}],"parent":null,"expander":{"__isSmartRef__":true,"id":5700},"text":{"__isSmartRef__":true,"id":5721},"owner":{"__isSmartRef__":true,"id":5698},"_Position":{"__isSmartRef__":true,"id":8707},"priorExtent":{"__isSmartRef__":true,"id":8708},"_Rotation":0,"_Scale":1.0141055623885957,"childrenWrapper":{"__isSmartRef__":true,"id":5805},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8709},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5700":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5701},"derivationIds":[null],"id":"3943CA26-CEF0-4481-95A0-D81F70CF17C8","renderContextTable":{"__isSmartRef__":true,"id":5707},"eventHandler":{"__isSmartRef__":true,"id":5708},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5709},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":true,"owner":{"__isSmartRef__":true,"id":5699},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5710},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5701":{"_Position":{"__isSmartRef__":true,"id":5702},"renderContextTable":{"__isSmartRef__":true,"id":5703},"_Extent":{"__isSmartRef__":true,"id":5704},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5705},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5702":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5703":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5704":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5705":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5706":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5707":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5708":{"morph":{"__isSmartRef__":true,"id":5700},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5709":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5710":{"toggle":{"__isSmartRef__":true,"id":5711},"toggleExpansion":{"__isSmartRef__":true,"id":5718}},"5711":{"varMapping":{"__isSmartRef__":true,"id":5712},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5712":{"this":{"__isSmartRef__":true,"id":5700},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5713}},"5713":{"$super":{"__isSmartRef__":true,"id":5714}},"5714":{"varMapping":{"__isSmartRef__":true,"id":5715},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5715":{"obj":{"__isSmartRef__":true,"id":5700},"name":"toggle"},"5716":{},"5717":{},"5718":{"varMapping":{"__isSmartRef__":true,"id":5719},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5719":{"this":{"__isSmartRef__":true,"id":5700}},"5720":{},"5721":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5722},"derivationIds":[null],"id":"C8CFB64F-FFD2-4518-8B23-4E65AAAF7CF4","renderContextTable":{"__isSmartRef__":true,"id":5726},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5727},{"__isSmartRef__":true,"id":5729}],"eventHandler":{"__isSmartRef__":true,"id":5732},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5733},"priorExtent":{"__isSmartRef__":true,"id":5734},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5699},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5735},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5722":{"_Position":{"__isSmartRef__":true,"id":5723},"renderContextTable":{"__isSmartRef__":true,"id":5724},"_Extent":{"__isSmartRef__":true,"id":5725},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5723":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5724":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5725":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5726":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5727":{"style":{"__isSmartRef__":true,"id":5728},"chunkOwner":{"__isSmartRef__":true,"id":5721},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5728":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5729":{"style":{"__isSmartRef__":true,"id":5730},"chunkOwner":{"__isSmartRef__":true,"id":5721},"storedString":": DataGrid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5730":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5731":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5732":{"morph":{"__isSmartRef__":true,"id":5721},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5733":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5734":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5735":{"layoutText":{"__isSmartRef__":true,"id":5736}},"5736":{"varMapping":{"__isSmartRef__":true,"id":5737},"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":5738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5737":{"this":{"__isSmartRef__":true,"id":5721}},"5738":{},"5739":{"_Position":{"__isSmartRef__":true,"id":5740},"renderContextTable":{"__isSmartRef__":true,"id":5741},"_Extent":{"__isSmartRef__":true,"id":5742},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5743},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5740":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5741":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5742":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5743":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5744":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5745":{"morph":{"__isSmartRef__":true,"id":5699},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5746":{"resizeWidth":true},"5747":{"submorphs":[{"__isSmartRef__":true,"id":5748},{"__isSmartRef__":true,"id":5769}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5786},"derivationIds":[null],"id":"CE200DE9-B615-44FB-869F-F00A5F402420","renderContextTable":{"__isSmartRef__":true,"id":5791},"eventHandler":{"__isSmartRef__":true,"id":5792},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5793},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":306},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","_WhiteSpaceHandling","cachedTextString","textChunks","eventHandler","grabbingEnabled","droppingEnabled","halosEnabled","_ClipMode","fixedWidth","fixedHeight","allowInput","_FontFamily","_FontSize","charsTyped","evalEnabled","evalExpression","doitContext","priorExtent","_MaxTextWidth","_MinTextWidth","_MaxTextHeight","_MinTextHeight","grid","owner","gridCoords","name","_Position","priorSelectionRange","previousSelection","isBeingDragged","charsReplaced","lastFindLoc","showsHalos","halos"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"$$activeCell","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":5748},"text":{"__isSmartRef__":true,"id":5769},"owner":{"__isSmartRef__":true,"id":5794},"_Position":{"__isSmartRef__":true,"id":8685},"priorExtent":{"__isSmartRef__":true,"id":8686},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8687},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5748":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5749},"derivationIds":[null],"id":"F534DDD2-0177-4DDE-9D5D-F8B45415068F","renderContextTable":{"__isSmartRef__":true,"id":5755},"eventHandler":{"__isSmartRef__":true,"id":5756},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5757},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5747},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5758},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5749":{"_Position":{"__isSmartRef__":true,"id":5750},"renderContextTable":{"__isSmartRef__":true,"id":5751},"_Extent":{"__isSmartRef__":true,"id":5752},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5753},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":5754},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5750":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5751":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5752":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5753":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5754":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5755":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5756":{"morph":{"__isSmartRef__":true,"id":5748},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5757":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5758":{"toggle":{"__isSmartRef__":true,"id":5759},"toggleExpansion":{"__isSmartRef__":true,"id":5766}},"5759":{"varMapping":{"__isSmartRef__":true,"id":5760},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5760":{"this":{"__isSmartRef__":true,"id":5748},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5761}},"5761":{"$super":{"__isSmartRef__":true,"id":5762}},"5762":{"varMapping":{"__isSmartRef__":true,"id":5763},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5763":{"obj":{"__isSmartRef__":true,"id":5748},"name":"toggle"},"5764":{},"5765":{},"5766":{"varMapping":{"__isSmartRef__":true,"id":5767},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5767":{"this":{"__isSmartRef__":true,"id":5748}},"5768":{},"5769":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5770},"derivationIds":[null],"id":"D32C1697-4C18-4853-AA39-8F289E0B7A47","renderContextTable":{"__isSmartRef__":true,"id":5774},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5775},{"__isSmartRef__":true,"id":5777}],"eventHandler":{"__isSmartRef__":true,"id":5779},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5780},"priorExtent":{"__isSmartRef__":true,"id":5781},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5747},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5782},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5770":{"_Position":{"__isSmartRef__":true,"id":5771},"renderContextTable":{"__isSmartRef__":true,"id":5772},"_Extent":{"__isSmartRef__":true,"id":5773},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5771":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5772":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5773":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5774":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5775":{"style":{"__isSmartRef__":true,"id":5776},"chunkOwner":{"__isSmartRef__":true,"id":5769},"storedString":"$$activeCell","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5776":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5777":{"style":{"__isSmartRef__":true,"id":5778},"chunkOwner":{"__isSmartRef__":true,"id":5769},"storedString":": [2;1]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5778":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5779":{"morph":{"__isSmartRef__":true,"id":5769},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5780":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5781":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5782":{"layoutText":{"__isSmartRef__":true,"id":5783}},"5783":{"varMapping":{"__isSmartRef__":true,"id":5784},"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":5785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5784":{"this":{"__isSmartRef__":true,"id":5769}},"5785":{},"5786":{"_Position":{"__isSmartRef__":true,"id":5787},"renderContextTable":{"__isSmartRef__":true,"id":5788},"_Extent":{"__isSmartRef__":true,"id":5789},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5790},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5787":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5788":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5789":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5790":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5791":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5792":{"morph":{"__isSmartRef__":true,"id":5747},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5793":{"resizeWidth":true},"5794":{"submorphs":[{"__isSmartRef__":true,"id":5747}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5795},"derivationIds":[null],"id":"FE21F8CF-803E-4CC3-A00E-9C7517AF085E","renderContextTable":{"__isSmartRef__":true,"id":5800},"eventHandler":{"__isSmartRef__":true,"id":5801},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5802},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5804},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8676},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8677},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"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","adjustOrigin":"adjustOriginHTML","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":5794},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5802":{"layouter":{"__isSmartRef__":true,"id":5803},"resizeWidth":true},"5803":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5794},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5804":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5805":{"submorphs":[{"__isSmartRef__":true,"id":5794},{"__isSmartRef__":true,"id":5806},{"__isSmartRef__":true,"id":5895},{"__isSmartRef__":true,"id":5985},{"__isSmartRef__":true,"id":6073},{"__isSmartRef__":true,"id":6162},{"__isSmartRef__":true,"id":6251},{"__isSmartRef__":true,"id":6340},{"__isSmartRef__":true,"id":6429},{"__isSmartRef__":true,"id":6518},{"__isSmartRef__":true,"id":6607},{"__isSmartRef__":true,"id":6696},{"__isSmartRef__":true,"id":6785},{"__isSmartRef__":true,"id":6874},{"__isSmartRef__":true,"id":6963},{"__isSmartRef__":true,"id":7052},{"__isSmartRef__":true,"id":7141},{"__isSmartRef__":true,"id":7230},{"__isSmartRef__":true,"id":7319},{"__isSmartRef__":true,"id":7408},{"__isSmartRef__":true,"id":7497},{"__isSmartRef__":true,"id":7586},{"__isSmartRef__":true,"id":7675},{"__isSmartRef__":true,"id":7764},{"__isSmartRef__":true,"id":7853},{"__isSmartRef__":true,"id":7942},{"__isSmartRef__":true,"id":8031},{"__isSmartRef__":true,"id":8120},{"__isSmartRef__":true,"id":8209},{"__isSmartRef__":true,"id":8298},{"__isSmartRef__":true,"id":8387},{"__isSmartRef__":true,"id":8476},{"__isSmartRef__":true,"id":8565}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8654},"derivationIds":[null],"id":"9F9932E0-FA22-4518-B8AA-10118D12F2DD","renderContextTable":{"__isSmartRef__":true,"id":8659},"eventHandler":{"__isSmartRef__":true,"id":8660},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8661},"owner":{"__isSmartRef__":true,"id":5698},"_Position":{"__isSmartRef__":true,"id":8663},"priorExtent":{"__isSmartRef__":true,"id":8664},"isInLayoutCycle":false,"_Visible":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8665},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5806":{"submorphs":[{"__isSmartRef__":true,"id":5807}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5876},"derivationIds":[null],"id":"53A3E721-E3F2-40AD-A352-03F3EEF226A8","renderContextTable":{"__isSmartRef__":true,"id":5881},"eventHandler":{"__isSmartRef__":true,"id":5882},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5883},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5885},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":5886},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5887},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5807":{"submorphs":[{"__isSmartRef__":true,"id":5808},{"__isSmartRef__":true,"id":5829}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5846},"derivationIds":[null],"id":"BFC8963B-2268-401F-9921-B16E4D3DCCDE","renderContextTable":{"__isSmartRef__":true,"id":5851},"eventHandler":{"__isSmartRef__":true,"id":5852},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5853},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":1462},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_Position","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":5808},"text":{"__isSmartRef__":true,"id":5829},"owner":{"__isSmartRef__":true,"id":5806},"_Position":{"__isSmartRef__":true,"id":5854},"priorExtent":{"__isSmartRef__":true,"id":5855},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5856},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5808":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5809},"derivationIds":[null],"id":"7DAF1DC9-D754-4A5F-B904-DDABDF49F928","renderContextTable":{"__isSmartRef__":true,"id":5815},"eventHandler":{"__isSmartRef__":true,"id":5816},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5817},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5807},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5818},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5809":{"_Position":{"__isSmartRef__":true,"id":5810},"renderContextTable":{"__isSmartRef__":true,"id":5811},"_Extent":{"__isSmartRef__":true,"id":5812},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5813},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":5814},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5810":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5811":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5812":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5813":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5814":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5815":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5816":{"morph":{"__isSmartRef__":true,"id":5808},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5817":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5818":{"toggle":{"__isSmartRef__":true,"id":5819},"toggleExpansion":{"__isSmartRef__":true,"id":5826}},"5819":{"varMapping":{"__isSmartRef__":true,"id":5820},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5820":{"this":{"__isSmartRef__":true,"id":5808},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5821}},"5821":{"$super":{"__isSmartRef__":true,"id":5822}},"5822":{"varMapping":{"__isSmartRef__":true,"id":5823},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5823":{"obj":{"__isSmartRef__":true,"id":5808},"name":"toggle"},"5824":{},"5825":{},"5826":{"varMapping":{"__isSmartRef__":true,"id":5827},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5827":{"this":{"__isSmartRef__":true,"id":5808}},"5828":{},"5829":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5830},"derivationIds":[null],"id":"1DDC5B2C-7049-4E10-876D-B79C8D23361D","renderContextTable":{"__isSmartRef__":true,"id":5834},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5835},{"__isSmartRef__":true,"id":5837}],"eventHandler":{"__isSmartRef__":true,"id":5839},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5840},"priorExtent":{"__isSmartRef__":true,"id":5841},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5807},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5842},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5830":{"_Position":{"__isSmartRef__":true,"id":5831},"renderContextTable":{"__isSmartRef__":true,"id":5832},"_Extent":{"__isSmartRef__":true,"id":5833},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5831":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5832":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5833":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5834":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5835":{"style":{"__isSmartRef__":true,"id":5836},"chunkOwner":{"__isSmartRef__":true,"id":5829},"storedString":"_Position","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5836":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5837":{"style":{"__isSmartRef__":true,"id":5838},"chunkOwner":{"__isSmartRef__":true,"id":5829},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5838":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5839":{"morph":{"__isSmartRef__":true,"id":5829},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5840":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5841":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5842":{"layoutText":{"__isSmartRef__":true,"id":5843}},"5843":{"varMapping":{"__isSmartRef__":true,"id":5844},"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":5845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5844":{"this":{"__isSmartRef__":true,"id":5829}},"5845":{},"5846":{"_Position":{"__isSmartRef__":true,"id":5847},"renderContextTable":{"__isSmartRef__":true,"id":5848},"_Extent":{"__isSmartRef__":true,"id":5849},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5850},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5847":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5848":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5849":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5850":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5851":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5852":{"morph":{"__isSmartRef__":true,"id":5807},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5853":{"resizeWidth":true},"5854":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5855":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5856":{"updateExpanderColor":{"__isSmartRef__":true,"id":5857},"onMouseDown":{"__isSmartRef__":true,"id":5860},"isRoot":{"__isSmartRef__":true,"id":5867},"displayValue":{"__isSmartRef__":true,"id":5870},"update":{"__isSmartRef__":true,"id":5873}},"5857":{"varMapping":{"__isSmartRef__":true,"id":5858},"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":5859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5858":{"this":{"__isSmartRef__":true,"id":5807}},"5859":{},"5860":{"varMapping":{"__isSmartRef__":true,"id":5861},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5861":{"this":{"__isSmartRef__":true,"id":5807},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5862}},"5862":{"$super":{"__isSmartRef__":true,"id":5863}},"5863":{"varMapping":{"__isSmartRef__":true,"id":5864},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5864":{"obj":{"__isSmartRef__":true,"id":5807},"name":"onMouseDown"},"5865":{},"5866":{},"5867":{"varMapping":{"__isSmartRef__":true,"id":5868},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5868":{"this":{"__isSmartRef__":true,"id":5807}},"5869":{},"5870":{"varMapping":{"__isSmartRef__":true,"id":5871},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":5872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5871":{"this":{"__isSmartRef__":true,"id":5807}},"5872":{},"5873":{"varMapping":{"__isSmartRef__":true,"id":5874},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5874":{"this":{"__isSmartRef__":true,"id":5807}},"5875":{},"5876":{"_Position":{"__isSmartRef__":true,"id":5877},"renderContextTable":{"__isSmartRef__":true,"id":5878},"_Extent":{"__isSmartRef__":true,"id":5879},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5880},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5877":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5878":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5879":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5880":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5881":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5882":{"morph":{"__isSmartRef__":true,"id":5806},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5883":{"layouter":{"__isSmartRef__":true,"id":5884},"resizeWidth":true},"5884":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5806},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5885":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5886":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5887":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5888}},"5888":{"varMapping":{"__isSmartRef__":true,"id":5889},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5889":{"this":{"__isSmartRef__":true,"id":5806},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5890}},"5890":{"$super":{"__isSmartRef__":true,"id":5891}},"5891":{"varMapping":{"__isSmartRef__":true,"id":5892},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5892":{"obj":{"__isSmartRef__":true,"id":5806},"name":"getLayoutableSubmorphs"},"5893":{},"5894":{},"5895":{"submorphs":[{"__isSmartRef__":true,"id":5896}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5966},"derivationIds":[null],"id":"BDE132DA-2169-4393-85DE-56F543435A5D","renderContextTable":{"__isSmartRef__":true,"id":5971},"eventHandler":{"__isSmartRef__":true,"id":5972},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5973},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5975},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":5976},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5977},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5896":{"submorphs":[{"__isSmartRef__":true,"id":5897},{"__isSmartRef__":true,"id":5918}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5935},"derivationIds":[null],"id":"BB75EE13-1D3F-4B4A-B131-C18E0523A359","renderContextTable":{"__isSmartRef__":true,"id":5940},"eventHandler":{"__isSmartRef__":true,"id":5941},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5942},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5943},"propertyList":["morphNode","shapeNode","originNode"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_renderContext","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":5897},"text":{"__isSmartRef__":true,"id":5918},"owner":{"__isSmartRef__":true,"id":5895},"_Position":{"__isSmartRef__":true,"id":5944},"priorExtent":{"__isSmartRef__":true,"id":5945},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5946},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5897":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5898},"derivationIds":[null],"id":"20F402B5-7735-41DB-AE86-AAA6367CB672","renderContextTable":{"__isSmartRef__":true,"id":5904},"eventHandler":{"__isSmartRef__":true,"id":5905},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5906},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5896},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5907},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5898":{"_Position":{"__isSmartRef__":true,"id":5899},"renderContextTable":{"__isSmartRef__":true,"id":5900},"_Extent":{"__isSmartRef__":true,"id":5901},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5902},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":5903},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5899":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5900":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5901":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5902":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5903":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5904":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5905":{"morph":{"__isSmartRef__":true,"id":5897},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5906":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5907":{"toggle":{"__isSmartRef__":true,"id":5908},"toggleExpansion":{"__isSmartRef__":true,"id":5915}},"5908":{"varMapping":{"__isSmartRef__":true,"id":5909},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5909":{"this":{"__isSmartRef__":true,"id":5897},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5910}},"5910":{"$super":{"__isSmartRef__":true,"id":5911}},"5911":{"varMapping":{"__isSmartRef__":true,"id":5912},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5912":{"obj":{"__isSmartRef__":true,"id":5897},"name":"toggle"},"5913":{},"5914":{},"5915":{"varMapping":{"__isSmartRef__":true,"id":5916},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5916":{"this":{"__isSmartRef__":true,"id":5897}},"5917":{},"5918":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5919},"derivationIds":[null],"id":"49F17FCD-9936-4302-B2D5-31B9CA7B4626","renderContextTable":{"__isSmartRef__":true,"id":5923},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5924},{"__isSmartRef__":true,"id":5926}],"eventHandler":{"__isSmartRef__":true,"id":5928},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":5929},"priorExtent":{"__isSmartRef__":true,"id":5930},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5896},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5931},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5919":{"_Position":{"__isSmartRef__":true,"id":5920},"renderContextTable":{"__isSmartRef__":true,"id":5921},"_Extent":{"__isSmartRef__":true,"id":5922},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5920":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5921":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5922":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5923":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5924":{"style":{"__isSmartRef__":true,"id":5925},"chunkOwner":{"__isSmartRef__":true,"id":5918},"storedString":"_renderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5925":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5926":{"style":{"__isSmartRef__":true,"id":5927},"chunkOwner":{"__isSmartRef__":true,"id":5918},"storedString":": RenderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5927":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5928":{"morph":{"__isSmartRef__":true,"id":5918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5929":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5930":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5931":{"layoutText":{"__isSmartRef__":true,"id":5932}},"5932":{"varMapping":{"__isSmartRef__":true,"id":5933},"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":5934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5933":{"this":{"__isSmartRef__":true,"id":5918}},"5934":{},"5935":{"_Position":{"__isSmartRef__":true,"id":5936},"renderContextTable":{"__isSmartRef__":true,"id":5937},"_Extent":{"__isSmartRef__":true,"id":5938},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5939},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5936":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5937":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5938":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5939":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5940":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5941":{"morph":{"__isSmartRef__":true,"id":5896},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5942":{"resizeWidth":true},"5943":{"__LivelyClassName__":"lively.morphic.HTML.RenderContext","__SourceModuleName__":"Global.lively.morphic.HTML"},"5944":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5945":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5946":{"updateExpanderColor":{"__isSmartRef__":true,"id":5947},"onMouseDown":{"__isSmartRef__":true,"id":5950},"isRoot":{"__isSmartRef__":true,"id":5957},"displayValue":{"__isSmartRef__":true,"id":5960},"update":{"__isSmartRef__":true,"id":5963}},"5947":{"varMapping":{"__isSmartRef__":true,"id":5948},"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":5949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5948":{"this":{"__isSmartRef__":true,"id":5896}},"5949":{},"5950":{"varMapping":{"__isSmartRef__":true,"id":5951},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5951":{"this":{"__isSmartRef__":true,"id":5896},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5952}},"5952":{"$super":{"__isSmartRef__":true,"id":5953}},"5953":{"varMapping":{"__isSmartRef__":true,"id":5954},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5954":{"obj":{"__isSmartRef__":true,"id":5896},"name":"onMouseDown"},"5955":{},"5956":{},"5957":{"varMapping":{"__isSmartRef__":true,"id":5958},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5958":{"this":{"__isSmartRef__":true,"id":5896}},"5959":{},"5960":{"varMapping":{"__isSmartRef__":true,"id":5961},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":5962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5961":{"this":{"__isSmartRef__":true,"id":5896}},"5962":{},"5963":{"varMapping":{"__isSmartRef__":true,"id":5964},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5964":{"this":{"__isSmartRef__":true,"id":5896}},"5965":{},"5966":{"_Position":{"__isSmartRef__":true,"id":5967},"renderContextTable":{"__isSmartRef__":true,"id":5968},"_Extent":{"__isSmartRef__":true,"id":5969},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5970},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5967":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5968":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5969":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5970":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5971":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5972":{"morph":{"__isSmartRef__":true,"id":5895},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5973":{"layouter":{"__isSmartRef__":true,"id":5974},"resizeWidth":true},"5974":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5895},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5975":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5976":{"x":0,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5977":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5978}},"5978":{"varMapping":{"__isSmartRef__":true,"id":5979},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5979":{"this":{"__isSmartRef__":true,"id":5895},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5980}},"5980":{"$super":{"__isSmartRef__":true,"id":5981}},"5981":{"varMapping":{"__isSmartRef__":true,"id":5982},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5982":{"obj":{"__isSmartRef__":true,"id":5895},"name":"getLayoutableSubmorphs"},"5983":{},"5984":{},"5985":{"submorphs":[{"__isSmartRef__":true,"id":5986}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6054},"derivationIds":[null],"id":"B0A61A03-CC2F-4F13-8A2A-21A2A8C7A4B3","renderContextTable":{"__isSmartRef__":true,"id":6059},"eventHandler":{"__isSmartRef__":true,"id":6060},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6061},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6063},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6064},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6065},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5986":{"submorphs":[{"__isSmartRef__":true,"id":5987},{"__isSmartRef__":true,"id":6007}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6024},"derivationIds":[null],"id":"BA12C992-DA9D-4816-BCA1-CADE988ABC41","renderContextTable":{"__isSmartRef__":true,"id":6029},"eventHandler":{"__isSmartRef__":true,"id":6030},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6031},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":306},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","_WhiteSpaceHandling","cachedTextString","textChunks","eventHandler","grabbingEnabled","droppingEnabled","halosEnabled","_ClipMode","fixedWidth","fixedHeight","allowInput","_FontFamily","_FontSize","charsTyped","evalEnabled","evalExpression","doitContext","priorExtent","_MaxTextWidth","_MinTextWidth","_MaxTextHeight","_MinTextHeight","grid","owner","gridCoords","name","_Position","priorSelectionRange","previousSelection","isBeingDragged","charsReplaced","lastFindLoc","showsHalos","halos"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"activeCell","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":5987},"text":{"__isSmartRef__":true,"id":6007},"owner":{"__isSmartRef__":true,"id":5985},"_Position":{"__isSmartRef__":true,"id":6032},"priorExtent":{"__isSmartRef__":true,"id":6033},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6034},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5987":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5988},"derivationIds":[null],"id":"1A097D88-987C-453F-8811-F4E741D37BF3","renderContextTable":{"__isSmartRef__":true,"id":5993},"eventHandler":{"__isSmartRef__":true,"id":5994},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5995},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5986},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5996},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5988":{"_Position":{"__isSmartRef__":true,"id":5989},"renderContextTable":{"__isSmartRef__":true,"id":5990},"_Extent":{"__isSmartRef__":true,"id":5991},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5992},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":5754},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5989":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5990":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5991":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5992":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"5993":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5994":{"morph":{"__isSmartRef__":true,"id":5987},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5995":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5996":{"toggle":{"__isSmartRef__":true,"id":5997},"toggleExpansion":{"__isSmartRef__":true,"id":6004}},"5997":{"varMapping":{"__isSmartRef__":true,"id":5998},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"5998":{"this":{"__isSmartRef__":true,"id":5987},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5999}},"5999":{"$super":{"__isSmartRef__":true,"id":6000}},"6000":{"varMapping":{"__isSmartRef__":true,"id":6001},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6001":{"obj":{"__isSmartRef__":true,"id":5987},"name":"toggle"},"6002":{},"6003":{},"6004":{"varMapping":{"__isSmartRef__":true,"id":6005},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6005":{"this":{"__isSmartRef__":true,"id":5987}},"6006":{},"6007":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6008},"derivationIds":[null],"id":"57C4497D-A905-48E2-91B1-330947DB3621","renderContextTable":{"__isSmartRef__":true,"id":6012},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6013},{"__isSmartRef__":true,"id":6015}],"eventHandler":{"__isSmartRef__":true,"id":6017},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6018},"priorExtent":{"__isSmartRef__":true,"id":6019},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5986},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6020},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6008":{"_Position":{"__isSmartRef__":true,"id":6009},"renderContextTable":{"__isSmartRef__":true,"id":6010},"_Extent":{"__isSmartRef__":true,"id":6011},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6009":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6010":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6011":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6012":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6013":{"style":{"__isSmartRef__":true,"id":6014},"chunkOwner":{"__isSmartRef__":true,"id":6007},"storedString":"activeCell","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6014":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6015":{"style":{"__isSmartRef__":true,"id":6016},"chunkOwner":{"__isSmartRef__":true,"id":6007},"storedString":": [2;1]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6016":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6017":{"morph":{"__isSmartRef__":true,"id":6007},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6018":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6019":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6020":{"layoutText":{"__isSmartRef__":true,"id":6021}},"6021":{"varMapping":{"__isSmartRef__":true,"id":6022},"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":6023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6022":{"this":{"__isSmartRef__":true,"id":6007}},"6023":{},"6024":{"_Position":{"__isSmartRef__":true,"id":6025},"renderContextTable":{"__isSmartRef__":true,"id":6026},"_Extent":{"__isSmartRef__":true,"id":6027},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6028},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6025":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6026":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6027":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6028":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6029":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6030":{"morph":{"__isSmartRef__":true,"id":5986},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6031":{"resizeWidth":true},"6032":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6033":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6034":{"updateExpanderColor":{"__isSmartRef__":true,"id":6035},"onMouseDown":{"__isSmartRef__":true,"id":6038},"isRoot":{"__isSmartRef__":true,"id":6045},"displayValue":{"__isSmartRef__":true,"id":6048},"update":{"__isSmartRef__":true,"id":6051}},"6035":{"varMapping":{"__isSmartRef__":true,"id":6036},"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":6037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6036":{"this":{"__isSmartRef__":true,"id":5986}},"6037":{},"6038":{"varMapping":{"__isSmartRef__":true,"id":6039},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6039":{"this":{"__isSmartRef__":true,"id":5986},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6040}},"6040":{"$super":{"__isSmartRef__":true,"id":6041}},"6041":{"varMapping":{"__isSmartRef__":true,"id":6042},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6042":{"obj":{"__isSmartRef__":true,"id":5986},"name":"onMouseDown"},"6043":{},"6044":{},"6045":{"varMapping":{"__isSmartRef__":true,"id":6046},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6046":{"this":{"__isSmartRef__":true,"id":5986}},"6047":{},"6048":{"varMapping":{"__isSmartRef__":true,"id":6049},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6049":{"this":{"__isSmartRef__":true,"id":5986}},"6050":{},"6051":{"varMapping":{"__isSmartRef__":true,"id":6052},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6052":{"this":{"__isSmartRef__":true,"id":5986}},"6053":{},"6054":{"_Position":{"__isSmartRef__":true,"id":6055},"renderContextTable":{"__isSmartRef__":true,"id":6056},"_Extent":{"__isSmartRef__":true,"id":6057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6058},"__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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6059":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6060":{"morph":{"__isSmartRef__":true,"id":5985},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6061":{"layouter":{"__isSmartRef__":true,"id":6062},"resizeWidth":true},"6062":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5985},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6063":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6064":{"x":0,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6065":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6066}},"6066":{"varMapping":{"__isSmartRef__":true,"id":6067},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6067":{"this":{"__isSmartRef__":true,"id":5985},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6068}},"6068":{"$super":{"__isSmartRef__":true,"id":6069}},"6069":{"varMapping":{"__isSmartRef__":true,"id":6070},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6070":{"obj":{"__isSmartRef__":true,"id":5985},"name":"getLayoutableSubmorphs"},"6071":{},"6072":{},"6073":{"submorphs":[{"__isSmartRef__":true,"id":6074}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6143},"derivationIds":[null],"id":"776B0335-00C8-43FE-82B1-1FFA3191BA2B","renderContextTable":{"__isSmartRef__":true,"id":6148},"eventHandler":{"__isSmartRef__":true,"id":6149},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6150},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6152},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6154},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6074":{"submorphs":[{"__isSmartRef__":true,"id":6075},{"__isSmartRef__":true,"id":6096}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6113},"derivationIds":[null],"id":"05DA2307-7767-4001-841D-C7344C68EE0B","renderContextTable":{"__isSmartRef__":true,"id":6118},"eventHandler":{"__isSmartRef__":true,"id":6119},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6120},"grabbingEnabled":false,"draggingEnabled":false,"data":"20","propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"activeCellContent","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6075},"text":{"__isSmartRef__":true,"id":6096},"owner":{"__isSmartRef__":true,"id":6073},"_Position":{"__isSmartRef__":true,"id":6121},"priorExtent":{"__isSmartRef__":true,"id":6122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6123},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6075":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6076},"derivationIds":[null],"id":"5BFE50D6-2076-45EF-8AB4-0F91F929442B","renderContextTable":{"__isSmartRef__":true,"id":6082},"eventHandler":{"__isSmartRef__":true,"id":6083},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6084},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6074},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6085},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6076":{"_Position":{"__isSmartRef__":true,"id":6077},"renderContextTable":{"__isSmartRef__":true,"id":6078},"_Extent":{"__isSmartRef__":true,"id":6079},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6080},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6081},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6077":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6078":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6079":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6080":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6081":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6082":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6083":{"morph":{"__isSmartRef__":true,"id":6075},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6084":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6085":{"toggle":{"__isSmartRef__":true,"id":6086},"toggleExpansion":{"__isSmartRef__":true,"id":6093}},"6086":{"varMapping":{"__isSmartRef__":true,"id":6087},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6087":{"this":{"__isSmartRef__":true,"id":6075},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6088}},"6088":{"$super":{"__isSmartRef__":true,"id":6089}},"6089":{"varMapping":{"__isSmartRef__":true,"id":6090},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6090":{"obj":{"__isSmartRef__":true,"id":6075},"name":"toggle"},"6091":{},"6092":{},"6093":{"varMapping":{"__isSmartRef__":true,"id":6094},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6094":{"this":{"__isSmartRef__":true,"id":6075}},"6095":{},"6096":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6097},"derivationIds":[null],"id":"E9D7573E-4882-4A2B-BCC1-22EEF224EF8B","renderContextTable":{"__isSmartRef__":true,"id":6101},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6102},{"__isSmartRef__":true,"id":6104}],"eventHandler":{"__isSmartRef__":true,"id":6106},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6107},"priorExtent":{"__isSmartRef__":true,"id":6108},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6074},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6109},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6097":{"_Position":{"__isSmartRef__":true,"id":6098},"renderContextTable":{"__isSmartRef__":true,"id":6099},"_Extent":{"__isSmartRef__":true,"id":6100},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6098":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6099":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6100":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6101":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6102":{"style":{"__isSmartRef__":true,"id":6103},"chunkOwner":{"__isSmartRef__":true,"id":6096},"storedString":"activeCellContent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6103":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6104":{"style":{"__isSmartRef__":true,"id":6105},"chunkOwner":{"__isSmartRef__":true,"id":6096},"storedString":": 20","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6105":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6106":{"morph":{"__isSmartRef__":true,"id":6096},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6107":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6108":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6109":{"layoutText":{"__isSmartRef__":true,"id":6110}},"6110":{"varMapping":{"__isSmartRef__":true,"id":6111},"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":6112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6111":{"this":{"__isSmartRef__":true,"id":6096}},"6112":{},"6113":{"_Position":{"__isSmartRef__":true,"id":6114},"renderContextTable":{"__isSmartRef__":true,"id":6115},"_Extent":{"__isSmartRef__":true,"id":6116},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6117},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6114":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6115":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6116":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6117":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6118":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6119":{"morph":{"__isSmartRef__":true,"id":6074},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6120":{"resizeWidth":true},"6121":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6122":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6123":{"updateExpanderColor":{"__isSmartRef__":true,"id":6124},"onMouseDown":{"__isSmartRef__":true,"id":6127},"isRoot":{"__isSmartRef__":true,"id":6134},"displayValue":{"__isSmartRef__":true,"id":6137},"update":{"__isSmartRef__":true,"id":6140}},"6124":{"varMapping":{"__isSmartRef__":true,"id":6125},"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":6126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6125":{"this":{"__isSmartRef__":true,"id":6074}},"6126":{},"6127":{"varMapping":{"__isSmartRef__":true,"id":6128},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6128":{"this":{"__isSmartRef__":true,"id":6074},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6129}},"6129":{"$super":{"__isSmartRef__":true,"id":6130}},"6130":{"varMapping":{"__isSmartRef__":true,"id":6131},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6131":{"obj":{"__isSmartRef__":true,"id":6074},"name":"onMouseDown"},"6132":{},"6133":{},"6134":{"varMapping":{"__isSmartRef__":true,"id":6135},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6135":{"this":{"__isSmartRef__":true,"id":6074}},"6136":{},"6137":{"varMapping":{"__isSmartRef__":true,"id":6138},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6138":{"this":{"__isSmartRef__":true,"id":6074}},"6139":{},"6140":{"varMapping":{"__isSmartRef__":true,"id":6141},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6141":{"this":{"__isSmartRef__":true,"id":6074}},"6142":{},"6143":{"_Position":{"__isSmartRef__":true,"id":6144},"renderContextTable":{"__isSmartRef__":true,"id":6145},"_Extent":{"__isSmartRef__":true,"id":6146},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6147},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6144":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6145":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6146":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6147":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6148":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6149":{"morph":{"__isSmartRef__":true,"id":6073},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6150":{"layouter":{"__isSmartRef__":true,"id":6151},"resizeWidth":true},"6151":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6073},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6152":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6153":{"x":0,"y":80,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6154":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6155}},"6155":{"varMapping":{"__isSmartRef__":true,"id":6156},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6156":{"this":{"__isSmartRef__":true,"id":6073},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6157}},"6157":{"$super":{"__isSmartRef__":true,"id":6158}},"6158":{"varMapping":{"__isSmartRef__":true,"id":6159},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6159":{"obj":{"__isSmartRef__":true,"id":6073},"name":"getLayoutableSubmorphs"},"6160":{},"6161":{},"6162":{"submorphs":[{"__isSmartRef__":true,"id":6163}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6232},"derivationIds":[null],"id":"74E56A92-1CF4-4E22-9C79-2397C757D306","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":5805},"_Position":{"__isSmartRef__":true,"id":6242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6163":{"submorphs":[{"__isSmartRef__":true,"id":6164},{"__isSmartRef__":true,"id":6185}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6202},"derivationIds":[null],"id":"27A6FB23-065B-4A2D-9C4D-4611F66B44E6","renderContextTable":{"__isSmartRef__":true,"id":6207},"eventHandler":{"__isSmartRef__":true,"id":6208},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6209},"grabbingEnabled":false,"draggingEnabled":false,"data":[{"__isSmartRef__":true,"id":1464}],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"attributeConnections","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6164},"text":{"__isSmartRef__":true,"id":6185},"owner":{"__isSmartRef__":true,"id":6162},"_Position":{"__isSmartRef__":true,"id":6210},"priorExtent":{"__isSmartRef__":true,"id":6211},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6212},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6164":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6165},"derivationIds":[null],"id":"3AC7D3F2-089F-4974-A7D8-5F7B4CEC05C8","renderContextTable":{"__isSmartRef__":true,"id":6171},"eventHandler":{"__isSmartRef__":true,"id":6172},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6173},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6163},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6174},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6165":{"_Position":{"__isSmartRef__":true,"id":6166},"renderContextTable":{"__isSmartRef__":true,"id":6167},"_Extent":{"__isSmartRef__":true,"id":6168},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6169},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6170},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6166":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6167":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6168":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6169":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6170":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6171":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6172":{"morph":{"__isSmartRef__":true,"id":6164},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6173":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6174":{"toggle":{"__isSmartRef__":true,"id":6175},"toggleExpansion":{"__isSmartRef__":true,"id":6182}},"6175":{"varMapping":{"__isSmartRef__":true,"id":6176},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6176":{"this":{"__isSmartRef__":true,"id":6164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6177}},"6177":{"$super":{"__isSmartRef__":true,"id":6178}},"6178":{"varMapping":{"__isSmartRef__":true,"id":6179},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6179":{"obj":{"__isSmartRef__":true,"id":6164},"name":"toggle"},"6180":{},"6181":{},"6182":{"varMapping":{"__isSmartRef__":true,"id":6183},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6183":{"this":{"__isSmartRef__":true,"id":6164}},"6184":{},"6185":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6186},"derivationIds":[null],"id":"FFC5060A-6564-463D-B2D6-3EA3C073D5D7","renderContextTable":{"__isSmartRef__":true,"id":6190},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6191},{"__isSmartRef__":true,"id":6193}],"eventHandler":{"__isSmartRef__":true,"id":6195},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6196},"priorExtent":{"__isSmartRef__":true,"id":6197},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6163},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6198},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6186":{"_Position":{"__isSmartRef__":true,"id":6187},"renderContextTable":{"__isSmartRef__":true,"id":6188},"_Extent":{"__isSmartRef__":true,"id":6189},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6187":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6188":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6189":{"x":210.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6190":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6191":{"style":{"__isSmartRef__":true,"id":6192},"chunkOwner":{"__isSmartRef__":true,"id":6185},"storedString":"attributeConnections","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6192":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6193":{"style":{"__isSmartRef__":true,"id":6194},"chunkOwner":{"__isSmartRef__":true,"id":6185},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6194":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6195":{"morph":{"__isSmartRef__":true,"id":6185},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6196":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6197":{"x":202.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6198":{"layoutText":{"__isSmartRef__":true,"id":6199}},"6199":{"varMapping":{"__isSmartRef__":true,"id":6200},"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":6201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6200":{"this":{"__isSmartRef__":true,"id":6185}},"6201":{},"6202":{"_Position":{"__isSmartRef__":true,"id":6203},"renderContextTable":{"__isSmartRef__":true,"id":6204},"_Extent":{"__isSmartRef__":true,"id":6205},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6206},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6204":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6205":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6206":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6207":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6208":{"morph":{"__isSmartRef__":true,"id":6163},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6209":{"resizeWidth":true},"6210":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6211":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6212":{"updateExpanderColor":{"__isSmartRef__":true,"id":6213},"onMouseDown":{"__isSmartRef__":true,"id":6216},"isRoot":{"__isSmartRef__":true,"id":6223},"displayValue":{"__isSmartRef__":true,"id":6226},"update":{"__isSmartRef__":true,"id":6229}},"6213":{"varMapping":{"__isSmartRef__":true,"id":6214},"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":6215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6214":{"this":{"__isSmartRef__":true,"id":6163}},"6215":{},"6216":{"varMapping":{"__isSmartRef__":true,"id":6217},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6217":{"this":{"__isSmartRef__":true,"id":6163},"__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":6163},"name":"onMouseDown"},"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":6163}},"6225":{},"6226":{"varMapping":{"__isSmartRef__":true,"id":6227},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6227":{"this":{"__isSmartRef__":true,"id":6163}},"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 if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (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":6163}},"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","adjustOrigin":"adjustOriginHTML","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":6162},"__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":6162},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6242":{"x":0,"y":100,"__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":6162},"__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":6162},"name":"getLayoutableSubmorphs"},"6249":{},"6250":{},"6251":{"submorphs":[{"__isSmartRef__":true,"id":6252}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6321},"derivationIds":[null],"id":"97BBED89-777E-4AB6-B5F6-E7B4A5BCB55E","renderContextTable":{"__isSmartRef__":true,"id":6326},"eventHandler":{"__isSmartRef__":true,"id":6327},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6328},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6330},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6331},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6332},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6252":{"submorphs":[{"__isSmartRef__":true,"id":6253},{"__isSmartRef__":true,"id":6274}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6291},"derivationIds":[null],"id":"7E6C2429-7D0D-4D0E-B786-97C866E7B1A8","renderContextTable":{"__isSmartRef__":true,"id":6296},"eventHandler":{"__isSmartRef__":true,"id":6297},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6298},"grabbingEnabled":false,"draggingEnabled":false,"data":50,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"borderSize","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6253},"text":{"__isSmartRef__":true,"id":6274},"owner":{"__isSmartRef__":true,"id":6251},"_Position":{"__isSmartRef__":true,"id":6299},"priorExtent":{"__isSmartRef__":true,"id":6300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6301},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6254},"derivationIds":[null],"id":"578297BE-4542-48D3-A9FA-B6BBB4A81258","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":5706},"_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","adjustOrigin":"adjustOriginHTML","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":{"toggle":{"__isSmartRef__":true,"id":6264},"toggleExpansion":{"__isSmartRef__":true,"id":6271}},"6264":{"varMapping":{"__isSmartRef__":true,"id":6265},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\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":"toggle"},"6269":{},"6270":{},"6271":{"varMapping":{"__isSmartRef__":true,"id":6272},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6272":{"this":{"__isSmartRef__":true,"id":6253}},"6273":{},"6274":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6275},"derivationIds":[null],"id":"3EEB9A26-B7FE-49AD-BBF4-718B4961A212","renderContextTable":{"__isSmartRef__":true,"id":6279},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6280},{"__isSmartRef__":true,"id":6282}],"eventHandler":{"__isSmartRef__":true,"id":6284},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6285},"priorExtent":{"__isSmartRef__":true,"id":6286},"_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":6287},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6275":{"_Position":{"__isSmartRef__":true,"id":6276},"renderContextTable":{"__isSmartRef__":true,"id":6277},"_Extent":{"__isSmartRef__":true,"id":6278},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6276":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6277":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6278":{"x":113,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6279":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6280":{"style":{"__isSmartRef__":true,"id":6281},"chunkOwner":{"__isSmartRef__":true,"id":6274},"storedString":"borderSize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6281":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6282":{"style":{"__isSmartRef__":true,"id":6283},"chunkOwner":{"__isSmartRef__":true,"id":6274},"storedString":": 50","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6283":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6284":{"morph":{"__isSmartRef__":true,"id":6274},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6285":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6286":{"x":105,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6287":{"layoutText":{"__isSmartRef__":true,"id":6288}},"6288":{"varMapping":{"__isSmartRef__":true,"id":6289},"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":6290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6289":{"this":{"__isSmartRef__":true,"id":6274}},"6290":{},"6291":{"_Position":{"__isSmartRef__":true,"id":6292},"renderContextTable":{"__isSmartRef__":true,"id":6293},"_Extent":{"__isSmartRef__":true,"id":6294},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6295},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6292":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6293":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6294":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6295":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6296":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6297":{"morph":{"__isSmartRef__":true,"id":6252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6298":{"resizeWidth":true},"6299":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6300":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6301":{"updateExpanderColor":{"__isSmartRef__":true,"id":6302},"onMouseDown":{"__isSmartRef__":true,"id":6305},"isRoot":{"__isSmartRef__":true,"id":6312},"displayValue":{"__isSmartRef__":true,"id":6315},"update":{"__isSmartRef__":true,"id":6318}},"6302":{"varMapping":{"__isSmartRef__":true,"id":6303},"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":6304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6303":{"this":{"__isSmartRef__":true,"id":6252}},"6304":{},"6305":{"varMapping":{"__isSmartRef__":true,"id":6306},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6306":{"this":{"__isSmartRef__":true,"id":6252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6307}},"6307":{"$super":{"__isSmartRef__":true,"id":6308}},"6308":{"varMapping":{"__isSmartRef__":true,"id":6309},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6309":{"obj":{"__isSmartRef__":true,"id":6252},"name":"onMouseDown"},"6310":{},"6311":{},"6312":{"varMapping":{"__isSmartRef__":true,"id":6313},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6313":{"this":{"__isSmartRef__":true,"id":6252}},"6314":{},"6315":{"varMapping":{"__isSmartRef__":true,"id":6316},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6316":{"this":{"__isSmartRef__":true,"id":6252}},"6317":{},"6318":{"varMapping":{"__isSmartRef__":true,"id":6319},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6319":{"this":{"__isSmartRef__":true,"id":6252}},"6320":{},"6321":{"_Position":{"__isSmartRef__":true,"id":6322},"renderContextTable":{"__isSmartRef__":true,"id":6323},"_Extent":{"__isSmartRef__":true,"id":6324},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6325},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6322":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6323":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6324":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6325":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6326":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6327":{"morph":{"__isSmartRef__":true,"id":6251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6328":{"layouter":{"__isSmartRef__":true,"id":6329},"resizeWidth":true},"6329":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6251},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6330":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6331":{"x":0,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6332":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6333}},"6333":{"varMapping":{"__isSmartRef__":true,"id":6334},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6334":{"this":{"__isSmartRef__":true,"id":6251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6335}},"6335":{"$super":{"__isSmartRef__":true,"id":6336}},"6336":{"varMapping":{"__isSmartRef__":true,"id":6337},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6337":{"obj":{"__isSmartRef__":true,"id":6251},"name":"getLayoutableSubmorphs"},"6338":{},"6339":{},"6340":{"submorphs":[{"__isSmartRef__":true,"id":6341}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6410},"derivationIds":[null],"id":"60FDBE86-33A1-46F1-A6E3-0BF7ABAD1476","renderContextTable":{"__isSmartRef__":true,"id":6415},"eventHandler":{"__isSmartRef__":true,"id":6416},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6417},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6419},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6420},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6421},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6341":{"submorphs":[{"__isSmartRef__":true,"id":6342},{"__isSmartRef__":true,"id":6363}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6380},"derivationIds":[null],"id":"14AD599D-43E4-4CD7-9F0B-FDB4FE69E88B","renderContextTable":{"__isSmartRef__":true,"id":6385},"eventHandler":{"__isSmartRef__":true,"id":6386},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6387},"grabbingEnabled":false,"draggingEnabled":false,"data":[{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":33},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":85},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":137}],"propertyList":["0","1","2","3","4","5","6","7","8","9"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"colHeads","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6342},"text":{"__isSmartRef__":true,"id":6363},"owner":{"__isSmartRef__":true,"id":6340},"_Position":{"__isSmartRef__":true,"id":6388},"priorExtent":{"__isSmartRef__":true,"id":6389},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6390},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6342":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6343},"derivationIds":[null],"id":"86FD828E-0C12-48CD-9317-D3B24B18974D","renderContextTable":{"__isSmartRef__":true,"id":6349},"eventHandler":{"__isSmartRef__":true,"id":6350},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6351},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6341},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6352},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6343":{"_Position":{"__isSmartRef__":true,"id":6344},"renderContextTable":{"__isSmartRef__":true,"id":6345},"_Extent":{"__isSmartRef__":true,"id":6346},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6347},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6348},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6344":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6345":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6346":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6347":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6348":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6349":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6350":{"morph":{"__isSmartRef__":true,"id":6342},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6351":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6352":{"toggle":{"__isSmartRef__":true,"id":6353},"toggleExpansion":{"__isSmartRef__":true,"id":6360}},"6353":{"varMapping":{"__isSmartRef__":true,"id":6354},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6354":{"this":{"__isSmartRef__":true,"id":6342},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6355}},"6355":{"$super":{"__isSmartRef__":true,"id":6356}},"6356":{"varMapping":{"__isSmartRef__":true,"id":6357},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6357":{"obj":{"__isSmartRef__":true,"id":6342},"name":"toggle"},"6358":{},"6359":{},"6360":{"varMapping":{"__isSmartRef__":true,"id":6361},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6361":{"this":{"__isSmartRef__":true,"id":6342}},"6362":{},"6363":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6364},"derivationIds":[null],"id":"3AB32B01-B261-4FDE-995D-2369904872FE","renderContextTable":{"__isSmartRef__":true,"id":6368},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6369},{"__isSmartRef__":true,"id":6371}],"eventHandler":{"__isSmartRef__":true,"id":6373},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6374},"priorExtent":{"__isSmartRef__":true,"id":6375},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6341},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6376},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6364":{"_Position":{"__isSmartRef__":true,"id":6365},"renderContextTable":{"__isSmartRef__":true,"id":6366},"_Extent":{"__isSmartRef__":true,"id":6367},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6365":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6366":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6367":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6368":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6369":{"style":{"__isSmartRef__":true,"id":6370},"chunkOwner":{"__isSmartRef__":true,"id":6363},"storedString":"colHeads","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6370":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6371":{"style":{"__isSmartRef__":true,"id":6372},"chunkOwner":{"__isSmartRef__":true,"id":6363},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6372":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6373":{"morph":{"__isSmartRef__":true,"id":6363},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6374":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6375":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6376":{"layoutText":{"__isSmartRef__":true,"id":6377}},"6377":{"varMapping":{"__isSmartRef__":true,"id":6378},"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":6379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6378":{"this":{"__isSmartRef__":true,"id":6363}},"6379":{},"6380":{"_Position":{"__isSmartRef__":true,"id":6381},"renderContextTable":{"__isSmartRef__":true,"id":6382},"_Extent":{"__isSmartRef__":true,"id":6383},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6384},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6381":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6382":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6383":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6384":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6385":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6386":{"morph":{"__isSmartRef__":true,"id":6341},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6387":{"resizeWidth":true},"6388":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6389":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6390":{"updateExpanderColor":{"__isSmartRef__":true,"id":6391},"onMouseDown":{"__isSmartRef__":true,"id":6394},"isRoot":{"__isSmartRef__":true,"id":6401},"displayValue":{"__isSmartRef__":true,"id":6404},"update":{"__isSmartRef__":true,"id":6407}},"6391":{"varMapping":{"__isSmartRef__":true,"id":6392},"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":6393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6392":{"this":{"__isSmartRef__":true,"id":6341}},"6393":{},"6394":{"varMapping":{"__isSmartRef__":true,"id":6395},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6395":{"this":{"__isSmartRef__":true,"id":6341},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6396}},"6396":{"$super":{"__isSmartRef__":true,"id":6397}},"6397":{"varMapping":{"__isSmartRef__":true,"id":6398},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6398":{"obj":{"__isSmartRef__":true,"id":6341},"name":"onMouseDown"},"6399":{},"6400":{},"6401":{"varMapping":{"__isSmartRef__":true,"id":6402},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6402":{"this":{"__isSmartRef__":true,"id":6341}},"6403":{},"6404":{"varMapping":{"__isSmartRef__":true,"id":6405},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6405":{"this":{"__isSmartRef__":true,"id":6341}},"6406":{},"6407":{"varMapping":{"__isSmartRef__":true,"id":6408},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6408":{"this":{"__isSmartRef__":true,"id":6341}},"6409":{},"6410":{"_Position":{"__isSmartRef__":true,"id":6411},"renderContextTable":{"__isSmartRef__":true,"id":6412},"_Extent":{"__isSmartRef__":true,"id":6413},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6414},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6411":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6412":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6413":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6414":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6415":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6416":{"morph":{"__isSmartRef__":true,"id":6340},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6417":{"layouter":{"__isSmartRef__":true,"id":6418},"resizeWidth":true},"6418":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6340},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6419":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6420":{"x":0,"y":140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6421":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6422}},"6422":{"varMapping":{"__isSmartRef__":true,"id":6423},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6423":{"this":{"__isSmartRef__":true,"id":6340},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6424}},"6424":{"$super":{"__isSmartRef__":true,"id":6425}},"6425":{"varMapping":{"__isSmartRef__":true,"id":6426},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6426":{"obj":{"__isSmartRef__":true,"id":6340},"name":"getLayoutableSubmorphs"},"6427":{},"6428":{},"6429":{"submorphs":[{"__isSmartRef__":true,"id":6430}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6499},"derivationIds":[null],"id":"4DD6B3E2-89DB-4CD5-B7F9-BA4367DF39E9","renderContextTable":{"__isSmartRef__":true,"id":6504},"eventHandler":{"__isSmartRef__":true,"id":6505},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6506},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6508},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6509},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6510},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6430":{"submorphs":[{"__isSmartRef__":true,"id":6431},{"__isSmartRef__":true,"id":6452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6469},"derivationIds":[null],"id":"72E5DD3C-F571-4F3E-B7B0-7DDE30E0AECC","renderContextTable":{"__isSmartRef__":true,"id":6474},"eventHandler":{"__isSmartRef__":true,"id":6475},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6476},"grabbingEnabled":false,"draggingEnabled":false,"data":[null,null,null,null,null,null,null,null,null,null],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"colNames","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6431},"text":{"__isSmartRef__":true,"id":6452},"owner":{"__isSmartRef__":true,"id":6429},"_Position":{"__isSmartRef__":true,"id":6477},"priorExtent":{"__isSmartRef__":true,"id":6478},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6479},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6431":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6432},"derivationIds":[null],"id":"884A2A39-B561-480E-975A-8856567D0565","renderContextTable":{"__isSmartRef__":true,"id":6438},"eventHandler":{"__isSmartRef__":true,"id":6439},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6440},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6430},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6441},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6432":{"_Position":{"__isSmartRef__":true,"id":6433},"renderContextTable":{"__isSmartRef__":true,"id":6434},"_Extent":{"__isSmartRef__":true,"id":6435},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6436},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6437},"__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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6436":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6437":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6438":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6439":{"morph":{"__isSmartRef__":true,"id":6431},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6440":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6441":{"toggle":{"__isSmartRef__":true,"id":6442},"toggleExpansion":{"__isSmartRef__":true,"id":6449}},"6442":{"varMapping":{"__isSmartRef__":true,"id":6443},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6443":{"this":{"__isSmartRef__":true,"id":6431},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6444}},"6444":{"$super":{"__isSmartRef__":true,"id":6445}},"6445":{"varMapping":{"__isSmartRef__":true,"id":6446},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6446":{"obj":{"__isSmartRef__":true,"id":6431},"name":"toggle"},"6447":{},"6448":{},"6449":{"varMapping":{"__isSmartRef__":true,"id":6450},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6450":{"this":{"__isSmartRef__":true,"id":6431}},"6451":{},"6452":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6453},"derivationIds":[null],"id":"06654F8B-5C2A-457C-9A61-B8313007A8C7","renderContextTable":{"__isSmartRef__":true,"id":6457},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6458},{"__isSmartRef__":true,"id":6460}],"eventHandler":{"__isSmartRef__":true,"id":6462},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6463},"priorExtent":{"__isSmartRef__":true,"id":6464},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6430},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6465},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6453":{"_Position":{"__isSmartRef__":true,"id":6454},"renderContextTable":{"__isSmartRef__":true,"id":6455},"_Extent":{"__isSmartRef__":true,"id":6456},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6454":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6455":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6456":{"x":98,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6457":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6458":{"style":{"__isSmartRef__":true,"id":6459},"chunkOwner":{"__isSmartRef__":true,"id":6452},"storedString":"colNames","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6459":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6460":{"style":{"__isSmartRef__":true,"id":6461},"chunkOwner":{"__isSmartRef__":true,"id":6452},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6461":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6462":{"morph":{"__isSmartRef__":true,"id":6452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6463":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6464":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6465":{"layoutText":{"__isSmartRef__":true,"id":6466}},"6466":{"varMapping":{"__isSmartRef__":true,"id":6467},"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":6468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6467":{"this":{"__isSmartRef__":true,"id":6452}},"6468":{},"6469":{"_Position":{"__isSmartRef__":true,"id":6470},"renderContextTable":{"__isSmartRef__":true,"id":6471},"_Extent":{"__isSmartRef__":true,"id":6472},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6473},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6470":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6471":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6472":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6473":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6474":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6475":{"morph":{"__isSmartRef__":true,"id":6430},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6476":{"resizeWidth":true},"6477":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6478":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6479":{"updateExpanderColor":{"__isSmartRef__":true,"id":6480},"onMouseDown":{"__isSmartRef__":true,"id":6483},"isRoot":{"__isSmartRef__":true,"id":6490},"displayValue":{"__isSmartRef__":true,"id":6493},"update":{"__isSmartRef__":true,"id":6496}},"6480":{"varMapping":{"__isSmartRef__":true,"id":6481},"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":6482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6481":{"this":{"__isSmartRef__":true,"id":6430}},"6482":{},"6483":{"varMapping":{"__isSmartRef__":true,"id":6484},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6484":{"this":{"__isSmartRef__":true,"id":6430},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6485}},"6485":{"$super":{"__isSmartRef__":true,"id":6486}},"6486":{"varMapping":{"__isSmartRef__":true,"id":6487},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6487":{"obj":{"__isSmartRef__":true,"id":6430},"name":"onMouseDown"},"6488":{},"6489":{},"6490":{"varMapping":{"__isSmartRef__":true,"id":6491},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6491":{"this":{"__isSmartRef__":true,"id":6430}},"6492":{},"6493":{"varMapping":{"__isSmartRef__":true,"id":6494},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6494":{"this":{"__isSmartRef__":true,"id":6430}},"6495":{},"6496":{"varMapping":{"__isSmartRef__":true,"id":6497},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6497":{"this":{"__isSmartRef__":true,"id":6430}},"6498":{},"6499":{"_Position":{"__isSmartRef__":true,"id":6500},"renderContextTable":{"__isSmartRef__":true,"id":6501},"_Extent":{"__isSmartRef__":true,"id":6502},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6503},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6500":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6501":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6502":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6503":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6504":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6505":{"morph":{"__isSmartRef__":true,"id":6429},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6506":{"layouter":{"__isSmartRef__":true,"id":6507},"resizeWidth":true},"6507":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6429},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6508":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6509":{"x":0,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6510":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6511}},"6511":{"varMapping":{"__isSmartRef__":true,"id":6512},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6512":{"this":{"__isSmartRef__":true,"id":6429},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6513}},"6513":{"$super":{"__isSmartRef__":true,"id":6514}},"6514":{"varMapping":{"__isSmartRef__":true,"id":6515},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6515":{"obj":{"__isSmartRef__":true,"id":6429},"name":"getLayoutableSubmorphs"},"6516":{},"6517":{},"6518":{"submorphs":[{"__isSmartRef__":true,"id":6519}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6588},"derivationIds":[null],"id":"30564F75-81E4-4411-A1AF-CCB1DDFDE412","renderContextTable":{"__isSmartRef__":true,"id":6593},"eventHandler":{"__isSmartRef__":true,"id":6594},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6595},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6597},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6598},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6599},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6519":{"submorphs":[{"__isSmartRef__":true,"id":6520},{"__isSmartRef__":true,"id":6541}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6558},"derivationIds":[null],"id":"965F1719-2961-4D80-AACE-923AB51E7A4A","renderContextTable":{"__isSmartRef__":true,"id":6563},"eventHandler":{"__isSmartRef__":true,"id":6564},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6565},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"dataModel","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6520},"text":{"__isSmartRef__":true,"id":6541},"owner":{"__isSmartRef__":true,"id":6518},"_Position":{"__isSmartRef__":true,"id":6566},"priorExtent":{"__isSmartRef__":true,"id":6567},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6568},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6520":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6521},"derivationIds":[null],"id":"F1629D27-2914-47FB-967A-FFD7C8CBF440","renderContextTable":{"__isSmartRef__":true,"id":6527},"eventHandler":{"__isSmartRef__":true,"id":6528},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6529},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6519},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6530},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6521":{"_Position":{"__isSmartRef__":true,"id":6522},"renderContextTable":{"__isSmartRef__":true,"id":6523},"_Extent":{"__isSmartRef__":true,"id":6524},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6525},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6526},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6522":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6523":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6524":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6525":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6526":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6527":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6528":{"morph":{"__isSmartRef__":true,"id":6520},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6529":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6530":{"toggle":{"__isSmartRef__":true,"id":6531},"toggleExpansion":{"__isSmartRef__":true,"id":6538}},"6531":{"varMapping":{"__isSmartRef__":true,"id":6532},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6532":{"this":{"__isSmartRef__":true,"id":6520},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6533}},"6533":{"$super":{"__isSmartRef__":true,"id":6534}},"6534":{"varMapping":{"__isSmartRef__":true,"id":6535},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6535":{"obj":{"__isSmartRef__":true,"id":6520},"name":"toggle"},"6536":{},"6537":{},"6538":{"varMapping":{"__isSmartRef__":true,"id":6539},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6539":{"this":{"__isSmartRef__":true,"id":6520}},"6540":{},"6541":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6542},"derivationIds":[null],"id":"D10B074F-145C-4FF0-A327-16F5EEA7F363","renderContextTable":{"__isSmartRef__":true,"id":6546},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6547},{"__isSmartRef__":true,"id":6549}],"eventHandler":{"__isSmartRef__":true,"id":6551},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6552},"priorExtent":{"__isSmartRef__":true,"id":6553},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6519},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6554},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6542":{"_Position":{"__isSmartRef__":true,"id":6543},"renderContextTable":{"__isSmartRef__":true,"id":6544},"_Extent":{"__isSmartRef__":true,"id":6545},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6543":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6544":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6545":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6546":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6547":{"style":{"__isSmartRef__":true,"id":6548},"chunkOwner":{"__isSmartRef__":true,"id":6541},"storedString":"dataModel","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6548":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6549":{"style":{"__isSmartRef__":true,"id":6550},"chunkOwner":{"__isSmartRef__":true,"id":6541},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6550":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6551":{"morph":{"__isSmartRef__":true,"id":6541},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6552":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6553":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6554":{"layoutText":{"__isSmartRef__":true,"id":6555}},"6555":{"varMapping":{"__isSmartRef__":true,"id":6556},"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":6557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6556":{"this":{"__isSmartRef__":true,"id":6541}},"6557":{},"6558":{"_Position":{"__isSmartRef__":true,"id":6559},"renderContextTable":{"__isSmartRef__":true,"id":6560},"_Extent":{"__isSmartRef__":true,"id":6561},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6562},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6559":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6560":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6561":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6562":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6563":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6564":{"morph":{"__isSmartRef__":true,"id":6519},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6565":{"resizeWidth":true},"6566":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6567":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6568":{"updateExpanderColor":{"__isSmartRef__":true,"id":6569},"onMouseDown":{"__isSmartRef__":true,"id":6572},"isRoot":{"__isSmartRef__":true,"id":6579},"displayValue":{"__isSmartRef__":true,"id":6582},"update":{"__isSmartRef__":true,"id":6585}},"6569":{"varMapping":{"__isSmartRef__":true,"id":6570},"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":6571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6570":{"this":{"__isSmartRef__":true,"id":6519}},"6571":{},"6572":{"varMapping":{"__isSmartRef__":true,"id":6573},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6573":{"this":{"__isSmartRef__":true,"id":6519},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6574}},"6574":{"$super":{"__isSmartRef__":true,"id":6575}},"6575":{"varMapping":{"__isSmartRef__":true,"id":6576},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6576":{"obj":{"__isSmartRef__":true,"id":6519},"name":"onMouseDown"},"6577":{},"6578":{},"6579":{"varMapping":{"__isSmartRef__":true,"id":6580},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6580":{"this":{"__isSmartRef__":true,"id":6519}},"6581":{},"6582":{"varMapping":{"__isSmartRef__":true,"id":6583},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6583":{"this":{"__isSmartRef__":true,"id":6519}},"6584":{},"6585":{"varMapping":{"__isSmartRef__":true,"id":6586},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6586":{"this":{"__isSmartRef__":true,"id":6519}},"6587":{},"6588":{"_Position":{"__isSmartRef__":true,"id":6589},"renderContextTable":{"__isSmartRef__":true,"id":6590},"_Extent":{"__isSmartRef__":true,"id":6591},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6592},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6589":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6590":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6591":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6592":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6593":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6594":{"morph":{"__isSmartRef__":true,"id":6518},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6595":{"layouter":{"__isSmartRef__":true,"id":6596},"resizeWidth":true},"6596":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6518},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6597":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6598":{"x":0,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6599":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6600}},"6600":{"varMapping":{"__isSmartRef__":true,"id":6601},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6601":{"this":{"__isSmartRef__":true,"id":6518},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6602}},"6602":{"$super":{"__isSmartRef__":true,"id":6603}},"6603":{"varMapping":{"__isSmartRef__":true,"id":6604},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6604":{"obj":{"__isSmartRef__":true,"id":6518},"name":"getLayoutableSubmorphs"},"6605":{},"6606":{},"6607":{"submorphs":[{"__isSmartRef__":true,"id":6608}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6677},"derivationIds":[null],"id":"592BBEDD-154C-4D91-B514-613D6530CB60","renderContextTable":{"__isSmartRef__":true,"id":6682},"eventHandler":{"__isSmartRef__":true,"id":6683},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6684},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6686},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6687},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6688},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6608":{"submorphs":[{"__isSmartRef__":true,"id":6609},{"__isSmartRef__":true,"id":6630}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6647},"derivationIds":[null],"id":"020B2121-2150-4723-87B2-DB0734D0D625","renderContextTable":{"__isSmartRef__":true,"id":6652},"eventHandler":{"__isSmartRef__":true,"id":6653},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6654},"grabbingEnabled":false,"draggingEnabled":false,"data":30,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"defaultCellHeight","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6609},"text":{"__isSmartRef__":true,"id":6630},"owner":{"__isSmartRef__":true,"id":6607},"_Position":{"__isSmartRef__":true,"id":6655},"priorExtent":{"__isSmartRef__":true,"id":6656},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6657},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6609":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6610},"derivationIds":[null],"id":"C2AC8C20-DA3E-4437-87EB-F312B5FD2CEC","renderContextTable":{"__isSmartRef__":true,"id":6616},"eventHandler":{"__isSmartRef__":true,"id":6617},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6618},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6608},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6619},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6610":{"_Position":{"__isSmartRef__":true,"id":6611},"renderContextTable":{"__isSmartRef__":true,"id":6612},"_Extent":{"__isSmartRef__":true,"id":6613},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6614},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6615},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6611":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6612":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6613":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6614":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6615":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6616":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6617":{"morph":{"__isSmartRef__":true,"id":6609},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6618":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6619":{"toggle":{"__isSmartRef__":true,"id":6620},"toggleExpansion":{"__isSmartRef__":true,"id":6627}},"6620":{"varMapping":{"__isSmartRef__":true,"id":6621},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6621":{"this":{"__isSmartRef__":true,"id":6609},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6622}},"6622":{"$super":{"__isSmartRef__":true,"id":6623}},"6623":{"varMapping":{"__isSmartRef__":true,"id":6624},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6624":{"obj":{"__isSmartRef__":true,"id":6609},"name":"toggle"},"6625":{},"6626":{},"6627":{"varMapping":{"__isSmartRef__":true,"id":6628},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6628":{"this":{"__isSmartRef__":true,"id":6609}},"6629":{},"6630":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6631},"derivationIds":[null],"id":"A2736C8F-B88D-4114-BB76-C5EE64A8F6BF","renderContextTable":{"__isSmartRef__":true,"id":6635},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6636},{"__isSmartRef__":true,"id":6638}],"eventHandler":{"__isSmartRef__":true,"id":6640},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6641},"priorExtent":{"__isSmartRef__":true,"id":6642},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6608},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6643},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6631":{"_Position":{"__isSmartRef__":true,"id":6632},"renderContextTable":{"__isSmartRef__":true,"id":6633},"_Extent":{"__isSmartRef__":true,"id":6634},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6632":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6633":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6634":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6635":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6636":{"style":{"__isSmartRef__":true,"id":6637},"chunkOwner":{"__isSmartRef__":true,"id":6630},"storedString":"defaultCellHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6637":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6638":{"style":{"__isSmartRef__":true,"id":6639},"chunkOwner":{"__isSmartRef__":true,"id":6630},"storedString":": 30","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6639":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6640":{"morph":{"__isSmartRef__":true,"id":6630},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6641":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6642":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6643":{"layoutText":{"__isSmartRef__":true,"id":6644}},"6644":{"varMapping":{"__isSmartRef__":true,"id":6645},"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":6646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6645":{"this":{"__isSmartRef__":true,"id":6630}},"6646":{},"6647":{"_Position":{"__isSmartRef__":true,"id":6648},"renderContextTable":{"__isSmartRef__":true,"id":6649},"_Extent":{"__isSmartRef__":true,"id":6650},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6651},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6648":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6649":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6650":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6651":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6652":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6653":{"morph":{"__isSmartRef__":true,"id":6608},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6654":{"resizeWidth":true},"6655":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6656":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6657":{"updateExpanderColor":{"__isSmartRef__":true,"id":6658},"onMouseDown":{"__isSmartRef__":true,"id":6661},"isRoot":{"__isSmartRef__":true,"id":6668},"displayValue":{"__isSmartRef__":true,"id":6671},"update":{"__isSmartRef__":true,"id":6674}},"6658":{"varMapping":{"__isSmartRef__":true,"id":6659},"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":6660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6659":{"this":{"__isSmartRef__":true,"id":6608}},"6660":{},"6661":{"varMapping":{"__isSmartRef__":true,"id":6662},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6662":{"this":{"__isSmartRef__":true,"id":6608},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6663}},"6663":{"$super":{"__isSmartRef__":true,"id":6664}},"6664":{"varMapping":{"__isSmartRef__":true,"id":6665},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6665":{"obj":{"__isSmartRef__":true,"id":6608},"name":"onMouseDown"},"6666":{},"6667":{},"6668":{"varMapping":{"__isSmartRef__":true,"id":6669},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6669":{"this":{"__isSmartRef__":true,"id":6608}},"6670":{},"6671":{"varMapping":{"__isSmartRef__":true,"id":6672},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6672":{"this":{"__isSmartRef__":true,"id":6608}},"6673":{},"6674":{"varMapping":{"__isSmartRef__":true,"id":6675},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6675":{"this":{"__isSmartRef__":true,"id":6608}},"6676":{},"6677":{"_Position":{"__isSmartRef__":true,"id":6678},"renderContextTable":{"__isSmartRef__":true,"id":6679},"_Extent":{"__isSmartRef__":true,"id":6680},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6681},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6678":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6679":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6680":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6681":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6682":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6683":{"morph":{"__isSmartRef__":true,"id":6607},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6684":{"layouter":{"__isSmartRef__":true,"id":6685},"resizeWidth":true},"6685":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6607},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6686":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6687":{"x":0,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6688":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6689}},"6689":{"varMapping":{"__isSmartRef__":true,"id":6690},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6690":{"this":{"__isSmartRef__":true,"id":6607},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6691}},"6691":{"$super":{"__isSmartRef__":true,"id":6692}},"6692":{"varMapping":{"__isSmartRef__":true,"id":6693},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6693":{"obj":{"__isSmartRef__":true,"id":6607},"name":"getLayoutableSubmorphs"},"6694":{},"6695":{},"6696":{"submorphs":[{"__isSmartRef__":true,"id":6697}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6766},"derivationIds":[null],"id":"CCFC37DF-A4CD-4E6B-9351-197131025EA7","renderContextTable":{"__isSmartRef__":true,"id":6771},"eventHandler":{"__isSmartRef__":true,"id":6772},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6773},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6775},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6776},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6777},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6697":{"submorphs":[{"__isSmartRef__":true,"id":6698},{"__isSmartRef__":true,"id":6719}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6736},"derivationIds":[null],"id":"8238B4A4-1F68-4FD7-A33A-E7F8D19E39FD","renderContextTable":{"__isSmartRef__":true,"id":6741},"eventHandler":{"__isSmartRef__":true,"id":6742},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6743},"grabbingEnabled":false,"draggingEnabled":false,"data":80,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"defaultCellWidth","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6698},"text":{"__isSmartRef__":true,"id":6719},"owner":{"__isSmartRef__":true,"id":6696},"_Position":{"__isSmartRef__":true,"id":6744},"priorExtent":{"__isSmartRef__":true,"id":6745},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6746},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6698":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6699},"derivationIds":[null],"id":"261447E1-06A4-424F-838E-241D697500EB","renderContextTable":{"__isSmartRef__":true,"id":6705},"eventHandler":{"__isSmartRef__":true,"id":6706},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6707},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6708},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6699":{"_Position":{"__isSmartRef__":true,"id":6700},"renderContextTable":{"__isSmartRef__":true,"id":6701},"_Extent":{"__isSmartRef__":true,"id":6702},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6703},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6704},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6700":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6701":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6702":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6703":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6704":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6705":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6706":{"morph":{"__isSmartRef__":true,"id":6698},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6707":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6708":{"toggle":{"__isSmartRef__":true,"id":6709},"toggleExpansion":{"__isSmartRef__":true,"id":6716}},"6709":{"varMapping":{"__isSmartRef__":true,"id":6710},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6710":{"this":{"__isSmartRef__":true,"id":6698},"__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":6698},"name":"toggle"},"6714":{},"6715":{},"6716":{"varMapping":{"__isSmartRef__":true,"id":6717},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6717":{"this":{"__isSmartRef__":true,"id":6698}},"6718":{},"6719":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6720},"derivationIds":[null],"id":"B767FF95-2D99-4AFB-BEC2-A86636491D0F","renderContextTable":{"__isSmartRef__":true,"id":6724},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6725},{"__isSmartRef__":true,"id":6727}],"eventHandler":{"__isSmartRef__":true,"id":6729},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6730},"priorExtent":{"__isSmartRef__":true,"id":6731},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6732},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6720":{"_Position":{"__isSmartRef__":true,"id":6721},"renderContextTable":{"__isSmartRef__":true,"id":6722},"_Extent":{"__isSmartRef__":true,"id":6723},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6721":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6722":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6723":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6724":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6725":{"style":{"__isSmartRef__":true,"id":6726},"chunkOwner":{"__isSmartRef__":true,"id":6719},"storedString":"defaultCellWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6726":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6727":{"style":{"__isSmartRef__":true,"id":6728},"chunkOwner":{"__isSmartRef__":true,"id":6719},"storedString":": 80","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6728":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6729":{"morph":{"__isSmartRef__":true,"id":6719},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6730":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6731":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6732":{"layoutText":{"__isSmartRef__":true,"id":6733}},"6733":{"varMapping":{"__isSmartRef__":true,"id":6734},"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":6735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6734":{"this":{"__isSmartRef__":true,"id":6719}},"6735":{},"6736":{"_Position":{"__isSmartRef__":true,"id":6737},"renderContextTable":{"__isSmartRef__":true,"id":6738},"_Extent":{"__isSmartRef__":true,"id":6739},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6740},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6737":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6738":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6739":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6740":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6741":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6742":{"morph":{"__isSmartRef__":true,"id":6697},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6743":{"resizeWidth":true},"6744":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6745":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6746":{"updateExpanderColor":{"__isSmartRef__":true,"id":6747},"onMouseDown":{"__isSmartRef__":true,"id":6750},"isRoot":{"__isSmartRef__":true,"id":6757},"displayValue":{"__isSmartRef__":true,"id":6760},"update":{"__isSmartRef__":true,"id":6763}},"6747":{"varMapping":{"__isSmartRef__":true,"id":6748},"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":6749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6748":{"this":{"__isSmartRef__":true,"id":6697}},"6749":{},"6750":{"varMapping":{"__isSmartRef__":true,"id":6751},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6751":{"this":{"__isSmartRef__":true,"id":6697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6752}},"6752":{"$super":{"__isSmartRef__":true,"id":6753}},"6753":{"varMapping":{"__isSmartRef__":true,"id":6754},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6754":{"obj":{"__isSmartRef__":true,"id":6697},"name":"onMouseDown"},"6755":{},"6756":{},"6757":{"varMapping":{"__isSmartRef__":true,"id":6758},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6758":{"this":{"__isSmartRef__":true,"id":6697}},"6759":{},"6760":{"varMapping":{"__isSmartRef__":true,"id":6761},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6761":{"this":{"__isSmartRef__":true,"id":6697}},"6762":{},"6763":{"varMapping":{"__isSmartRef__":true,"id":6764},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6764":{"this":{"__isSmartRef__":true,"id":6697}},"6765":{},"6766":{"_Position":{"__isSmartRef__":true,"id":6767},"renderContextTable":{"__isSmartRef__":true,"id":6768},"_Extent":{"__isSmartRef__":true,"id":6769},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6770},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6767":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6768":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6769":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6770":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6771":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6772":{"morph":{"__isSmartRef__":true,"id":6696},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6773":{"layouter":{"__isSmartRef__":true,"id":6774},"resizeWidth":true},"6774":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6696},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6775":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6776":{"x":0,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6777":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6778}},"6778":{"varMapping":{"__isSmartRef__":true,"id":6779},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6779":{"this":{"__isSmartRef__":true,"id":6696},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6780}},"6780":{"$super":{"__isSmartRef__":true,"id":6781}},"6781":{"varMapping":{"__isSmartRef__":true,"id":6782},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6782":{"obj":{"__isSmartRef__":true,"id":6696},"name":"getLayoutableSubmorphs"},"6783":{},"6784":{},"6785":{"submorphs":[{"__isSmartRef__":true,"id":6786}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6855},"derivationIds":[null],"id":"C4632EA3-E083-4E01-8E7B-4413B3180863","renderContextTable":{"__isSmartRef__":true,"id":6860},"eventHandler":{"__isSmartRef__":true,"id":6861},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6862},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6864},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6865},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6866},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6786":{"submorphs":[{"__isSmartRef__":true,"id":6787},{"__isSmartRef__":true,"id":6808}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6825},"derivationIds":[null],"id":"982932F4-0571-4346-928D-4AD95B48EB94","renderContextTable":{"__isSmartRef__":true,"id":6830},"eventHandler":{"__isSmartRef__":true,"id":6831},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6832},"grabbingEnabled":false,"draggingEnabled":false,"data":[null],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"derivationIds","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6787},"text":{"__isSmartRef__":true,"id":6808},"owner":{"__isSmartRef__":true,"id":6785},"_Position":{"__isSmartRef__":true,"id":6833},"priorExtent":{"__isSmartRef__":true,"id":6834},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6835},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6787":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6788},"derivationIds":[null],"id":"A4D8EA9A-1956-4206-85FC-A5489E3D0A19","renderContextTable":{"__isSmartRef__":true,"id":6794},"eventHandler":{"__isSmartRef__":true,"id":6795},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6796},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6797},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6788":{"_Position":{"__isSmartRef__":true,"id":6789},"renderContextTable":{"__isSmartRef__":true,"id":6790},"_Extent":{"__isSmartRef__":true,"id":6791},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6792},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6793},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6789":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6790":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6791":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6792":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6793":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6794":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6795":{"morph":{"__isSmartRef__":true,"id":6787},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6796":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6797":{"toggle":{"__isSmartRef__":true,"id":6798},"toggleExpansion":{"__isSmartRef__":true,"id":6805}},"6798":{"varMapping":{"__isSmartRef__":true,"id":6799},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6799":{"this":{"__isSmartRef__":true,"id":6787},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6800}},"6800":{"$super":{"__isSmartRef__":true,"id":6801}},"6801":{"varMapping":{"__isSmartRef__":true,"id":6802},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6802":{"obj":{"__isSmartRef__":true,"id":6787},"name":"toggle"},"6803":{},"6804":{},"6805":{"varMapping":{"__isSmartRef__":true,"id":6806},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6806":{"this":{"__isSmartRef__":true,"id":6787}},"6807":{},"6808":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6809},"derivationIds":[null],"id":"5BA82CDC-726B-4C56-A9FB-E4DD0F5717CD","renderContextTable":{"__isSmartRef__":true,"id":6813},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6814},{"__isSmartRef__":true,"id":6816}],"eventHandler":{"__isSmartRef__":true,"id":6818},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6819},"priorExtent":{"__isSmartRef__":true,"id":6820},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6821},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6809":{"_Position":{"__isSmartRef__":true,"id":6810},"renderContextTable":{"__isSmartRef__":true,"id":6811},"_Extent":{"__isSmartRef__":true,"id":6812},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6810":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6811":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6812":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6813":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6814":{"style":{"__isSmartRef__":true,"id":6815},"chunkOwner":{"__isSmartRef__":true,"id":6808},"storedString":"derivationIds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6815":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6816":{"style":{"__isSmartRef__":true,"id":6817},"chunkOwner":{"__isSmartRef__":true,"id":6808},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6817":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6818":{"morph":{"__isSmartRef__":true,"id":6808},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6819":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6820":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6821":{"layoutText":{"__isSmartRef__":true,"id":6822}},"6822":{"varMapping":{"__isSmartRef__":true,"id":6823},"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":6824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6823":{"this":{"__isSmartRef__":true,"id":6808}},"6824":{},"6825":{"_Position":{"__isSmartRef__":true,"id":6826},"renderContextTable":{"__isSmartRef__":true,"id":6827},"_Extent":{"__isSmartRef__":true,"id":6828},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6829},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6826":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6827":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6828":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6829":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6830":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6831":{"morph":{"__isSmartRef__":true,"id":6786},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6832":{"resizeWidth":true},"6833":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6834":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6835":{"updateExpanderColor":{"__isSmartRef__":true,"id":6836},"onMouseDown":{"__isSmartRef__":true,"id":6839},"isRoot":{"__isSmartRef__":true,"id":6846},"displayValue":{"__isSmartRef__":true,"id":6849},"update":{"__isSmartRef__":true,"id":6852}},"6836":{"varMapping":{"__isSmartRef__":true,"id":6837},"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":6838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6837":{"this":{"__isSmartRef__":true,"id":6786}},"6838":{},"6839":{"varMapping":{"__isSmartRef__":true,"id":6840},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6840":{"this":{"__isSmartRef__":true,"id":6786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6841}},"6841":{"$super":{"__isSmartRef__":true,"id":6842}},"6842":{"varMapping":{"__isSmartRef__":true,"id":6843},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6843":{"obj":{"__isSmartRef__":true,"id":6786},"name":"onMouseDown"},"6844":{},"6845":{},"6846":{"varMapping":{"__isSmartRef__":true,"id":6847},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6847":{"this":{"__isSmartRef__":true,"id":6786}},"6848":{},"6849":{"varMapping":{"__isSmartRef__":true,"id":6850},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6850":{"this":{"__isSmartRef__":true,"id":6786}},"6851":{},"6852":{"varMapping":{"__isSmartRef__":true,"id":6853},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6853":{"this":{"__isSmartRef__":true,"id":6786}},"6854":{},"6855":{"_Position":{"__isSmartRef__":true,"id":6856},"renderContextTable":{"__isSmartRef__":true,"id":6857},"_Extent":{"__isSmartRef__":true,"id":6858},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6856":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6857":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6858":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6859":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__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","adjustOrigin":"adjustOriginHTML","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":6785},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6862":{"layouter":{"__isSmartRef__":true,"id":6863},"resizeWidth":true},"6863":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6785},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6864":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6865":{"x":0,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6866":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6867}},"6867":{"varMapping":{"__isSmartRef__":true,"id":6868},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6868":{"this":{"__isSmartRef__":true,"id":6785},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6869}},"6869":{"$super":{"__isSmartRef__":true,"id":6870}},"6870":{"varMapping":{"__isSmartRef__":true,"id":6871},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6871":{"obj":{"__isSmartRef__":true,"id":6785},"name":"getLayoutableSubmorphs"},"6872":{},"6873":{},"6874":{"submorphs":[{"__isSmartRef__":true,"id":6875}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6944},"derivationIds":[null],"id":"65A8BC20-C2D0-4660-B21C-28A833DCE91F","renderContextTable":{"__isSmartRef__":true,"id":6949},"eventHandler":{"__isSmartRef__":true,"id":6950},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6951},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6953},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":6954},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6955},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6875":{"submorphs":[{"__isSmartRef__":true,"id":6876},{"__isSmartRef__":true,"id":6897}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6914},"derivationIds":[null],"id":"3752CA21-2A17-49E3-A2DF-F610FE2101CB","renderContextTable":{"__isSmartRef__":true,"id":6919},"eventHandler":{"__isSmartRef__":true,"id":6920},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6921},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":1463},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"distanceToDragEvent","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6876},"text":{"__isSmartRef__":true,"id":6897},"owner":{"__isSmartRef__":true,"id":6874},"_Position":{"__isSmartRef__":true,"id":6922},"priorExtent":{"__isSmartRef__":true,"id":6923},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6924},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6876":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6877},"derivationIds":[null],"id":"A940D60E-161F-46E6-AD0C-9B851D6FD21A","renderContextTable":{"__isSmartRef__":true,"id":6883},"eventHandler":{"__isSmartRef__":true,"id":6884},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6885},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6875},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6886},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6877":{"_Position":{"__isSmartRef__":true,"id":6878},"renderContextTable":{"__isSmartRef__":true,"id":6879},"_Extent":{"__isSmartRef__":true,"id":6880},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6881},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6882},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6878":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6879":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6880":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6881":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6882":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6884":{"morph":{"__isSmartRef__":true,"id":6876},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6885":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6886":{"toggle":{"__isSmartRef__":true,"id":6887},"toggleExpansion":{"__isSmartRef__":true,"id":6894}},"6887":{"varMapping":{"__isSmartRef__":true,"id":6888},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6888":{"this":{"__isSmartRef__":true,"id":6876},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6889}},"6889":{"$super":{"__isSmartRef__":true,"id":6890}},"6890":{"varMapping":{"__isSmartRef__":true,"id":6891},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6891":{"obj":{"__isSmartRef__":true,"id":6876},"name":"toggle"},"6892":{},"6893":{},"6894":{"varMapping":{"__isSmartRef__":true,"id":6895},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6895":{"this":{"__isSmartRef__":true,"id":6876}},"6896":{},"6897":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6898},"derivationIds":[null],"id":"BAAAF18E-850F-487B-8CEE-1459AFBD9C25","renderContextTable":{"__isSmartRef__":true,"id":6902},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6903},{"__isSmartRef__":true,"id":6905}],"eventHandler":{"__isSmartRef__":true,"id":6907},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6908},"priorExtent":{"__isSmartRef__":true,"id":6909},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6875},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6910},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6898":{"_Position":{"__isSmartRef__":true,"id":6899},"renderContextTable":{"__isSmartRef__":true,"id":6900},"_Extent":{"__isSmartRef__":true,"id":6901},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6899":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6900":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6901":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6902":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6903":{"style":{"__isSmartRef__":true,"id":6904},"chunkOwner":{"__isSmartRef__":true,"id":6897},"storedString":"distanceToDragEvent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6904":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6905":{"style":{"__isSmartRef__":true,"id":6906},"chunkOwner":{"__isSmartRef__":true,"id":6897},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6906":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6907":{"morph":{"__isSmartRef__":true,"id":6897},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6908":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6909":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6910":{"layoutText":{"__isSmartRef__":true,"id":6911}},"6911":{"varMapping":{"__isSmartRef__":true,"id":6912},"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":6913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6912":{"this":{"__isSmartRef__":true,"id":6897}},"6913":{},"6914":{"_Position":{"__isSmartRef__":true,"id":6915},"renderContextTable":{"__isSmartRef__":true,"id":6916},"_Extent":{"__isSmartRef__":true,"id":6917},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6918},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6915":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6916":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6917":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6918":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6919":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6920":{"morph":{"__isSmartRef__":true,"id":6875},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6921":{"resizeWidth":true},"6922":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6923":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6924":{"updateExpanderColor":{"__isSmartRef__":true,"id":6925},"onMouseDown":{"__isSmartRef__":true,"id":6928},"isRoot":{"__isSmartRef__":true,"id":6935},"displayValue":{"__isSmartRef__":true,"id":6938},"update":{"__isSmartRef__":true,"id":6941}},"6925":{"varMapping":{"__isSmartRef__":true,"id":6926},"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":6927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6926":{"this":{"__isSmartRef__":true,"id":6875}},"6927":{},"6928":{"varMapping":{"__isSmartRef__":true,"id":6929},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6929":{"this":{"__isSmartRef__":true,"id":6875},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6930}},"6930":{"$super":{"__isSmartRef__":true,"id":6931}},"6931":{"varMapping":{"__isSmartRef__":true,"id":6932},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6932":{"obj":{"__isSmartRef__":true,"id":6875},"name":"onMouseDown"},"6933":{},"6934":{},"6935":{"varMapping":{"__isSmartRef__":true,"id":6936},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6936":{"this":{"__isSmartRef__":true,"id":6875}},"6937":{},"6938":{"varMapping":{"__isSmartRef__":true,"id":6939},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":6940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6939":{"this":{"__isSmartRef__":true,"id":6875}},"6940":{},"6941":{"varMapping":{"__isSmartRef__":true,"id":6942},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6942":{"this":{"__isSmartRef__":true,"id":6875}},"6943":{},"6944":{"_Position":{"__isSmartRef__":true,"id":6945},"renderContextTable":{"__isSmartRef__":true,"id":6946},"_Extent":{"__isSmartRef__":true,"id":6947},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6948},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6945":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6946":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6947":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6948":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6949":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6950":{"morph":{"__isSmartRef__":true,"id":6874},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6951":{"layouter":{"__isSmartRef__":true,"id":6952},"resizeWidth":true},"6952":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6874},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6953":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6954":{"x":0,"y":260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6955":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6956}},"6956":{"varMapping":{"__isSmartRef__":true,"id":6957},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6957":{"this":{"__isSmartRef__":true,"id":6874},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6958}},"6958":{"$super":{"__isSmartRef__":true,"id":6959}},"6959":{"varMapping":{"__isSmartRef__":true,"id":6960},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6960":{"obj":{"__isSmartRef__":true,"id":6874},"name":"getLayoutableSubmorphs"},"6961":{},"6962":{},"6963":{"submorphs":[{"__isSmartRef__":true,"id":6964}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7033},"derivationIds":[null],"id":"5AFBC5FD-75D0-428F-A969-31C5C5F54ADB","renderContextTable":{"__isSmartRef__":true,"id":7038},"eventHandler":{"__isSmartRef__":true,"id":7039},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7040},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7042},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7043},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7044},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6964":{"submorphs":[{"__isSmartRef__":true,"id":6965},{"__isSmartRef__":true,"id":6986}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7003},"derivationIds":[null],"id":"E2E8DA85-FE65-4EB8-846C-37C72B1F884A","renderContextTable":{"__isSmartRef__":true,"id":7008},"eventHandler":{"__isSmartRef__":true,"id":7009},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7010},"grabbingEnabled":false,"draggingEnabled":false,"data":["$$activeCell"],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"doNotCopyProperties","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":6965},"text":{"__isSmartRef__":true,"id":6986},"owner":{"__isSmartRef__":true,"id":6963},"_Position":{"__isSmartRef__":true,"id":7011},"priorExtent":{"__isSmartRef__":true,"id":7012},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7013},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6965":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6966},"derivationIds":[null],"id":"0F42D154-5413-4571-B2F3-70EC678C3317","renderContextTable":{"__isSmartRef__":true,"id":6972},"eventHandler":{"__isSmartRef__":true,"id":6973},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6974},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6964},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6975},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6966":{"_Position":{"__isSmartRef__":true,"id":6967},"renderContextTable":{"__isSmartRef__":true,"id":6968},"_Extent":{"__isSmartRef__":true,"id":6969},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6970},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":6971},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6967":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6968":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6969":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6970":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"6971":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6972":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6973":{"morph":{"__isSmartRef__":true,"id":6965},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6974":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6975":{"toggle":{"__isSmartRef__":true,"id":6976},"toggleExpansion":{"__isSmartRef__":true,"id":6983}},"6976":{"varMapping":{"__isSmartRef__":true,"id":6977},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6977":{"this":{"__isSmartRef__":true,"id":6965},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6978}},"6978":{"$super":{"__isSmartRef__":true,"id":6979}},"6979":{"varMapping":{"__isSmartRef__":true,"id":6980},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6980":{"obj":{"__isSmartRef__":true,"id":6965},"name":"toggle"},"6981":{},"6982":{},"6983":{"varMapping":{"__isSmartRef__":true,"id":6984},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"6984":{"this":{"__isSmartRef__":true,"id":6965}},"6985":{},"6986":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6987},"derivationIds":[null],"id":"4365374A-D65C-4A04-A53C-779EB46B53CC","renderContextTable":{"__isSmartRef__":true,"id":6991},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6992},{"__isSmartRef__":true,"id":6994}],"eventHandler":{"__isSmartRef__":true,"id":6996},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":6997},"priorExtent":{"__isSmartRef__":true,"id":6998},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6964},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6999},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6987":{"_Position":{"__isSmartRef__":true,"id":6988},"renderContextTable":{"__isSmartRef__":true,"id":6989},"_Extent":{"__isSmartRef__":true,"id":6990},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6988":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6989":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6990":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6991":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6992":{"style":{"__isSmartRef__":true,"id":6993},"chunkOwner":{"__isSmartRef__":true,"id":6986},"storedString":"doNotCopyProperties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6993":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6994":{"style":{"__isSmartRef__":true,"id":6995},"chunkOwner":{"__isSmartRef__":true,"id":6986},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6995":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6996":{"morph":{"__isSmartRef__":true,"id":6986},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6997":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6998":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"6999":{"layoutText":{"__isSmartRef__":true,"id":7000}},"7000":{"varMapping":{"__isSmartRef__":true,"id":7001},"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":7002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7001":{"this":{"__isSmartRef__":true,"id":6986}},"7002":{},"7003":{"_Position":{"__isSmartRef__":true,"id":7004},"renderContextTable":{"__isSmartRef__":true,"id":7005},"_Extent":{"__isSmartRef__":true,"id":7006},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7007},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7004":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7005":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7006":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7007":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7008":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7009":{"morph":{"__isSmartRef__":true,"id":6964},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7010":{"resizeWidth":true},"7011":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7012":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7013":{"updateExpanderColor":{"__isSmartRef__":true,"id":7014},"onMouseDown":{"__isSmartRef__":true,"id":7017},"isRoot":{"__isSmartRef__":true,"id":7024},"displayValue":{"__isSmartRef__":true,"id":7027},"update":{"__isSmartRef__":true,"id":7030}},"7014":{"varMapping":{"__isSmartRef__":true,"id":7015},"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":7016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7015":{"this":{"__isSmartRef__":true,"id":6964}},"7016":{},"7017":{"varMapping":{"__isSmartRef__":true,"id":7018},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7018":{"this":{"__isSmartRef__":true,"id":6964},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7019}},"7019":{"$super":{"__isSmartRef__":true,"id":7020}},"7020":{"varMapping":{"__isSmartRef__":true,"id":7021},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7021":{"obj":{"__isSmartRef__":true,"id":6964},"name":"onMouseDown"},"7022":{},"7023":{},"7024":{"varMapping":{"__isSmartRef__":true,"id":7025},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7025":{"this":{"__isSmartRef__":true,"id":6964}},"7026":{},"7027":{"varMapping":{"__isSmartRef__":true,"id":7028},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7028":{"this":{"__isSmartRef__":true,"id":6964}},"7029":{},"7030":{"varMapping":{"__isSmartRef__":true,"id":7031},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7031":{"this":{"__isSmartRef__":true,"id":6964}},"7032":{},"7033":{"_Position":{"__isSmartRef__":true,"id":7034},"renderContextTable":{"__isSmartRef__":true,"id":7035},"_Extent":{"__isSmartRef__":true,"id":7036},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7037},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7034":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7035":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7036":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7037":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7038":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7039":{"morph":{"__isSmartRef__":true,"id":6963},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7040":{"layouter":{"__isSmartRef__":true,"id":7041},"resizeWidth":true},"7041":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6963},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7042":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7043":{"x":0,"y":280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7044":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7045}},"7045":{"varMapping":{"__isSmartRef__":true,"id":7046},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7046":{"this":{"__isSmartRef__":true,"id":6963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7047}},"7047":{"$super":{"__isSmartRef__":true,"id":7048}},"7048":{"varMapping":{"__isSmartRef__":true,"id":7049},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7049":{"obj":{"__isSmartRef__":true,"id":6963},"name":"getLayoutableSubmorphs"},"7050":{},"7051":{},"7052":{"submorphs":[{"__isSmartRef__":true,"id":7053}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7122},"derivationIds":[null],"id":"88090FFA-93B8-4F22-970C-1308A04F90EA","renderContextTable":{"__isSmartRef__":true,"id":7127},"eventHandler":{"__isSmartRef__":true,"id":7128},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7129},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7131},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7132},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7133},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7053":{"submorphs":[{"__isSmartRef__":true,"id":7054},{"__isSmartRef__":true,"id":7075}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7092},"derivationIds":[null],"id":"B79A8B34-A8CA-4794-AA73-22AB08D21F0A","renderContextTable":{"__isSmartRef__":true,"id":7097},"eventHandler":{"__isSmartRef__":true,"id":7098},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7099},"grabbingEnabled":false,"draggingEnabled":false,"data":["$$activeCell"],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"doNotSerialize","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7054},"text":{"__isSmartRef__":true,"id":7075},"owner":{"__isSmartRef__":true,"id":7052},"_Position":{"__isSmartRef__":true,"id":7100},"priorExtent":{"__isSmartRef__":true,"id":7101},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7102},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7054":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7055},"derivationIds":[null],"id":"D6B2A26B-A24F-4681-979A-9ADC18E885EE","renderContextTable":{"__isSmartRef__":true,"id":7061},"eventHandler":{"__isSmartRef__":true,"id":7062},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7063},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7064},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7055":{"_Position":{"__isSmartRef__":true,"id":7056},"renderContextTable":{"__isSmartRef__":true,"id":7057},"_Extent":{"__isSmartRef__":true,"id":7058},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7059},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7060},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7056":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7058":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7059":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7060":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7061":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7062":{"morph":{"__isSmartRef__":true,"id":7054},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7063":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7064":{"toggle":{"__isSmartRef__":true,"id":7065},"toggleExpansion":{"__isSmartRef__":true,"id":7072}},"7065":{"varMapping":{"__isSmartRef__":true,"id":7066},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7066":{"this":{"__isSmartRef__":true,"id":7054},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7067}},"7067":{"$super":{"__isSmartRef__":true,"id":7068}},"7068":{"varMapping":{"__isSmartRef__":true,"id":7069},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7069":{"obj":{"__isSmartRef__":true,"id":7054},"name":"toggle"},"7070":{},"7071":{},"7072":{"varMapping":{"__isSmartRef__":true,"id":7073},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7073":{"this":{"__isSmartRef__":true,"id":7054}},"7074":{},"7075":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7076},"derivationIds":[null],"id":"B1CD1A7C-7E6E-48F0-935E-4C3D9B3F0BDD","renderContextTable":{"__isSmartRef__":true,"id":7080},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7081},{"__isSmartRef__":true,"id":7083}],"eventHandler":{"__isSmartRef__":true,"id":7085},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7086},"priorExtent":{"__isSmartRef__":true,"id":7087},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7088},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7076":{"_Position":{"__isSmartRef__":true,"id":7077},"renderContextTable":{"__isSmartRef__":true,"id":7078},"_Extent":{"__isSmartRef__":true,"id":7079},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7077":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7078":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7079":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7080":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7081":{"style":{"__isSmartRef__":true,"id":7082},"chunkOwner":{"__isSmartRef__":true,"id":7075},"storedString":"doNotSerialize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7082":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7083":{"style":{"__isSmartRef__":true,"id":7084},"chunkOwner":{"__isSmartRef__":true,"id":7075},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7084":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7085":{"morph":{"__isSmartRef__":true,"id":7075},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7086":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7087":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7088":{"layoutText":{"__isSmartRef__":true,"id":7089}},"7089":{"varMapping":{"__isSmartRef__":true,"id":7090},"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":7091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7090":{"this":{"__isSmartRef__":true,"id":7075}},"7091":{},"7092":{"_Position":{"__isSmartRef__":true,"id":7093},"renderContextTable":{"__isSmartRef__":true,"id":7094},"_Extent":{"__isSmartRef__":true,"id":7095},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7096},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7093":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7094":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7095":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7096":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7097":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7098":{"morph":{"__isSmartRef__":true,"id":7053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7099":{"resizeWidth":true},"7100":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7101":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7102":{"updateExpanderColor":{"__isSmartRef__":true,"id":7103},"onMouseDown":{"__isSmartRef__":true,"id":7106},"isRoot":{"__isSmartRef__":true,"id":7113},"displayValue":{"__isSmartRef__":true,"id":7116},"update":{"__isSmartRef__":true,"id":7119}},"7103":{"varMapping":{"__isSmartRef__":true,"id":7104},"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":7105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7104":{"this":{"__isSmartRef__":true,"id":7053}},"7105":{},"7106":{"varMapping":{"__isSmartRef__":true,"id":7107},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7107":{"this":{"__isSmartRef__":true,"id":7053},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7108}},"7108":{"$super":{"__isSmartRef__":true,"id":7109}},"7109":{"varMapping":{"__isSmartRef__":true,"id":7110},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7110":{"obj":{"__isSmartRef__":true,"id":7053},"name":"onMouseDown"},"7111":{},"7112":{},"7113":{"varMapping":{"__isSmartRef__":true,"id":7114},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7114":{"this":{"__isSmartRef__":true,"id":7053}},"7115":{},"7116":{"varMapping":{"__isSmartRef__":true,"id":7117},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7117":{"this":{"__isSmartRef__":true,"id":7053}},"7118":{},"7119":{"varMapping":{"__isSmartRef__":true,"id":7120},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7120":{"this":{"__isSmartRef__":true,"id":7053}},"7121":{},"7122":{"_Position":{"__isSmartRef__":true,"id":7123},"renderContextTable":{"__isSmartRef__":true,"id":7124},"_Extent":{"__isSmartRef__":true,"id":7125},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7126},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7123":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7125":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7126":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7127":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7128":{"morph":{"__isSmartRef__":true,"id":7052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7129":{"layouter":{"__isSmartRef__":true,"id":7130},"resizeWidth":true},"7130":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7052},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7131":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7132":{"x":0,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7133":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7134}},"7134":{"varMapping":{"__isSmartRef__":true,"id":7135},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7135":{"this":{"__isSmartRef__":true,"id":7052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7136}},"7136":{"$super":{"__isSmartRef__":true,"id":7137}},"7137":{"varMapping":{"__isSmartRef__":true,"id":7138},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7138":{"obj":{"__isSmartRef__":true,"id":7052},"name":"getLayoutableSubmorphs"},"7139":{},"7140":{},"7141":{"submorphs":[{"__isSmartRef__":true,"id":7142}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7211},"derivationIds":[null],"id":"D0590828-878E-4A29-882D-0525C4909C0D","renderContextTable":{"__isSmartRef__":true,"id":7216},"eventHandler":{"__isSmartRef__":true,"id":7217},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7218},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7220},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7221},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7222},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7142":{"submorphs":[{"__isSmartRef__":true,"id":7143},{"__isSmartRef__":true,"id":7164}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7181},"derivationIds":[null],"id":"AD6FEA6C-3F2D-44FA-8769-FAF39FC85035","renderContextTable":{"__isSmartRef__":true,"id":7186},"eventHandler":{"__isSmartRef__":true,"id":7187},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7188},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"droppingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7143},"text":{"__isSmartRef__":true,"id":7164},"owner":{"__isSmartRef__":true,"id":7141},"_Position":{"__isSmartRef__":true,"id":7189},"priorExtent":{"__isSmartRef__":true,"id":7190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7191},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7143":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7144},"derivationIds":[null],"id":"7348C2A6-06AE-474C-B0F3-CBEA5D6B1030","renderContextTable":{"__isSmartRef__":true,"id":7150},"eventHandler":{"__isSmartRef__":true,"id":7151},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7152},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7153},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7144":{"_Position":{"__isSmartRef__":true,"id":7145},"renderContextTable":{"__isSmartRef__":true,"id":7146},"_Extent":{"__isSmartRef__":true,"id":7147},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7148},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7149},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7145":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7146":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7147":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7148":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7149":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7150":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7151":{"morph":{"__isSmartRef__":true,"id":7143},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7152":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7153":{"toggle":{"__isSmartRef__":true,"id":7154},"toggleExpansion":{"__isSmartRef__":true,"id":7161}},"7154":{"varMapping":{"__isSmartRef__":true,"id":7155},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7155":{"this":{"__isSmartRef__":true,"id":7143},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7156}},"7156":{"$super":{"__isSmartRef__":true,"id":7157}},"7157":{"varMapping":{"__isSmartRef__":true,"id":7158},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7158":{"obj":{"__isSmartRef__":true,"id":7143},"name":"toggle"},"7159":{},"7160":{},"7161":{"varMapping":{"__isSmartRef__":true,"id":7162},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7162":{"this":{"__isSmartRef__":true,"id":7143}},"7163":{},"7164":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7165},"derivationIds":[null],"id":"0077D0DE-0DFE-43F4-88B5-579D157EB5F7","renderContextTable":{"__isSmartRef__":true,"id":7169},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7170},{"__isSmartRef__":true,"id":7172}],"eventHandler":{"__isSmartRef__":true,"id":7174},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7175},"priorExtent":{"__isSmartRef__":true,"id":7176},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7177},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7165":{"_Position":{"__isSmartRef__":true,"id":7166},"renderContextTable":{"__isSmartRef__":true,"id":7167},"_Extent":{"__isSmartRef__":true,"id":7168},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7166":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7167":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7168":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7169":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7170":{"style":{"__isSmartRef__":true,"id":7171},"chunkOwner":{"__isSmartRef__":true,"id":7164},"storedString":"droppingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7171":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7172":{"style":{"__isSmartRef__":true,"id":7173},"chunkOwner":{"__isSmartRef__":true,"id":7164},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7173":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7174":{"morph":{"__isSmartRef__":true,"id":7164},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7175":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7176":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7177":{"layoutText":{"__isSmartRef__":true,"id":7178}},"7178":{"varMapping":{"__isSmartRef__":true,"id":7179},"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":7180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7179":{"this":{"__isSmartRef__":true,"id":7164}},"7180":{},"7181":{"_Position":{"__isSmartRef__":true,"id":7182},"renderContextTable":{"__isSmartRef__":true,"id":7183},"_Extent":{"__isSmartRef__":true,"id":7184},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7185},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7182":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7183":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7184":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7185":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7186":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7187":{"morph":{"__isSmartRef__":true,"id":7142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7188":{"resizeWidth":true},"7189":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7190":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7191":{"updateExpanderColor":{"__isSmartRef__":true,"id":7192},"onMouseDown":{"__isSmartRef__":true,"id":7195},"isRoot":{"__isSmartRef__":true,"id":7202},"displayValue":{"__isSmartRef__":true,"id":7205},"update":{"__isSmartRef__":true,"id":7208}},"7192":{"varMapping":{"__isSmartRef__":true,"id":7193},"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":7194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7193":{"this":{"__isSmartRef__":true,"id":7142}},"7194":{},"7195":{"varMapping":{"__isSmartRef__":true,"id":7196},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7196":{"this":{"__isSmartRef__":true,"id":7142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7197}},"7197":{"$super":{"__isSmartRef__":true,"id":7198}},"7198":{"varMapping":{"__isSmartRef__":true,"id":7199},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7199":{"obj":{"__isSmartRef__":true,"id":7142},"name":"onMouseDown"},"7200":{},"7201":{},"7202":{"varMapping":{"__isSmartRef__":true,"id":7203},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7203":{"this":{"__isSmartRef__":true,"id":7142}},"7204":{},"7205":{"varMapping":{"__isSmartRef__":true,"id":7206},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7206":{"this":{"__isSmartRef__":true,"id":7142}},"7207":{},"7208":{"varMapping":{"__isSmartRef__":true,"id":7209},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7209":{"this":{"__isSmartRef__":true,"id":7142}},"7210":{},"7211":{"_Position":{"__isSmartRef__":true,"id":7212},"renderContextTable":{"__isSmartRef__":true,"id":7213},"_Extent":{"__isSmartRef__":true,"id":7214},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7215},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7212":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7213":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7214":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7215":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7216":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7217":{"morph":{"__isSmartRef__":true,"id":7141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7218":{"layouter":{"__isSmartRef__":true,"id":7219},"resizeWidth":true},"7219":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7141},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7220":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7221":{"x":0,"y":320,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7222":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7223}},"7223":{"varMapping":{"__isSmartRef__":true,"id":7224},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7224":{"this":{"__isSmartRef__":true,"id":7141},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7225}},"7225":{"$super":{"__isSmartRef__":true,"id":7226}},"7226":{"varMapping":{"__isSmartRef__":true,"id":7227},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7227":{"obj":{"__isSmartRef__":true,"id":7141},"name":"getLayoutableSubmorphs"},"7228":{},"7229":{},"7230":{"submorphs":[{"__isSmartRef__":true,"id":7231}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7300},"derivationIds":[null],"id":"900BB65C-936E-43FC-BE17-DF18F7C553DF","renderContextTable":{"__isSmartRef__":true,"id":7305},"eventHandler":{"__isSmartRef__":true,"id":7306},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7307},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7309},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7310},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7311},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7231":{"submorphs":[{"__isSmartRef__":true,"id":7232},{"__isSmartRef__":true,"id":7253}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7270},"derivationIds":[null],"id":"6C760CCD-FA68-4F56-B127-08F8277F480B","renderContextTable":{"__isSmartRef__":true,"id":7275},"eventHandler":{"__isSmartRef__":true,"id":7276},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7277},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":1458},"propertyList":["morph","dispatchTable"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"eventHandler","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7232},"text":{"__isSmartRef__":true,"id":7253},"owner":{"__isSmartRef__":true,"id":7230},"_Position":{"__isSmartRef__":true,"id":7278},"priorExtent":{"__isSmartRef__":true,"id":7279},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7280},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7232":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7233},"derivationIds":[null],"id":"7C1F7B33-E331-4EF3-8514-C2430D8AB693","renderContextTable":{"__isSmartRef__":true,"id":7239},"eventHandler":{"__isSmartRef__":true,"id":7240},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7241},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7242},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7233":{"_Position":{"__isSmartRef__":true,"id":7234},"renderContextTable":{"__isSmartRef__":true,"id":7235},"_Extent":{"__isSmartRef__":true,"id":7236},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7237},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7238},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7234":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7235":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7236":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7237":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7238":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7239":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7240":{"morph":{"__isSmartRef__":true,"id":7232},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7241":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7242":{"toggle":{"__isSmartRef__":true,"id":7243},"toggleExpansion":{"__isSmartRef__":true,"id":7250}},"7243":{"varMapping":{"__isSmartRef__":true,"id":7244},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7244":{"this":{"__isSmartRef__":true,"id":7232},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7245}},"7245":{"$super":{"__isSmartRef__":true,"id":7246}},"7246":{"varMapping":{"__isSmartRef__":true,"id":7247},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7247":{"obj":{"__isSmartRef__":true,"id":7232},"name":"toggle"},"7248":{},"7249":{},"7250":{"varMapping":{"__isSmartRef__":true,"id":7251},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7251":{"this":{"__isSmartRef__":true,"id":7232}},"7252":{},"7253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7254},"derivationIds":[null],"id":"16DF8C01-76DA-4505-8EF3-BD921B68EE03","renderContextTable":{"__isSmartRef__":true,"id":7258},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7259},{"__isSmartRef__":true,"id":7261}],"eventHandler":{"__isSmartRef__":true,"id":7263},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7264},"priorExtent":{"__isSmartRef__":true,"id":7265},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7266},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7254":{"_Position":{"__isSmartRef__":true,"id":7255},"renderContextTable":{"__isSmartRef__":true,"id":7256},"_Extent":{"__isSmartRef__":true,"id":7257},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__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":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7258":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7259":{"style":{"__isSmartRef__":true,"id":7260},"chunkOwner":{"__isSmartRef__":true,"id":7253},"storedString":"eventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7260":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7261":{"style":{"__isSmartRef__":true,"id":7262},"chunkOwner":{"__isSmartRef__":true,"id":7253},"storedString":": EventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7262":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7263":{"morph":{"__isSmartRef__":true,"id":7253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7264":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7265":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7266":{"layoutText":{"__isSmartRef__":true,"id":7267}},"7267":{"varMapping":{"__isSmartRef__":true,"id":7268},"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":7269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7268":{"this":{"__isSmartRef__":true,"id":7253}},"7269":{},"7270":{"_Position":{"__isSmartRef__":true,"id":7271},"renderContextTable":{"__isSmartRef__":true,"id":7272},"_Extent":{"__isSmartRef__":true,"id":7273},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7274},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7271":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7272":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7273":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7274":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7275":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7276":{"morph":{"__isSmartRef__":true,"id":7231},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7277":{"resizeWidth":true},"7278":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7279":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7280":{"updateExpanderColor":{"__isSmartRef__":true,"id":7281},"onMouseDown":{"__isSmartRef__":true,"id":7284},"isRoot":{"__isSmartRef__":true,"id":7291},"displayValue":{"__isSmartRef__":true,"id":7294},"update":{"__isSmartRef__":true,"id":7297}},"7281":{"varMapping":{"__isSmartRef__":true,"id":7282},"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":7283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7282":{"this":{"__isSmartRef__":true,"id":7231}},"7283":{},"7284":{"varMapping":{"__isSmartRef__":true,"id":7285},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7285":{"this":{"__isSmartRef__":true,"id":7231},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7286}},"7286":{"$super":{"__isSmartRef__":true,"id":7287}},"7287":{"varMapping":{"__isSmartRef__":true,"id":7288},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7288":{"obj":{"__isSmartRef__":true,"id":7231},"name":"onMouseDown"},"7289":{},"7290":{},"7291":{"varMapping":{"__isSmartRef__":true,"id":7292},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7292":{"this":{"__isSmartRef__":true,"id":7231}},"7293":{},"7294":{"varMapping":{"__isSmartRef__":true,"id":7295},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7295":{"this":{"__isSmartRef__":true,"id":7231}},"7296":{},"7297":{"varMapping":{"__isSmartRef__":true,"id":7298},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7298":{"this":{"__isSmartRef__":true,"id":7231}},"7299":{},"7300":{"_Position":{"__isSmartRef__":true,"id":7301},"renderContextTable":{"__isSmartRef__":true,"id":7302},"_Extent":{"__isSmartRef__":true,"id":7303},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7304},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7301":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7302":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7303":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7304":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7305":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7306":{"morph":{"__isSmartRef__":true,"id":7230},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7307":{"layouter":{"__isSmartRef__":true,"id":7308},"resizeWidth":true},"7308":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7230},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7309":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7310":{"x":0,"y":340,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7311":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7312}},"7312":{"varMapping":{"__isSmartRef__":true,"id":7313},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7313":{"this":{"__isSmartRef__":true,"id":7230},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7314}},"7314":{"$super":{"__isSmartRef__":true,"id":7315}},"7315":{"varMapping":{"__isSmartRef__":true,"id":7316},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7316":{"obj":{"__isSmartRef__":true,"id":7230},"name":"getLayoutableSubmorphs"},"7317":{},"7318":{},"7319":{"submorphs":[{"__isSmartRef__":true,"id":7320}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7389},"derivationIds":[null],"id":"91593D92-5C0C-4330-9C85-E02251CD61AA","renderContextTable":{"__isSmartRef__":true,"id":7394},"eventHandler":{"__isSmartRef__":true,"id":7395},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7396},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7398},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7399},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7400},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7320":{"submorphs":[{"__isSmartRef__":true,"id":7321},{"__isSmartRef__":true,"id":7342}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7359},"derivationIds":[null],"id":"8BB8C947-E8AA-4127-B973-87D88915574E","renderContextTable":{"__isSmartRef__":true,"id":7364},"eventHandler":{"__isSmartRef__":true,"id":7365},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7366},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"halos","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7321},"text":{"__isSmartRef__":true,"id":7342},"owner":{"__isSmartRef__":true,"id":7319},"_Position":{"__isSmartRef__":true,"id":7367},"priorExtent":{"__isSmartRef__":true,"id":7368},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7369},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7321":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7322},"derivationIds":[null],"id":"EB250C1A-CB5D-41D5-95B8-04477BC244A8","renderContextTable":{"__isSmartRef__":true,"id":7328},"eventHandler":{"__isSmartRef__":true,"id":7329},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7330},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7331},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7322":{"_Position":{"__isSmartRef__":true,"id":7323},"renderContextTable":{"__isSmartRef__":true,"id":7324},"_Extent":{"__isSmartRef__":true,"id":7325},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7326},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7327},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7323":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7324":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7325":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7326":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7327":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7328":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7329":{"morph":{"__isSmartRef__":true,"id":7321},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7330":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7331":{"toggle":{"__isSmartRef__":true,"id":7332},"toggleExpansion":{"__isSmartRef__":true,"id":7339}},"7332":{"varMapping":{"__isSmartRef__":true,"id":7333},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7333":{"this":{"__isSmartRef__":true,"id":7321},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7334}},"7334":{"$super":{"__isSmartRef__":true,"id":7335}},"7335":{"varMapping":{"__isSmartRef__":true,"id":7336},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7336":{"obj":{"__isSmartRef__":true,"id":7321},"name":"toggle"},"7337":{},"7338":{},"7339":{"varMapping":{"__isSmartRef__":true,"id":7340},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7340":{"this":{"__isSmartRef__":true,"id":7321}},"7341":{},"7342":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7343},"derivationIds":[null],"id":"23DF56DD-A4EC-4551-8C81-828B6AC58106","renderContextTable":{"__isSmartRef__":true,"id":7347},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7348},{"__isSmartRef__":true,"id":7350}],"eventHandler":{"__isSmartRef__":true,"id":7352},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7353},"priorExtent":{"__isSmartRef__":true,"id":7354},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7355},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7343":{"_Position":{"__isSmartRef__":true,"id":7344},"renderContextTable":{"__isSmartRef__":true,"id":7345},"_Extent":{"__isSmartRef__":true,"id":7346},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7344":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7345":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7346":{"x":75.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7347":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7348":{"style":{"__isSmartRef__":true,"id":7349},"chunkOwner":{"__isSmartRef__":true,"id":7342},"storedString":"halos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7349":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7350":{"style":{"__isSmartRef__":true,"id":7351},"chunkOwner":{"__isSmartRef__":true,"id":7342},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7351":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7352":{"morph":{"__isSmartRef__":true,"id":7342},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7353":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7354":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7355":{"layoutText":{"__isSmartRef__":true,"id":7356}},"7356":{"varMapping":{"__isSmartRef__":true,"id":7357},"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":7358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7357":{"this":{"__isSmartRef__":true,"id":7342}},"7358":{},"7359":{"_Position":{"__isSmartRef__":true,"id":7360},"renderContextTable":{"__isSmartRef__":true,"id":7361},"_Extent":{"__isSmartRef__":true,"id":7362},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7363},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7360":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7361":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7362":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7363":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7364":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7365":{"morph":{"__isSmartRef__":true,"id":7320},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7366":{"resizeWidth":true},"7367":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7368":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7369":{"updateExpanderColor":{"__isSmartRef__":true,"id":7370},"onMouseDown":{"__isSmartRef__":true,"id":7373},"isRoot":{"__isSmartRef__":true,"id":7380},"displayValue":{"__isSmartRef__":true,"id":7383},"update":{"__isSmartRef__":true,"id":7386}},"7370":{"varMapping":{"__isSmartRef__":true,"id":7371},"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":7372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7371":{"this":{"__isSmartRef__":true,"id":7320}},"7372":{},"7373":{"varMapping":{"__isSmartRef__":true,"id":7374},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7374":{"this":{"__isSmartRef__":true,"id":7320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7375}},"7375":{"$super":{"__isSmartRef__":true,"id":7376}},"7376":{"varMapping":{"__isSmartRef__":true,"id":7377},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7377":{"obj":{"__isSmartRef__":true,"id":7320},"name":"onMouseDown"},"7378":{},"7379":{},"7380":{"varMapping":{"__isSmartRef__":true,"id":7381},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7381":{"this":{"__isSmartRef__":true,"id":7320}},"7382":{},"7383":{"varMapping":{"__isSmartRef__":true,"id":7384},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7384":{"this":{"__isSmartRef__":true,"id":7320}},"7385":{},"7386":{"varMapping":{"__isSmartRef__":true,"id":7387},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7387":{"this":{"__isSmartRef__":true,"id":7320}},"7388":{},"7389":{"_Position":{"__isSmartRef__":true,"id":7390},"renderContextTable":{"__isSmartRef__":true,"id":7391},"_Extent":{"__isSmartRef__":true,"id":7392},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7393},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7390":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7391":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7392":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7393":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7394":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7395":{"morph":{"__isSmartRef__":true,"id":7319},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7396":{"layouter":{"__isSmartRef__":true,"id":7397},"resizeWidth":true},"7397":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7319},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7398":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7399":{"x":0,"y":360,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7400":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7401}},"7401":{"varMapping":{"__isSmartRef__":true,"id":7402},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7402":{"this":{"__isSmartRef__":true,"id":7319},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7403}},"7403":{"$super":{"__isSmartRef__":true,"id":7404}},"7404":{"varMapping":{"__isSmartRef__":true,"id":7405},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7405":{"obj":{"__isSmartRef__":true,"id":7319},"name":"getLayoutableSubmorphs"},"7406":{},"7407":{},"7408":{"submorphs":[{"__isSmartRef__":true,"id":7409}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7478},"derivationIds":[null],"id":"E63B099E-B4DA-42ED-B6BC-6CC2E5877DD3","renderContextTable":{"__isSmartRef__":true,"id":7483},"eventHandler":{"__isSmartRef__":true,"id":7484},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7485},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7487},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7488},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7489},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7409":{"submorphs":[{"__isSmartRef__":true,"id":7410},{"__isSmartRef__":true,"id":7431}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7448},"derivationIds":[null],"id":"76F3C50D-C650-43CC-ADD3-7B3F47FCD2D2","renderContextTable":{"__isSmartRef__":true,"id":7453},"eventHandler":{"__isSmartRef__":true,"id":7454},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7455},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"halosEnabled","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7410},"text":{"__isSmartRef__":true,"id":7431},"owner":{"__isSmartRef__":true,"id":7408},"_Position":{"__isSmartRef__":true,"id":7456},"priorExtent":{"__isSmartRef__":true,"id":7457},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7458},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7410":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7411},"derivationIds":[null],"id":"AEE58662-7ADA-49EC-A528-3B14A92DEB23","renderContextTable":{"__isSmartRef__":true,"id":7417},"eventHandler":{"__isSmartRef__":true,"id":7418},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7419},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7409},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7420},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7411":{"_Position":{"__isSmartRef__":true,"id":7412},"renderContextTable":{"__isSmartRef__":true,"id":7413},"_Extent":{"__isSmartRef__":true,"id":7414},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7415},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7416},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7412":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7413":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7414":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7415":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7416":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7417":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7418":{"morph":{"__isSmartRef__":true,"id":7410},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7419":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7420":{"toggle":{"__isSmartRef__":true,"id":7421},"toggleExpansion":{"__isSmartRef__":true,"id":7428}},"7421":{"varMapping":{"__isSmartRef__":true,"id":7422},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7422":{"this":{"__isSmartRef__":true,"id":7410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7423}},"7423":{"$super":{"__isSmartRef__":true,"id":7424}},"7424":{"varMapping":{"__isSmartRef__":true,"id":7425},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7425":{"obj":{"__isSmartRef__":true,"id":7410},"name":"toggle"},"7426":{},"7427":{},"7428":{"varMapping":{"__isSmartRef__":true,"id":7429},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7429":{"this":{"__isSmartRef__":true,"id":7410}},"7430":{},"7431":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7432},"derivationIds":[null],"id":"89702307-AA93-4760-8A8F-06EA0115D1E7","renderContextTable":{"__isSmartRef__":true,"id":7436},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7437},{"__isSmartRef__":true,"id":7439}],"eventHandler":{"__isSmartRef__":true,"id":7441},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7442},"priorExtent":{"__isSmartRef__":true,"id":7443},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7409},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7444},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7432":{"_Position":{"__isSmartRef__":true,"id":7433},"renderContextTable":{"__isSmartRef__":true,"id":7434},"_Extent":{"__isSmartRef__":true,"id":7435},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__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":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7436":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7437":{"style":{"__isSmartRef__":true,"id":7438},"chunkOwner":{"__isSmartRef__":true,"id":7431},"storedString":"halosEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7438":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7439":{"style":{"__isSmartRef__":true,"id":7440},"chunkOwner":{"__isSmartRef__":true,"id":7431},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7440":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7441":{"morph":{"__isSmartRef__":true,"id":7431},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7442":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7443":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7444":{"layoutText":{"__isSmartRef__":true,"id":7445}},"7445":{"varMapping":{"__isSmartRef__":true,"id":7446},"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":7447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7446":{"this":{"__isSmartRef__":true,"id":7431}},"7447":{},"7448":{"_Position":{"__isSmartRef__":true,"id":7449},"renderContextTable":{"__isSmartRef__":true,"id":7450},"_Extent":{"__isSmartRef__":true,"id":7451},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7452},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7449":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7450":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7451":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7452":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7453":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7454":{"morph":{"__isSmartRef__":true,"id":7409},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7455":{"resizeWidth":true},"7456":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7457":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7458":{"updateExpanderColor":{"__isSmartRef__":true,"id":7459},"onMouseDown":{"__isSmartRef__":true,"id":7462},"isRoot":{"__isSmartRef__":true,"id":7469},"displayValue":{"__isSmartRef__":true,"id":7472},"update":{"__isSmartRef__":true,"id":7475}},"7459":{"varMapping":{"__isSmartRef__":true,"id":7460},"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":7461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7460":{"this":{"__isSmartRef__":true,"id":7409}},"7461":{},"7462":{"varMapping":{"__isSmartRef__":true,"id":7463},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7463":{"this":{"__isSmartRef__":true,"id":7409},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7464}},"7464":{"$super":{"__isSmartRef__":true,"id":7465}},"7465":{"varMapping":{"__isSmartRef__":true,"id":7466},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7466":{"obj":{"__isSmartRef__":true,"id":7409},"name":"onMouseDown"},"7467":{},"7468":{},"7469":{"varMapping":{"__isSmartRef__":true,"id":7470},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7470":{"this":{"__isSmartRef__":true,"id":7409}},"7471":{},"7472":{"varMapping":{"__isSmartRef__":true,"id":7473},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7473":{"this":{"__isSmartRef__":true,"id":7409}},"7474":{},"7475":{"varMapping":{"__isSmartRef__":true,"id":7476},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7476":{"this":{"__isSmartRef__":true,"id":7409}},"7477":{},"7478":{"_Position":{"__isSmartRef__":true,"id":7479},"renderContextTable":{"__isSmartRef__":true,"id":7480},"_Extent":{"__isSmartRef__":true,"id":7481},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7482},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7479":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7480":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7481":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7482":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7484":{"morph":{"__isSmartRef__":true,"id":7408},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7485":{"layouter":{"__isSmartRef__":true,"id":7486},"resizeWidth":true},"7486":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7408},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7487":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7488":{"x":0,"y":380,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7489":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7490}},"7490":{"varMapping":{"__isSmartRef__":true,"id":7491},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7491":{"this":{"__isSmartRef__":true,"id":7408},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7492}},"7492":{"$super":{"__isSmartRef__":true,"id":7493}},"7493":{"varMapping":{"__isSmartRef__":true,"id":7494},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7494":{"obj":{"__isSmartRef__":true,"id":7408},"name":"getLayoutableSubmorphs"},"7495":{},"7496":{},"7497":{"submorphs":[{"__isSmartRef__":true,"id":7498}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7567},"derivationIds":[null],"id":"C27D5B90-1A9D-4235-AF00-DA05DBABE566","renderContextTable":{"__isSmartRef__":true,"id":7572},"eventHandler":{"__isSmartRef__":true,"id":7573},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7574},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7576},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7577},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7578},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7498":{"submorphs":[{"__isSmartRef__":true,"id":7499},{"__isSmartRef__":true,"id":7520}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7537},"derivationIds":[null],"id":"EF888EEC-2D72-4F27-B97E-49AD3D3CEC8E","renderContextTable":{"__isSmartRef__":true,"id":7542},"eventHandler":{"__isSmartRef__":true,"id":7543},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7544},"grabbingEnabled":false,"draggingEnabled":false,"data":"A56782CB-E8DD-4D1C-9826-B4E65E1411E2","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":5696},"label":"id","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7499},"text":{"__isSmartRef__":true,"id":7520},"owner":{"__isSmartRef__":true,"id":7497},"_Position":{"__isSmartRef__":true,"id":7545},"priorExtent":{"__isSmartRef__":true,"id":7546},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7547},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7499":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7500},"derivationIds":[null],"id":"3F3612A9-CF4E-4FB4-AE9D-8AC5627C7034","renderContextTable":{"__isSmartRef__":true,"id":7506},"eventHandler":{"__isSmartRef__":true,"id":7507},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7508},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7509},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7500":{"_Position":{"__isSmartRef__":true,"id":7501},"renderContextTable":{"__isSmartRef__":true,"id":7502},"_Extent":{"__isSmartRef__":true,"id":7503},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7504},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7505},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7501":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7502":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7503":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7504":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7505":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7506":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7507":{"morph":{"__isSmartRef__":true,"id":7499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7508":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7509":{"toggle":{"__isSmartRef__":true,"id":7510},"toggleExpansion":{"__isSmartRef__":true,"id":7517}},"7510":{"varMapping":{"__isSmartRef__":true,"id":7511},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7511":{"this":{"__isSmartRef__":true,"id":7499},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7512}},"7512":{"$super":{"__isSmartRef__":true,"id":7513}},"7513":{"varMapping":{"__isSmartRef__":true,"id":7514},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7514":{"obj":{"__isSmartRef__":true,"id":7499},"name":"toggle"},"7515":{},"7516":{},"7517":{"varMapping":{"__isSmartRef__":true,"id":7518},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7518":{"this":{"__isSmartRef__":true,"id":7499}},"7519":{},"7520":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7521},"derivationIds":[null],"id":"F3D11D28-18BF-405C-A777-BA440574E1D3","renderContextTable":{"__isSmartRef__":true,"id":7525},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7526},{"__isSmartRef__":true,"id":7528}],"eventHandler":{"__isSmartRef__":true,"id":7530},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7531},"priorExtent":{"__isSmartRef__":true,"id":7532},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7533},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7521":{"_Position":{"__isSmartRef__":true,"id":7522},"renderContextTable":{"__isSmartRef__":true,"id":7523},"_Extent":{"__isSmartRef__":true,"id":7524},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7522":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7523":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7524":{"x":308,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7525":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7526":{"style":{"__isSmartRef__":true,"id":7527},"chunkOwner":{"__isSmartRef__":true,"id":7520},"storedString":"id","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7527":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7528":{"style":{"__isSmartRef__":true,"id":7529},"chunkOwner":{"__isSmartRef__":true,"id":7520},"storedString":": A56782CB-E8DD-4D1C-9826-B4E65E1411E2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7529":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7530":{"morph":{"__isSmartRef__":true,"id":7520},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7531":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7532":{"x":300,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7533":{"layoutText":{"__isSmartRef__":true,"id":7534}},"7534":{"varMapping":{"__isSmartRef__":true,"id":7535},"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":7536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7535":{"this":{"__isSmartRef__":true,"id":7520}},"7536":{},"7537":{"_Position":{"__isSmartRef__":true,"id":7538},"renderContextTable":{"__isSmartRef__":true,"id":7539},"_Extent":{"__isSmartRef__":true,"id":7540},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7541},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7538":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7539":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7540":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7541":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7542":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7543":{"morph":{"__isSmartRef__":true,"id":7498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7544":{"resizeWidth":true},"7545":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7546":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7547":{"updateExpanderColor":{"__isSmartRef__":true,"id":7548},"onMouseDown":{"__isSmartRef__":true,"id":7551},"isRoot":{"__isSmartRef__":true,"id":7558},"displayValue":{"__isSmartRef__":true,"id":7561},"update":{"__isSmartRef__":true,"id":7564}},"7548":{"varMapping":{"__isSmartRef__":true,"id":7549},"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":7550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7549":{"this":{"__isSmartRef__":true,"id":7498}},"7550":{},"7551":{"varMapping":{"__isSmartRef__":true,"id":7552},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7552":{"this":{"__isSmartRef__":true,"id":7498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7553}},"7553":{"$super":{"__isSmartRef__":true,"id":7554}},"7554":{"varMapping":{"__isSmartRef__":true,"id":7555},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7555":{"obj":{"__isSmartRef__":true,"id":7498},"name":"onMouseDown"},"7556":{},"7557":{},"7558":{"varMapping":{"__isSmartRef__":true,"id":7559},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7559":{"this":{"__isSmartRef__":true,"id":7498}},"7560":{},"7561":{"varMapping":{"__isSmartRef__":true,"id":7562},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7562":{"this":{"__isSmartRef__":true,"id":7498}},"7563":{},"7564":{"varMapping":{"__isSmartRef__":true,"id":7565},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7565":{"this":{"__isSmartRef__":true,"id":7498}},"7566":{},"7567":{"_Position":{"__isSmartRef__":true,"id":7568},"renderContextTable":{"__isSmartRef__":true,"id":7569},"_Extent":{"__isSmartRef__":true,"id":7570},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7571},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7568":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7569":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7570":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7571":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7572":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7573":{"morph":{"__isSmartRef__":true,"id":7497},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7574":{"layouter":{"__isSmartRef__":true,"id":7575},"resizeWidth":true},"7575":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7497},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7576":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7577":{"x":0,"y":400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7578":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7579}},"7579":{"varMapping":{"__isSmartRef__":true,"id":7580},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7580":{"this":{"__isSmartRef__":true,"id":7497},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7581}},"7581":{"$super":{"__isSmartRef__":true,"id":7582}},"7582":{"varMapping":{"__isSmartRef__":true,"id":7583},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7583":{"obj":{"__isSmartRef__":true,"id":7497},"name":"getLayoutableSubmorphs"},"7584":{},"7585":{},"7586":{"submorphs":[{"__isSmartRef__":true,"id":7587}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7656},"derivationIds":[null],"id":"167343C3-38CE-46F8-844B-1222D995A3BC","renderContextTable":{"__isSmartRef__":true,"id":7661},"eventHandler":{"__isSmartRef__":true,"id":7662},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7663},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7665},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7666},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7667},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7587":{"submorphs":[{"__isSmartRef__":true,"id":7588},{"__isSmartRef__":true,"id":7609}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7626},"derivationIds":[null],"id":"07CCAD93-63E0-497F-89E9-B6E8A2FC5B86","renderContextTable":{"__isSmartRef__":true,"id":7631},"eventHandler":{"__isSmartRef__":true,"id":7632},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7633},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"isInLayoutCycle","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7588},"text":{"__isSmartRef__":true,"id":7609},"owner":{"__isSmartRef__":true,"id":7586},"_Position":{"__isSmartRef__":true,"id":7634},"priorExtent":{"__isSmartRef__":true,"id":7635},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7636},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7588":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7589},"derivationIds":[null],"id":"75EEA49D-52F9-4C1A-AE24-EC94730D8537","renderContextTable":{"__isSmartRef__":true,"id":7595},"eventHandler":{"__isSmartRef__":true,"id":7596},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7597},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7587},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7598},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7589":{"_Position":{"__isSmartRef__":true,"id":7590},"renderContextTable":{"__isSmartRef__":true,"id":7591},"_Extent":{"__isSmartRef__":true,"id":7592},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7593},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7594},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7590":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7591":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7592":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7593":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7594":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7595":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7596":{"morph":{"__isSmartRef__":true,"id":7588},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7597":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7598":{"toggle":{"__isSmartRef__":true,"id":7599},"toggleExpansion":{"__isSmartRef__":true,"id":7606}},"7599":{"varMapping":{"__isSmartRef__":true,"id":7600},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7600":{"this":{"__isSmartRef__":true,"id":7588},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7601}},"7601":{"$super":{"__isSmartRef__":true,"id":7602}},"7602":{"varMapping":{"__isSmartRef__":true,"id":7603},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7603":{"obj":{"__isSmartRef__":true,"id":7588},"name":"toggle"},"7604":{},"7605":{},"7606":{"varMapping":{"__isSmartRef__":true,"id":7607},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7607":{"this":{"__isSmartRef__":true,"id":7588}},"7608":{},"7609":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7610},"derivationIds":[null],"id":"088EF0D4-FEDA-48B7-8E34-51A40224C034","renderContextTable":{"__isSmartRef__":true,"id":7614},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7615},{"__isSmartRef__":true,"id":7617}],"eventHandler":{"__isSmartRef__":true,"id":7619},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7620},"priorExtent":{"__isSmartRef__":true,"id":7621},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7587},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7622},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7610":{"_Position":{"__isSmartRef__":true,"id":7611},"renderContextTable":{"__isSmartRef__":true,"id":7612},"_Extent":{"__isSmartRef__":true,"id":7613},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7611":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7612":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7613":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7614":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7615":{"style":{"__isSmartRef__":true,"id":7616},"chunkOwner":{"__isSmartRef__":true,"id":7609},"storedString":"isInLayoutCycle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7616":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7617":{"style":{"__isSmartRef__":true,"id":7618},"chunkOwner":{"__isSmartRef__":true,"id":7609},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7618":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7619":{"morph":{"__isSmartRef__":true,"id":7609},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7620":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7621":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7622":{"layoutText":{"__isSmartRef__":true,"id":7623}},"7623":{"varMapping":{"__isSmartRef__":true,"id":7624},"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":7625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7624":{"this":{"__isSmartRef__":true,"id":7609}},"7625":{},"7626":{"_Position":{"__isSmartRef__":true,"id":7627},"renderContextTable":{"__isSmartRef__":true,"id":7628},"_Extent":{"__isSmartRef__":true,"id":7629},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7630},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7627":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7628":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7629":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7630":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7631":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7632":{"morph":{"__isSmartRef__":true,"id":7587},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7633":{"resizeWidth":true},"7634":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7635":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7636":{"updateExpanderColor":{"__isSmartRef__":true,"id":7637},"onMouseDown":{"__isSmartRef__":true,"id":7640},"isRoot":{"__isSmartRef__":true,"id":7647},"displayValue":{"__isSmartRef__":true,"id":7650},"update":{"__isSmartRef__":true,"id":7653}},"7637":{"varMapping":{"__isSmartRef__":true,"id":7638},"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":7639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7638":{"this":{"__isSmartRef__":true,"id":7587}},"7639":{},"7640":{"varMapping":{"__isSmartRef__":true,"id":7641},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7641":{"this":{"__isSmartRef__":true,"id":7587},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7642}},"7642":{"$super":{"__isSmartRef__":true,"id":7643}},"7643":{"varMapping":{"__isSmartRef__":true,"id":7644},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7644":{"obj":{"__isSmartRef__":true,"id":7587},"name":"onMouseDown"},"7645":{},"7646":{},"7647":{"varMapping":{"__isSmartRef__":true,"id":7648},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7648":{"this":{"__isSmartRef__":true,"id":7587}},"7649":{},"7650":{"varMapping":{"__isSmartRef__":true,"id":7651},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7651":{"this":{"__isSmartRef__":true,"id":7587}},"7652":{},"7653":{"varMapping":{"__isSmartRef__":true,"id":7654},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7654":{"this":{"__isSmartRef__":true,"id":7587}},"7655":{},"7656":{"_Position":{"__isSmartRef__":true,"id":7657},"renderContextTable":{"__isSmartRef__":true,"id":7658},"_Extent":{"__isSmartRef__":true,"id":7659},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7660},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7657":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7658":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7659":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7660":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7661":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7662":{"morph":{"__isSmartRef__":true,"id":7586},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7663":{"layouter":{"__isSmartRef__":true,"id":7664},"resizeWidth":true},"7664":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7586},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7665":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7666":{"x":0,"y":420,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7667":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7668}},"7668":{"varMapping":{"__isSmartRef__":true,"id":7669},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7669":{"this":{"__isSmartRef__":true,"id":7586},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7670}},"7670":{"$super":{"__isSmartRef__":true,"id":7671}},"7671":{"varMapping":{"__isSmartRef__":true,"id":7672},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7672":{"obj":{"__isSmartRef__":true,"id":7586},"name":"getLayoutableSubmorphs"},"7673":{},"7674":{},"7675":{"submorphs":[{"__isSmartRef__":true,"id":7676}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7745},"derivationIds":[null],"id":"E92E842D-A60B-4900-82D4-B6779645EE9C","renderContextTable":{"__isSmartRef__":true,"id":7750},"eventHandler":{"__isSmartRef__":true,"id":7751},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7752},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7754},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7755},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7756},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7676":{"submorphs":[{"__isSmartRef__":true,"id":7677},{"__isSmartRef__":true,"id":7698}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7715},"derivationIds":[null],"id":"EE004664-D548-4994-B4A2-DBC6FC20CFBD","renderContextTable":{"__isSmartRef__":true,"id":7720},"eventHandler":{"__isSmartRef__":true,"id":7721},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7722},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":1460},"propertyList":["layouter"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"layout","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7677},"text":{"__isSmartRef__":true,"id":7698},"owner":{"__isSmartRef__":true,"id":7675},"_Position":{"__isSmartRef__":true,"id":7723},"priorExtent":{"__isSmartRef__":true,"id":7724},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7725},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7677":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7678},"derivationIds":[null],"id":"7CB76007-1742-4D5D-AF81-32E7CC02B6B0","renderContextTable":{"__isSmartRef__":true,"id":7684},"eventHandler":{"__isSmartRef__":true,"id":7685},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7686},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7676},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7687},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7678":{"_Position":{"__isSmartRef__":true,"id":7679},"renderContextTable":{"__isSmartRef__":true,"id":7680},"_Extent":{"__isSmartRef__":true,"id":7681},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7682},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7683},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7679":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7680":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7681":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7682":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7683":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7684":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7685":{"morph":{"__isSmartRef__":true,"id":7677},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7686":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7687":{"toggle":{"__isSmartRef__":true,"id":7688},"toggleExpansion":{"__isSmartRef__":true,"id":7695}},"7688":{"varMapping":{"__isSmartRef__":true,"id":7689},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7689":{"this":{"__isSmartRef__":true,"id":7677},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7690}},"7690":{"$super":{"__isSmartRef__":true,"id":7691}},"7691":{"varMapping":{"__isSmartRef__":true,"id":7692},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7692":{"obj":{"__isSmartRef__":true,"id":7677},"name":"toggle"},"7693":{},"7694":{},"7695":{"varMapping":{"__isSmartRef__":true,"id":7696},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7696":{"this":{"__isSmartRef__":true,"id":7677}},"7697":{},"7698":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7699},"derivationIds":[null],"id":"735A6B10-538A-42E4-BE86-1CEA18762986","renderContextTable":{"__isSmartRef__":true,"id":7703},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7704},{"__isSmartRef__":true,"id":7706}],"eventHandler":{"__isSmartRef__":true,"id":7708},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7709},"priorExtent":{"__isSmartRef__":true,"id":7710},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7676},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7711},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7699":{"_Position":{"__isSmartRef__":true,"id":7700},"renderContextTable":{"__isSmartRef__":true,"id":7701},"_Extent":{"__isSmartRef__":true,"id":7702},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7700":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7701":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7702":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7703":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7704":{"style":{"__isSmartRef__":true,"id":7705},"chunkOwner":{"__isSmartRef__":true,"id":7698},"storedString":"layout","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7705":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7706":{"style":{"__isSmartRef__":true,"id":7707},"chunkOwner":{"__isSmartRef__":true,"id":7698},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7707":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7708":{"morph":{"__isSmartRef__":true,"id":7698},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7709":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7710":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7711":{"layoutText":{"__isSmartRef__":true,"id":7712}},"7712":{"varMapping":{"__isSmartRef__":true,"id":7713},"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":7714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7713":{"this":{"__isSmartRef__":true,"id":7698}},"7714":{},"7715":{"_Position":{"__isSmartRef__":true,"id":7716},"renderContextTable":{"__isSmartRef__":true,"id":7717},"_Extent":{"__isSmartRef__":true,"id":7718},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7719},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7716":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7717":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7718":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7719":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7720":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7721":{"morph":{"__isSmartRef__":true,"id":7676},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7722":{"resizeWidth":true},"7723":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7724":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7725":{"updateExpanderColor":{"__isSmartRef__":true,"id":7726},"onMouseDown":{"__isSmartRef__":true,"id":7729},"isRoot":{"__isSmartRef__":true,"id":7736},"displayValue":{"__isSmartRef__":true,"id":7739},"update":{"__isSmartRef__":true,"id":7742}},"7726":{"varMapping":{"__isSmartRef__":true,"id":7727},"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":7728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7727":{"this":{"__isSmartRef__":true,"id":7676}},"7728":{},"7729":{"varMapping":{"__isSmartRef__":true,"id":7730},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7730":{"this":{"__isSmartRef__":true,"id":7676},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7731}},"7731":{"$super":{"__isSmartRef__":true,"id":7732}},"7732":{"varMapping":{"__isSmartRef__":true,"id":7733},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7733":{"obj":{"__isSmartRef__":true,"id":7676},"name":"onMouseDown"},"7734":{},"7735":{},"7736":{"varMapping":{"__isSmartRef__":true,"id":7737},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7737":{"this":{"__isSmartRef__":true,"id":7676}},"7738":{},"7739":{"varMapping":{"__isSmartRef__":true,"id":7740},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7740":{"this":{"__isSmartRef__":true,"id":7676}},"7741":{},"7742":{"varMapping":{"__isSmartRef__":true,"id":7743},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7743":{"this":{"__isSmartRef__":true,"id":7676}},"7744":{},"7745":{"_Position":{"__isSmartRef__":true,"id":7746},"renderContextTable":{"__isSmartRef__":true,"id":7747},"_Extent":{"__isSmartRef__":true,"id":7748},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7749},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7746":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7747":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7748":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7749":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7750":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7751":{"morph":{"__isSmartRef__":true,"id":7675},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7752":{"layouter":{"__isSmartRef__":true,"id":7753},"resizeWidth":true},"7753":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7675},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7754":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7755":{"x":0,"y":440,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7756":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7757}},"7757":{"varMapping":{"__isSmartRef__":true,"id":7758},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7758":{"this":{"__isSmartRef__":true,"id":7675},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7759}},"7759":{"$super":{"__isSmartRef__":true,"id":7760}},"7760":{"varMapping":{"__isSmartRef__":true,"id":7761},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7761":{"obj":{"__isSmartRef__":true,"id":7675},"name":"getLayoutableSubmorphs"},"7762":{},"7763":{},"7764":{"submorphs":[{"__isSmartRef__":true,"id":7765}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7834},"derivationIds":[null],"id":"3C8F9EA5-07A4-4AE3-BCF6-1DC133AF3155","renderContextTable":{"__isSmartRef__":true,"id":7839},"eventHandler":{"__isSmartRef__":true,"id":7840},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7841},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7843},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7844},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7845},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7765":{"submorphs":[{"__isSmartRef__":true,"id":7766},{"__isSmartRef__":true,"id":7787}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7804},"derivationIds":[null],"id":"E06794C2-1B9E-43AD-A1C0-BF188E18F47C","renderContextTable":{"__isSmartRef__":true,"id":7809},"eventHandler":{"__isSmartRef__":true,"id":7810},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7811},"grabbingEnabled":false,"draggingEnabled":false,"data":10,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"numCols","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7766},"text":{"__isSmartRef__":true,"id":7787},"owner":{"__isSmartRef__":true,"id":7764},"_Position":{"__isSmartRef__":true,"id":7812},"priorExtent":{"__isSmartRef__":true,"id":7813},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7814},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7766":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7767},"derivationIds":[null],"id":"85E4A24A-E18C-4B55-84B6-C32BE564582A","renderContextTable":{"__isSmartRef__":true,"id":7773},"eventHandler":{"__isSmartRef__":true,"id":7774},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7775},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7765},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7776},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7767":{"_Position":{"__isSmartRef__":true,"id":7768},"renderContextTable":{"__isSmartRef__":true,"id":7769},"_Extent":{"__isSmartRef__":true,"id":7770},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7771},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7772},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7768":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7769":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7770":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7771":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7772":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7773":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7774":{"morph":{"__isSmartRef__":true,"id":7766},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7775":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7776":{"toggle":{"__isSmartRef__":true,"id":7777},"toggleExpansion":{"__isSmartRef__":true,"id":7784}},"7777":{"varMapping":{"__isSmartRef__":true,"id":7778},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7778":{"this":{"__isSmartRef__":true,"id":7766},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7779}},"7779":{"$super":{"__isSmartRef__":true,"id":7780}},"7780":{"varMapping":{"__isSmartRef__":true,"id":7781},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7781":{"obj":{"__isSmartRef__":true,"id":7766},"name":"toggle"},"7782":{},"7783":{},"7784":{"varMapping":{"__isSmartRef__":true,"id":7785},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7785":{"this":{"__isSmartRef__":true,"id":7766}},"7786":{},"7787":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7788},"derivationIds":[null],"id":"0C8A528F-7960-4ACA-B80D-12F02A82C0E6","renderContextTable":{"__isSmartRef__":true,"id":7792},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7793},{"__isSmartRef__":true,"id":7795}],"eventHandler":{"__isSmartRef__":true,"id":7797},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7798},"priorExtent":{"__isSmartRef__":true,"id":7799},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7765},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7800},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7788":{"_Position":{"__isSmartRef__":true,"id":7789},"renderContextTable":{"__isSmartRef__":true,"id":7790},"_Extent":{"__isSmartRef__":true,"id":7791},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7789":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7790":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7791":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7792":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7793":{"style":{"__isSmartRef__":true,"id":7794},"chunkOwner":{"__isSmartRef__":true,"id":7787},"storedString":"numCols","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7794":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7795":{"style":{"__isSmartRef__":true,"id":7796},"chunkOwner":{"__isSmartRef__":true,"id":7787},"storedString":": 10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7796":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7797":{"morph":{"__isSmartRef__":true,"id":7787},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7798":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7799":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7800":{"layoutText":{"__isSmartRef__":true,"id":7801}},"7801":{"varMapping":{"__isSmartRef__":true,"id":7802},"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":7803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7802":{"this":{"__isSmartRef__":true,"id":7787}},"7803":{},"7804":{"_Position":{"__isSmartRef__":true,"id":7805},"renderContextTable":{"__isSmartRef__":true,"id":7806},"_Extent":{"__isSmartRef__":true,"id":7807},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7808},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7805":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7806":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7807":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7808":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7809":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7810":{"morph":{"__isSmartRef__":true,"id":7765},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7811":{"resizeWidth":true},"7812":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7813":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7814":{"updateExpanderColor":{"__isSmartRef__":true,"id":7815},"onMouseDown":{"__isSmartRef__":true,"id":7818},"isRoot":{"__isSmartRef__":true,"id":7825},"displayValue":{"__isSmartRef__":true,"id":7828},"update":{"__isSmartRef__":true,"id":7831}},"7815":{"varMapping":{"__isSmartRef__":true,"id":7816},"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":7817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7816":{"this":{"__isSmartRef__":true,"id":7765}},"7817":{},"7818":{"varMapping":{"__isSmartRef__":true,"id":7819},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7819":{"this":{"__isSmartRef__":true,"id":7765},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7820}},"7820":{"$super":{"__isSmartRef__":true,"id":7821}},"7821":{"varMapping":{"__isSmartRef__":true,"id":7822},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7822":{"obj":{"__isSmartRef__":true,"id":7765},"name":"onMouseDown"},"7823":{},"7824":{},"7825":{"varMapping":{"__isSmartRef__":true,"id":7826},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7826":{"this":{"__isSmartRef__":true,"id":7765}},"7827":{},"7828":{"varMapping":{"__isSmartRef__":true,"id":7829},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7829":{"this":{"__isSmartRef__":true,"id":7765}},"7830":{},"7831":{"varMapping":{"__isSmartRef__":true,"id":7832},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7832":{"this":{"__isSmartRef__":true,"id":7765}},"7833":{},"7834":{"_Position":{"__isSmartRef__":true,"id":7835},"renderContextTable":{"__isSmartRef__":true,"id":7836},"_Extent":{"__isSmartRef__":true,"id":7837},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7838},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7835":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7836":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7837":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7838":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7839":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7840":{"morph":{"__isSmartRef__":true,"id":7764},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7841":{"layouter":{"__isSmartRef__":true,"id":7842},"resizeWidth":true},"7842":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7764},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7843":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7844":{"x":0,"y":460,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7845":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7846}},"7846":{"varMapping":{"__isSmartRef__":true,"id":7847},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7847":{"this":{"__isSmartRef__":true,"id":7764},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7848}},"7848":{"$super":{"__isSmartRef__":true,"id":7849}},"7849":{"varMapping":{"__isSmartRef__":true,"id":7850},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7850":{"obj":{"__isSmartRef__":true,"id":7764},"name":"getLayoutableSubmorphs"},"7851":{},"7852":{},"7853":{"submorphs":[{"__isSmartRef__":true,"id":7854}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7923},"derivationIds":[null],"id":"615FAAC6-AEDB-4617-B691-66C6E371904D","renderContextTable":{"__isSmartRef__":true,"id":7928},"eventHandler":{"__isSmartRef__":true,"id":7929},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7930},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7932},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":7933},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7934},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7854":{"submorphs":[{"__isSmartRef__":true,"id":7855},{"__isSmartRef__":true,"id":7876}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7893},"derivationIds":[null],"id":"C89296A9-EFAA-413D-BD10-B83ABE6EC173","renderContextTable":{"__isSmartRef__":true,"id":7898},"eventHandler":{"__isSmartRef__":true,"id":7899},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7900},"grabbingEnabled":false,"draggingEnabled":false,"data":10,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"numRows","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7855},"text":{"__isSmartRef__":true,"id":7876},"owner":{"__isSmartRef__":true,"id":7853},"_Position":{"__isSmartRef__":true,"id":7901},"priorExtent":{"__isSmartRef__":true,"id":7902},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7903},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7855":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7856},"derivationIds":[null],"id":"4AE40B18-F73B-451B-88AA-BA163E5D3D50","renderContextTable":{"__isSmartRef__":true,"id":7862},"eventHandler":{"__isSmartRef__":true,"id":7863},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7864},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7865},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7856":{"_Position":{"__isSmartRef__":true,"id":7857},"renderContextTable":{"__isSmartRef__":true,"id":7858},"_Extent":{"__isSmartRef__":true,"id":7859},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7860},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7861},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7857":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7858":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7859":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7860":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7861":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7862":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7863":{"morph":{"__isSmartRef__":true,"id":7855},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7864":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7865":{"toggle":{"__isSmartRef__":true,"id":7866},"toggleExpansion":{"__isSmartRef__":true,"id":7873}},"7866":{"varMapping":{"__isSmartRef__":true,"id":7867},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7867":{"this":{"__isSmartRef__":true,"id":7855},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7868}},"7868":{"$super":{"__isSmartRef__":true,"id":7869}},"7869":{"varMapping":{"__isSmartRef__":true,"id":7870},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7870":{"obj":{"__isSmartRef__":true,"id":7855},"name":"toggle"},"7871":{},"7872":{},"7873":{"varMapping":{"__isSmartRef__":true,"id":7874},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7874":{"this":{"__isSmartRef__":true,"id":7855}},"7875":{},"7876":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7877},"derivationIds":[null],"id":"0197B309-D35B-4C49-B794-C3EBD06A6D70","renderContextTable":{"__isSmartRef__":true,"id":7881},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7882},{"__isSmartRef__":true,"id":7884}],"eventHandler":{"__isSmartRef__":true,"id":7886},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7887},"priorExtent":{"__isSmartRef__":true,"id":7888},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7889},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7877":{"_Position":{"__isSmartRef__":true,"id":7878},"renderContextTable":{"__isSmartRef__":true,"id":7879},"_Extent":{"__isSmartRef__":true,"id":7880},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7878":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7879":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7880":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7881":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7882":{"style":{"__isSmartRef__":true,"id":7883},"chunkOwner":{"__isSmartRef__":true,"id":7876},"storedString":"numRows","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7883":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7884":{"style":{"__isSmartRef__":true,"id":7885},"chunkOwner":{"__isSmartRef__":true,"id":7876},"storedString":": 10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7885":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7886":{"morph":{"__isSmartRef__":true,"id":7876},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7887":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7888":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7889":{"layoutText":{"__isSmartRef__":true,"id":7890}},"7890":{"varMapping":{"__isSmartRef__":true,"id":7891},"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":7892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7891":{"this":{"__isSmartRef__":true,"id":7876}},"7892":{},"7893":{"_Position":{"__isSmartRef__":true,"id":7894},"renderContextTable":{"__isSmartRef__":true,"id":7895},"_Extent":{"__isSmartRef__":true,"id":7896},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7897},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7894":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7895":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7896":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7897":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7898":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7899":{"morph":{"__isSmartRef__":true,"id":7854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7900":{"resizeWidth":true},"7901":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7902":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7903":{"updateExpanderColor":{"__isSmartRef__":true,"id":7904},"onMouseDown":{"__isSmartRef__":true,"id":7907},"isRoot":{"__isSmartRef__":true,"id":7914},"displayValue":{"__isSmartRef__":true,"id":7917},"update":{"__isSmartRef__":true,"id":7920}},"7904":{"varMapping":{"__isSmartRef__":true,"id":7905},"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":7906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7905":{"this":{"__isSmartRef__":true,"id":7854}},"7906":{},"7907":{"varMapping":{"__isSmartRef__":true,"id":7908},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7908":{"this":{"__isSmartRef__":true,"id":7854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7909}},"7909":{"$super":{"__isSmartRef__":true,"id":7910}},"7910":{"varMapping":{"__isSmartRef__":true,"id":7911},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7911":{"obj":{"__isSmartRef__":true,"id":7854},"name":"onMouseDown"},"7912":{},"7913":{},"7914":{"varMapping":{"__isSmartRef__":true,"id":7915},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7915":{"this":{"__isSmartRef__":true,"id":7854}},"7916":{},"7917":{"varMapping":{"__isSmartRef__":true,"id":7918},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":7919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7918":{"this":{"__isSmartRef__":true,"id":7854}},"7919":{},"7920":{"varMapping":{"__isSmartRef__":true,"id":7921},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7921":{"this":{"__isSmartRef__":true,"id":7854}},"7922":{},"7923":{"_Position":{"__isSmartRef__":true,"id":7924},"renderContextTable":{"__isSmartRef__":true,"id":7925},"_Extent":{"__isSmartRef__":true,"id":7926},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7927},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7924":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7925":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7926":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7927":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7928":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7929":{"morph":{"__isSmartRef__":true,"id":7853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7930":{"layouter":{"__isSmartRef__":true,"id":7931},"resizeWidth":true},"7931":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7853},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7932":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7933":{"x":0,"y":480,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7934":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7935}},"7935":{"varMapping":{"__isSmartRef__":true,"id":7936},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7936":{"this":{"__isSmartRef__":true,"id":7853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7937}},"7937":{"$super":{"__isSmartRef__":true,"id":7938}},"7938":{"varMapping":{"__isSmartRef__":true,"id":7939},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7939":{"obj":{"__isSmartRef__":true,"id":7853},"name":"getLayoutableSubmorphs"},"7940":{},"7941":{},"7942":{"submorphs":[{"__isSmartRef__":true,"id":7943}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8012},"derivationIds":[null],"id":"8980A1C5-957C-4CD6-89A3-9626115C215A","renderContextTable":{"__isSmartRef__":true,"id":8017},"eventHandler":{"__isSmartRef__":true,"id":8018},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8019},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8021},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8022},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8023},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7943":{"submorphs":[{"__isSmartRef__":true,"id":7944},{"__isSmartRef__":true,"id":7965}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7982},"derivationIds":[null],"id":"BF13CA19-A0F8-48A6-B88D-8B7BE7777D5E","renderContextTable":{"__isSmartRef__":true,"id":7987},"eventHandler":{"__isSmartRef__":true,"id":7988},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7989},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":0},"propertyList":["submorphs","scripts","id","shape","grabbingEnabled","droppingEnabled","showsMorphMenu","halosEnabled","registeredForMouseEvents","_Position","hands","__SourceModuleName__","changeSet","statusMessages","showsHalos","lastAlert","draggingEnabled","_Scale","renderContextTable","eventHandler","eventStartPos","attributeConnections","doNotSerialize","doNotCopyProperties","clickedOnMorphTime","worldMenuOpened","$$savedWorldAsURL","savedWorldAsURL","_renderContext","clickedOnMorph","draggedMorph","selectionMorph","currentMenu","halos","prevScroll"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"owner","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":7944},"text":{"__isSmartRef__":true,"id":7965},"owner":{"__isSmartRef__":true,"id":7942},"_Position":{"__isSmartRef__":true,"id":7990},"priorExtent":{"__isSmartRef__":true,"id":7991},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7992},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7944":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7945},"derivationIds":[null],"id":"C6153673-59E6-49BF-9849-CE94B5D1087B","renderContextTable":{"__isSmartRef__":true,"id":7951},"eventHandler":{"__isSmartRef__":true,"id":7952},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7953},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7943},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7954},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7945":{"_Position":{"__isSmartRef__":true,"id":7946},"renderContextTable":{"__isSmartRef__":true,"id":7947},"_Extent":{"__isSmartRef__":true,"id":7948},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7949},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":7950},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7946":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7947":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7948":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7949":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7950":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7951":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7952":{"morph":{"__isSmartRef__":true,"id":7944},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7953":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7954":{"toggle":{"__isSmartRef__":true,"id":7955},"toggleExpansion":{"__isSmartRef__":true,"id":7962}},"7955":{"varMapping":{"__isSmartRef__":true,"id":7956},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7956":{"this":{"__isSmartRef__":true,"id":7944},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7957}},"7957":{"$super":{"__isSmartRef__":true,"id":7958}},"7958":{"varMapping":{"__isSmartRef__":true,"id":7959},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7959":{"obj":{"__isSmartRef__":true,"id":7944},"name":"toggle"},"7960":{},"7961":{},"7962":{"varMapping":{"__isSmartRef__":true,"id":7963},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7963":{"this":{"__isSmartRef__":true,"id":7944}},"7964":{},"7965":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7966},"derivationIds":[null],"id":"F05B6F75-2A2B-4F86-A55B-500B1314D717","renderContextTable":{"__isSmartRef__":true,"id":7970},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7971},{"__isSmartRef__":true,"id":7973}],"eventHandler":{"__isSmartRef__":true,"id":7975},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":7976},"priorExtent":{"__isSmartRef__":true,"id":7977},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":7943},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7978},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7966":{"_Position":{"__isSmartRef__":true,"id":7967},"renderContextTable":{"__isSmartRef__":true,"id":7968},"_Extent":{"__isSmartRef__":true,"id":7969},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7967":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7968":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7969":{"x":98,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7970":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7971":{"style":{"__isSmartRef__":true,"id":7972},"chunkOwner":{"__isSmartRef__":true,"id":7965},"storedString":"owner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7972":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7973":{"style":{"__isSmartRef__":true,"id":7974},"chunkOwner":{"__isSmartRef__":true,"id":7965},"storedString":": World","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7974":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7975":{"morph":{"__isSmartRef__":true,"id":7965},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7976":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7977":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7978":{"layoutText":{"__isSmartRef__":true,"id":7979}},"7979":{"varMapping":{"__isSmartRef__":true,"id":7980},"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":7981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7980":{"this":{"__isSmartRef__":true,"id":7965}},"7981":{},"7982":{"_Position":{"__isSmartRef__":true,"id":7983},"renderContextTable":{"__isSmartRef__":true,"id":7984},"_Extent":{"__isSmartRef__":true,"id":7985},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7986},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7983":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7984":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7985":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7986":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"7987":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7988":{"morph":{"__isSmartRef__":true,"id":7943},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7989":{"resizeWidth":true},"7990":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7991":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"7992":{"updateExpanderColor":{"__isSmartRef__":true,"id":7993},"onMouseDown":{"__isSmartRef__":true,"id":7996},"isRoot":{"__isSmartRef__":true,"id":8003},"displayValue":{"__isSmartRef__":true,"id":8006},"update":{"__isSmartRef__":true,"id":8009}},"7993":{"varMapping":{"__isSmartRef__":true,"id":7994},"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":7995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7994":{"this":{"__isSmartRef__":true,"id":7943}},"7995":{},"7996":{"varMapping":{"__isSmartRef__":true,"id":7997},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"7997":{"this":{"__isSmartRef__":true,"id":7943},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7998}},"7998":{"$super":{"__isSmartRef__":true,"id":7999}},"7999":{"varMapping":{"__isSmartRef__":true,"id":8000},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8000":{"obj":{"__isSmartRef__":true,"id":7943},"name":"onMouseDown"},"8001":{},"8002":{},"8003":{"varMapping":{"__isSmartRef__":true,"id":8004},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8004":{"this":{"__isSmartRef__":true,"id":7943}},"8005":{},"8006":{"varMapping":{"__isSmartRef__":true,"id":8007},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8007":{"this":{"__isSmartRef__":true,"id":7943}},"8008":{},"8009":{"varMapping":{"__isSmartRef__":true,"id":8010},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8010":{"this":{"__isSmartRef__":true,"id":7943}},"8011":{},"8012":{"_Position":{"__isSmartRef__":true,"id":8013},"renderContextTable":{"__isSmartRef__":true,"id":8014},"_Extent":{"__isSmartRef__":true,"id":8015},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8016},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8013":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8014":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8015":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8016":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8017":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8018":{"morph":{"__isSmartRef__":true,"id":7942},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8019":{"layouter":{"__isSmartRef__":true,"id":8020},"resizeWidth":true},"8020":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7942},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8021":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8022":{"x":0,"y":500,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8023":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8024}},"8024":{"varMapping":{"__isSmartRef__":true,"id":8025},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8025":{"this":{"__isSmartRef__":true,"id":7942},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8026}},"8026":{"$super":{"__isSmartRef__":true,"id":8027}},"8027":{"varMapping":{"__isSmartRef__":true,"id":8028},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8028":{"obj":{"__isSmartRef__":true,"id":7942},"name":"getLayoutableSubmorphs"},"8029":{},"8030":{},"8031":{"submorphs":[{"__isSmartRef__":true,"id":8032}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8101},"derivationIds":[null],"id":"450C7C6A-4FAB-4BD3-878B-A3ACB0E4A739","renderContextTable":{"__isSmartRef__":true,"id":8106},"eventHandler":{"__isSmartRef__":true,"id":8107},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8108},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8110},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8111},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8112},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8032":{"submorphs":[{"__isSmartRef__":true,"id":8033},{"__isSmartRef__":true,"id":8054}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8071},"derivationIds":[null],"id":"0132CB5C-9A1A-4CCA-A111-1C08FF552CDF","renderContextTable":{"__isSmartRef__":true,"id":8076},"eventHandler":{"__isSmartRef__":true,"id":8077},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8078},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":1459},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"priorExtent","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":8033},"text":{"__isSmartRef__":true,"id":8054},"owner":{"__isSmartRef__":true,"id":8031},"_Position":{"__isSmartRef__":true,"id":8079},"priorExtent":{"__isSmartRef__":true,"id":8080},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8081},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8033":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8034},"derivationIds":[null],"id":"524E428B-6018-4E47-8AE0-51862BCB3A47","renderContextTable":{"__isSmartRef__":true,"id":8040},"eventHandler":{"__isSmartRef__":true,"id":8041},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8042},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8032},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8043},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8034":{"_Position":{"__isSmartRef__":true,"id":8035},"renderContextTable":{"__isSmartRef__":true,"id":8036},"_Extent":{"__isSmartRef__":true,"id":8037},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8038},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":8039},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8035":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8036":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8037":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8038":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8039":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8040":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8041":{"morph":{"__isSmartRef__":true,"id":8033},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8042":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8043":{"toggle":{"__isSmartRef__":true,"id":8044},"toggleExpansion":{"__isSmartRef__":true,"id":8051}},"8044":{"varMapping":{"__isSmartRef__":true,"id":8045},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8045":{"this":{"__isSmartRef__":true,"id":8033},"__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":8033},"name":"toggle"},"8049":{},"8050":{},"8051":{"varMapping":{"__isSmartRef__":true,"id":8052},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8052":{"this":{"__isSmartRef__":true,"id":8033}},"8053":{},"8054":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8055},"derivationIds":[null],"id":"CFDE9C61-41B4-4DEB-9FB5-B0B48DD1CA02","renderContextTable":{"__isSmartRef__":true,"id":8059},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8060},{"__isSmartRef__":true,"id":8062}],"eventHandler":{"__isSmartRef__":true,"id":8064},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8065},"priorExtent":{"__isSmartRef__":true,"id":8066},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8032},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8067},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8055":{"_Position":{"__isSmartRef__":true,"id":8056},"renderContextTable":{"__isSmartRef__":true,"id":8057},"_Extent":{"__isSmartRef__":true,"id":8058},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8056":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8058":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8059":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8060":{"style":{"__isSmartRef__":true,"id":8061},"chunkOwner":{"__isSmartRef__":true,"id":8054},"storedString":"priorExtent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8061":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8062":{"style":{"__isSmartRef__":true,"id":8063},"chunkOwner":{"__isSmartRef__":true,"id":8054},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8063":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8064":{"morph":{"__isSmartRef__":true,"id":8054},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8065":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8066":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8067":{"layoutText":{"__isSmartRef__":true,"id":8068}},"8068":{"varMapping":{"__isSmartRef__":true,"id":8069},"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":8070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8069":{"this":{"__isSmartRef__":true,"id":8054}},"8070":{},"8071":{"_Position":{"__isSmartRef__":true,"id":8072},"renderContextTable":{"__isSmartRef__":true,"id":8073},"_Extent":{"__isSmartRef__":true,"id":8074},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8075},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8072":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8073":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8074":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8075":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8076":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8077":{"morph":{"__isSmartRef__":true,"id":8032},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8078":{"resizeWidth":true},"8079":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8080":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8081":{"updateExpanderColor":{"__isSmartRef__":true,"id":8082},"onMouseDown":{"__isSmartRef__":true,"id":8085},"isRoot":{"__isSmartRef__":true,"id":8092},"displayValue":{"__isSmartRef__":true,"id":8095},"update":{"__isSmartRef__":true,"id":8098}},"8082":{"varMapping":{"__isSmartRef__":true,"id":8083},"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":8084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8083":{"this":{"__isSmartRef__":true,"id":8032}},"8084":{},"8085":{"varMapping":{"__isSmartRef__":true,"id":8086},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8086":{"this":{"__isSmartRef__":true,"id":8032},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8087}},"8087":{"$super":{"__isSmartRef__":true,"id":8088}},"8088":{"varMapping":{"__isSmartRef__":true,"id":8089},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8089":{"obj":{"__isSmartRef__":true,"id":8032},"name":"onMouseDown"},"8090":{},"8091":{},"8092":{"varMapping":{"__isSmartRef__":true,"id":8093},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8093":{"this":{"__isSmartRef__":true,"id":8032}},"8094":{},"8095":{"varMapping":{"__isSmartRef__":true,"id":8096},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8096":{"this":{"__isSmartRef__":true,"id":8032}},"8097":{},"8098":{"varMapping":{"__isSmartRef__":true,"id":8099},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8099":{"this":{"__isSmartRef__":true,"id":8032}},"8100":{},"8101":{"_Position":{"__isSmartRef__":true,"id":8102},"renderContextTable":{"__isSmartRef__":true,"id":8103},"_Extent":{"__isSmartRef__":true,"id":8104},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8105},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8102":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8103":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8105":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8106":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8107":{"morph":{"__isSmartRef__":true,"id":8031},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8108":{"layouter":{"__isSmartRef__":true,"id":8109},"resizeWidth":true},"8109":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8031},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8110":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8111":{"x":0,"y":520,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8112":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8113}},"8113":{"varMapping":{"__isSmartRef__":true,"id":8114},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8114":{"this":{"__isSmartRef__":true,"id":8031},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8115}},"8115":{"$super":{"__isSmartRef__":true,"id":8116}},"8116":{"varMapping":{"__isSmartRef__":true,"id":8117},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8117":{"obj":{"__isSmartRef__":true,"id":8031},"name":"getLayoutableSubmorphs"},"8118":{},"8119":{},"8120":{"submorphs":[{"__isSmartRef__":true,"id":8121}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8190},"derivationIds":[null],"id":"F6808051-7550-4231-84A9-BD561D4E97C6","renderContextTable":{"__isSmartRef__":true,"id":8195},"eventHandler":{"__isSmartRef__":true,"id":8196},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8197},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8199},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8200},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8201},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8121":{"submorphs":[{"__isSmartRef__":true,"id":8122},{"__isSmartRef__":true,"id":8143}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8160},"derivationIds":[null],"id":"F8F6FEA8-336C-4BD3-94A2-5F3F66B61C0E","renderContextTable":{"__isSmartRef__":true,"id":8165},"eventHandler":{"__isSmartRef__":true,"id":8166},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8167},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":1457},"propertyList":["replaceRenderContext","init","append","remove","triggerEvent","setTransform","setPosition","setRotation","setExtent","setScale","setVisible","adjustOrigin","setPivotPoint","setClipMode","showsVerticalScrollBar","showsHorizontalScrollBar","getScrollBarExtent","setHandStyle","setPointerEvents","setToolTip","focus","blur","setFocusable"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"renderContextTable","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":8122},"text":{"__isSmartRef__":true,"id":8143},"owner":{"__isSmartRef__":true,"id":8120},"_Position":{"__isSmartRef__":true,"id":8168},"priorExtent":{"__isSmartRef__":true,"id":8169},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8170},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8122":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8123},"derivationIds":[null],"id":"A6BB850F-5BBC-4BE8-A550-E88F1B081B4D","renderContextTable":{"__isSmartRef__":true,"id":8129},"eventHandler":{"__isSmartRef__":true,"id":8130},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8131},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8121},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8132},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8123":{"_Position":{"__isSmartRef__":true,"id":8124},"renderContextTable":{"__isSmartRef__":true,"id":8125},"_Extent":{"__isSmartRef__":true,"id":8126},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8127},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":8128},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8124":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8125":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8126":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8127":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8128":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8129":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8130":{"morph":{"__isSmartRef__":true,"id":8122},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8131":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8132":{"toggle":{"__isSmartRef__":true,"id":8133},"toggleExpansion":{"__isSmartRef__":true,"id":8140}},"8133":{"varMapping":{"__isSmartRef__":true,"id":8134},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8134":{"this":{"__isSmartRef__":true,"id":8122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8135}},"8135":{"$super":{"__isSmartRef__":true,"id":8136}},"8136":{"varMapping":{"__isSmartRef__":true,"id":8137},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8137":{"obj":{"__isSmartRef__":true,"id":8122},"name":"toggle"},"8138":{},"8139":{},"8140":{"varMapping":{"__isSmartRef__":true,"id":8141},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8141":{"this":{"__isSmartRef__":true,"id":8122}},"8142":{},"8143":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8144},"derivationIds":[null],"id":"131F00DF-FD89-416A-9414-CFA63580519D","renderContextTable":{"__isSmartRef__":true,"id":8148},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8149},{"__isSmartRef__":true,"id":8151}],"eventHandler":{"__isSmartRef__":true,"id":8153},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8154},"priorExtent":{"__isSmartRef__":true,"id":8155},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8121},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8156},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8144":{"_Position":{"__isSmartRef__":true,"id":8145},"renderContextTable":{"__isSmartRef__":true,"id":8146},"_Extent":{"__isSmartRef__":true,"id":8147},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8145":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8146":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8147":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8148":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8149":{"style":{"__isSmartRef__":true,"id":8150},"chunkOwner":{"__isSmartRef__":true,"id":8143},"storedString":"renderContextTable","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8150":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8151":{"style":{"__isSmartRef__":true,"id":8152},"chunkOwner":{"__isSmartRef__":true,"id":8143},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8152":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8153":{"morph":{"__isSmartRef__":true,"id":8143},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8154":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8155":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8156":{"layoutText":{"__isSmartRef__":true,"id":8157}},"8157":{"varMapping":{"__isSmartRef__":true,"id":8158},"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":8159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8158":{"this":{"__isSmartRef__":true,"id":8143}},"8159":{},"8160":{"_Position":{"__isSmartRef__":true,"id":8161},"renderContextTable":{"__isSmartRef__":true,"id":8162},"_Extent":{"__isSmartRef__":true,"id":8163},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8164},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8161":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8162":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8163":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8164":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8165":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8166":{"morph":{"__isSmartRef__":true,"id":8121},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8167":{"resizeWidth":true},"8168":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8169":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8170":{"updateExpanderColor":{"__isSmartRef__":true,"id":8171},"onMouseDown":{"__isSmartRef__":true,"id":8174},"isRoot":{"__isSmartRef__":true,"id":8181},"displayValue":{"__isSmartRef__":true,"id":8184},"update":{"__isSmartRef__":true,"id":8187}},"8171":{"varMapping":{"__isSmartRef__":true,"id":8172},"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":8173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8172":{"this":{"__isSmartRef__":true,"id":8121}},"8173":{},"8174":{"varMapping":{"__isSmartRef__":true,"id":8175},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8175":{"this":{"__isSmartRef__":true,"id":8121},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8176}},"8176":{"$super":{"__isSmartRef__":true,"id":8177}},"8177":{"varMapping":{"__isSmartRef__":true,"id":8178},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8178":{"obj":{"__isSmartRef__":true,"id":8121},"name":"onMouseDown"},"8179":{},"8180":{},"8181":{"varMapping":{"__isSmartRef__":true,"id":8182},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8182":{"this":{"__isSmartRef__":true,"id":8121}},"8183":{},"8184":{"varMapping":{"__isSmartRef__":true,"id":8185},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8185":{"this":{"__isSmartRef__":true,"id":8121}},"8186":{},"8187":{"varMapping":{"__isSmartRef__":true,"id":8188},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8188":{"this":{"__isSmartRef__":true,"id":8121}},"8189":{},"8190":{"_Position":{"__isSmartRef__":true,"id":8191},"renderContextTable":{"__isSmartRef__":true,"id":8192},"_Extent":{"__isSmartRef__":true,"id":8193},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8194},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8191":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8192":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8193":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8194":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8195":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8196":{"morph":{"__isSmartRef__":true,"id":8120},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8197":{"layouter":{"__isSmartRef__":true,"id":8198},"resizeWidth":true},"8198":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8120},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8199":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8200":{"x":0,"y":540,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8201":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8202}},"8202":{"varMapping":{"__isSmartRef__":true,"id":8203},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8203":{"this":{"__isSmartRef__":true,"id":8120},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8204}},"8204":{"$super":{"__isSmartRef__":true,"id":8205}},"8205":{"varMapping":{"__isSmartRef__":true,"id":8206},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8206":{"obj":{"__isSmartRef__":true,"id":8120},"name":"getLayoutableSubmorphs"},"8207":{},"8208":{},"8209":{"submorphs":[{"__isSmartRef__":true,"id":8210}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8279},"derivationIds":[null],"id":"77563E1B-AD6E-4AAB-AE8D-D203115513A8","renderContextTable":{"__isSmartRef__":true,"id":8284},"eventHandler":{"__isSmartRef__":true,"id":8285},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8286},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8288},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8289},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8290},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8210":{"submorphs":[{"__isSmartRef__":true,"id":8211},{"__isSmartRef__":true,"id":8232}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8249},"derivationIds":[null],"id":"77F835F6-6F94-4B8D-84B1-D4939F7ADB28","renderContextTable":{"__isSmartRef__":true,"id":8254},"eventHandler":{"__isSmartRef__":true,"id":8255},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8256},"grabbingEnabled":false,"draggingEnabled":false,"data":[[{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":202},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":228},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":254},{"__isSmartRef__":true,"id":267}],[{"__isSmartRef__":true,"id":280},{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":333},{"__isSmartRef__":true,"id":346},{"__isSmartRef__":true,"id":359},{"__isSmartRef__":true,"id":372},{"__isSmartRef__":true,"id":385},{"__isSmartRef__":true,"id":398}],[{"__isSmartRef__":true,"id":411},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":476},{"__isSmartRef__":true,"id":489},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":528}],[{"__isSmartRef__":true,"id":541},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":567},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":606},{"__isSmartRef__":true,"id":619},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":658}],[{"__isSmartRef__":true,"id":671},{"__isSmartRef__":true,"id":684},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":710},{"__isSmartRef__":true,"id":723},{"__isSmartRef__":true,"id":736},{"__isSmartRef__":true,"id":749},{"__isSmartRef__":true,"id":762},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":788}],[{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":814},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":866},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":892},{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":918}],[{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":944},{"__isSmartRef__":true,"id":957},{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":983},{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":1009},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1035},{"__isSmartRef__":true,"id":1048}],[{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1113},{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1152},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1178}],[{"__isSmartRef__":true,"id":1191},{"__isSmartRef__":true,"id":1204},{"__isSmartRef__":true,"id":1217},{"__isSmartRef__":true,"id":1230},{"__isSmartRef__":true,"id":1243},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1269},{"__isSmartRef__":true,"id":1282},{"__isSmartRef__":true,"id":1295},{"__isSmartRef__":true,"id":1308}],[{"__isSmartRef__":true,"id":1321},{"__isSmartRef__":true,"id":1334},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1360},{"__isSmartRef__":true,"id":1373},{"__isSmartRef__":true,"id":1386},{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1438}]],"propertyList":["0","1","2","3","4","5","6","7","8","9"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"rows","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":8211},"text":{"__isSmartRef__":true,"id":8232},"owner":{"__isSmartRef__":true,"id":8209},"_Position":{"__isSmartRef__":true,"id":8257},"priorExtent":{"__isSmartRef__":true,"id":8258},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8259},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8211":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8212},"derivationIds":[null],"id":"2E700DC6-7CB9-490C-BF40-212B280D71FC","renderContextTable":{"__isSmartRef__":true,"id":8218},"eventHandler":{"__isSmartRef__":true,"id":8219},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8220},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8210},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8221},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8212":{"_Position":{"__isSmartRef__":true,"id":8213},"renderContextTable":{"__isSmartRef__":true,"id":8214},"_Extent":{"__isSmartRef__":true,"id":8215},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8216},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":8217},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8213":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8214":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8215":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8216":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8217":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8218":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8219":{"morph":{"__isSmartRef__":true,"id":8211},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8220":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8221":{"toggle":{"__isSmartRef__":true,"id":8222},"toggleExpansion":{"__isSmartRef__":true,"id":8229}},"8222":{"varMapping":{"__isSmartRef__":true,"id":8223},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8223":{"this":{"__isSmartRef__":true,"id":8211},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8224}},"8224":{"$super":{"__isSmartRef__":true,"id":8225}},"8225":{"varMapping":{"__isSmartRef__":true,"id":8226},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8226":{"obj":{"__isSmartRef__":true,"id":8211},"name":"toggle"},"8227":{},"8228":{},"8229":{"varMapping":{"__isSmartRef__":true,"id":8230},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8230":{"this":{"__isSmartRef__":true,"id":8211}},"8231":{},"8232":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8233},"derivationIds":[null],"id":"1F30B5F8-CD33-4CF6-B315-5733A75C9F11","renderContextTable":{"__isSmartRef__":true,"id":8237},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8238},{"__isSmartRef__":true,"id":8240}],"eventHandler":{"__isSmartRef__":true,"id":8242},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8243},"priorExtent":{"__isSmartRef__":true,"id":8244},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8210},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8245},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8233":{"_Position":{"__isSmartRef__":true,"id":8234},"renderContextTable":{"__isSmartRef__":true,"id":8235},"_Extent":{"__isSmartRef__":true,"id":8236},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8234":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8235":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8236":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__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","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8238":{"style":{"__isSmartRef__":true,"id":8239},"chunkOwner":{"__isSmartRef__":true,"id":8232},"storedString":"rows","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8239":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8240":{"style":{"__isSmartRef__":true,"id":8241},"chunkOwner":{"__isSmartRef__":true,"id":8232},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8241":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8242":{"morph":{"__isSmartRef__":true,"id":8232},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8243":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8244":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8245":{"layoutText":{"__isSmartRef__":true,"id":8246}},"8246":{"varMapping":{"__isSmartRef__":true,"id":8247},"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":8248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8247":{"this":{"__isSmartRef__":true,"id":8232}},"8248":{},"8249":{"_Position":{"__isSmartRef__":true,"id":8250},"renderContextTable":{"__isSmartRef__":true,"id":8251},"_Extent":{"__isSmartRef__":true,"id":8252},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8253},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8250":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8251":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8252":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8253":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8254":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8255":{"morph":{"__isSmartRef__":true,"id":8210},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8256":{"resizeWidth":true},"8257":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8258":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8259":{"updateExpanderColor":{"__isSmartRef__":true,"id":8260},"onMouseDown":{"__isSmartRef__":true,"id":8263},"isRoot":{"__isSmartRef__":true,"id":8270},"displayValue":{"__isSmartRef__":true,"id":8273},"update":{"__isSmartRef__":true,"id":8276}},"8260":{"varMapping":{"__isSmartRef__":true,"id":8261},"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":8262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8261":{"this":{"__isSmartRef__":true,"id":8210}},"8262":{},"8263":{"varMapping":{"__isSmartRef__":true,"id":8264},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8264":{"this":{"__isSmartRef__":true,"id":8210},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8265}},"8265":{"$super":{"__isSmartRef__":true,"id":8266}},"8266":{"varMapping":{"__isSmartRef__":true,"id":8267},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8267":{"obj":{"__isSmartRef__":true,"id":8210},"name":"onMouseDown"},"8268":{},"8269":{},"8270":{"varMapping":{"__isSmartRef__":true,"id":8271},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8271":{"this":{"__isSmartRef__":true,"id":8210}},"8272":{},"8273":{"varMapping":{"__isSmartRef__":true,"id":8274},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8274":{"this":{"__isSmartRef__":true,"id":8210}},"8275":{},"8276":{"varMapping":{"__isSmartRef__":true,"id":8277},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8277":{"this":{"__isSmartRef__":true,"id":8210}},"8278":{},"8279":{"_Position":{"__isSmartRef__":true,"id":8280},"renderContextTable":{"__isSmartRef__":true,"id":8281},"_Extent":{"__isSmartRef__":true,"id":8282},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8283},"__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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8283":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8284":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8285":{"morph":{"__isSmartRef__":true,"id":8209},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8286":{"layouter":{"__isSmartRef__":true,"id":8287},"resizeWidth":true},"8287":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8209},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8288":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8289":{"x":0,"y":560,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8290":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8291}},"8291":{"varMapping":{"__isSmartRef__":true,"id":8292},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8292":{"this":{"__isSmartRef__":true,"id":8209},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8293}},"8293":{"$super":{"__isSmartRef__":true,"id":8294}},"8294":{"varMapping":{"__isSmartRef__":true,"id":8295},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8295":{"obj":{"__isSmartRef__":true,"id":8209},"name":"getLayoutableSubmorphs"},"8296":{},"8297":{},"8298":{"submorphs":[{"__isSmartRef__":true,"id":8299}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8368},"derivationIds":[null],"id":"57E3C7E7-9896-4E73-A0DA-81B2F9ADC8E1","renderContextTable":{"__isSmartRef__":true,"id":8373},"eventHandler":{"__isSmartRef__":true,"id":8374},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8375},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8377},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8378},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8379},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8299":{"submorphs":[{"__isSmartRef__":true,"id":8300},{"__isSmartRef__":true,"id":8321}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8338},"derivationIds":[null],"id":"94F2BF6C-02CA-44C6-8B74-3943E9311F24","renderContextTable":{"__isSmartRef__":true,"id":8343},"eventHandler":{"__isSmartRef__":true,"id":8344},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8345},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"scripts","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":8300},"text":{"__isSmartRef__":true,"id":8321},"owner":{"__isSmartRef__":true,"id":8298},"_Position":{"__isSmartRef__":true,"id":8346},"priorExtent":{"__isSmartRef__":true,"id":8347},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8348},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8300":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8301},"derivationIds":[null],"id":"212C80F2-0B19-4CC5-8736-5783D35B22B5","renderContextTable":{"__isSmartRef__":true,"id":8307},"eventHandler":{"__isSmartRef__":true,"id":8308},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8309},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8299},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8310},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8301":{"_Position":{"__isSmartRef__":true,"id":8302},"renderContextTable":{"__isSmartRef__":true,"id":8303},"_Extent":{"__isSmartRef__":true,"id":8304},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8305},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":8306},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8302":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8303":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8304":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8305":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8306":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8307":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8308":{"morph":{"__isSmartRef__":true,"id":8300},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8309":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8310":{"toggle":{"__isSmartRef__":true,"id":8311},"toggleExpansion":{"__isSmartRef__":true,"id":8318}},"8311":{"varMapping":{"__isSmartRef__":true,"id":8312},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8312":{"this":{"__isSmartRef__":true,"id":8300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8313}},"8313":{"$super":{"__isSmartRef__":true,"id":8314}},"8314":{"varMapping":{"__isSmartRef__":true,"id":8315},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8315":{"obj":{"__isSmartRef__":true,"id":8300},"name":"toggle"},"8316":{},"8317":{},"8318":{"varMapping":{"__isSmartRef__":true,"id":8319},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8319":{"this":{"__isSmartRef__":true,"id":8300}},"8320":{},"8321":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8322},"derivationIds":[null],"id":"1C8EAF2C-C878-4528-94B9-9CCD0B0E3876","renderContextTable":{"__isSmartRef__":true,"id":8326},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8327},{"__isSmartRef__":true,"id":8329}],"eventHandler":{"__isSmartRef__":true,"id":8331},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8332},"priorExtent":{"__isSmartRef__":true,"id":8333},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8299},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8334},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8322":{"_Position":{"__isSmartRef__":true,"id":8323},"renderContextTable":{"__isSmartRef__":true,"id":8324},"_Extent":{"__isSmartRef__":true,"id":8325},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8323":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8324":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8325":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8326":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8327":{"style":{"__isSmartRef__":true,"id":8328},"chunkOwner":{"__isSmartRef__":true,"id":8321},"storedString":"scripts","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8328":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8329":{"style":{"__isSmartRef__":true,"id":8330},"chunkOwner":{"__isSmartRef__":true,"id":8321},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8330":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8331":{"morph":{"__isSmartRef__":true,"id":8321},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8332":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8333":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8334":{"layoutText":{"__isSmartRef__":true,"id":8335}},"8335":{"varMapping":{"__isSmartRef__":true,"id":8336},"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":8337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8336":{"this":{"__isSmartRef__":true,"id":8321}},"8337":{},"8338":{"_Position":{"__isSmartRef__":true,"id":8339},"renderContextTable":{"__isSmartRef__":true,"id":8340},"_Extent":{"__isSmartRef__":true,"id":8341},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8342},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8339":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8340":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8342":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8343":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8344":{"morph":{"__isSmartRef__":true,"id":8299},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8345":{"resizeWidth":true},"8346":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8347":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8348":{"updateExpanderColor":{"__isSmartRef__":true,"id":8349},"onMouseDown":{"__isSmartRef__":true,"id":8352},"isRoot":{"__isSmartRef__":true,"id":8359},"displayValue":{"__isSmartRef__":true,"id":8362},"update":{"__isSmartRef__":true,"id":8365}},"8349":{"varMapping":{"__isSmartRef__":true,"id":8350},"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":8351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8350":{"this":{"__isSmartRef__":true,"id":8299}},"8351":{},"8352":{"varMapping":{"__isSmartRef__":true,"id":8353},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8353":{"this":{"__isSmartRef__":true,"id":8299},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8354}},"8354":{"$super":{"__isSmartRef__":true,"id":8355}},"8355":{"varMapping":{"__isSmartRef__":true,"id":8356},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8356":{"obj":{"__isSmartRef__":true,"id":8299},"name":"onMouseDown"},"8357":{},"8358":{},"8359":{"varMapping":{"__isSmartRef__":true,"id":8360},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8360":{"this":{"__isSmartRef__":true,"id":8299}},"8361":{},"8362":{"varMapping":{"__isSmartRef__":true,"id":8363},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8363":{"this":{"__isSmartRef__":true,"id":8299}},"8364":{},"8365":{"varMapping":{"__isSmartRef__":true,"id":8366},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8366":{"this":{"__isSmartRef__":true,"id":8299}},"8367":{},"8368":{"_Position":{"__isSmartRef__":true,"id":8369},"renderContextTable":{"__isSmartRef__":true,"id":8370},"_Extent":{"__isSmartRef__":true,"id":8371},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8372},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8369":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8370":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8371":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8372":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8373":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8374":{"morph":{"__isSmartRef__":true,"id":8298},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8375":{"layouter":{"__isSmartRef__":true,"id":8376},"resizeWidth":true},"8376":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8298},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8377":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8378":{"x":0,"y":580,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8379":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8380}},"8380":{"varMapping":{"__isSmartRef__":true,"id":8381},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8381":{"this":{"__isSmartRef__":true,"id":8298},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8382}},"8382":{"$super":{"__isSmartRef__":true,"id":8383}},"8383":{"varMapping":{"__isSmartRef__":true,"id":8384},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8384":{"obj":{"__isSmartRef__":true,"id":8298},"name":"getLayoutableSubmorphs"},"8385":{},"8386":{},"8387":{"submorphs":[{"__isSmartRef__":true,"id":8388}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8457},"derivationIds":[null],"id":"AA76FE40-E4E9-4BB7-B83F-AB476C63BB98","renderContextTable":{"__isSmartRef__":true,"id":8462},"eventHandler":{"__isSmartRef__":true,"id":8463},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8464},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8466},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8467},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8468},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8388":{"submorphs":[{"__isSmartRef__":true,"id":8389},{"__isSmartRef__":true,"id":8410}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8427},"derivationIds":[null],"id":"10CEF716-BB92-409B-9867-1BDD5C24AFEC","renderContextTable":{"__isSmartRef__":true,"id":8432},"eventHandler":{"__isSmartRef__":true,"id":8433},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8434},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":1451},"propertyList":["_Position","renderContextTable","_renderContext","_Extent","_ClipMode","_Padding","_Fill"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"shape","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":8389},"text":{"__isSmartRef__":true,"id":8410},"owner":{"__isSmartRef__":true,"id":8387},"_Position":{"__isSmartRef__":true,"id":8435},"priorExtent":{"__isSmartRef__":true,"id":8436},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8437},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8389":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8390},"derivationIds":[null],"id":"324730EC-CC6A-4AB6-BAE5-5BFF033B385D","renderContextTable":{"__isSmartRef__":true,"id":8396},"eventHandler":{"__isSmartRef__":true,"id":8397},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8398},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8388},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8399},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8390":{"_Position":{"__isSmartRef__":true,"id":8391},"renderContextTable":{"__isSmartRef__":true,"id":8392},"_Extent":{"__isSmartRef__":true,"id":8393},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8394},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":8395},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8391":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8392":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8393":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8394":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8395":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8396":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8397":{"morph":{"__isSmartRef__":true,"id":8389},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8398":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8399":{"toggle":{"__isSmartRef__":true,"id":8400},"toggleExpansion":{"__isSmartRef__":true,"id":8407}},"8400":{"varMapping":{"__isSmartRef__":true,"id":8401},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8401":{"this":{"__isSmartRef__":true,"id":8389},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8402}},"8402":{"$super":{"__isSmartRef__":true,"id":8403}},"8403":{"varMapping":{"__isSmartRef__":true,"id":8404},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8404":{"obj":{"__isSmartRef__":true,"id":8389},"name":"toggle"},"8405":{},"8406":{},"8407":{"varMapping":{"__isSmartRef__":true,"id":8408},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8408":{"this":{"__isSmartRef__":true,"id":8389}},"8409":{},"8410":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8411},"derivationIds":[null],"id":"6165BD3B-1089-4465-9833-382F4040B884","renderContextTable":{"__isSmartRef__":true,"id":8415},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8416},{"__isSmartRef__":true,"id":8418}],"eventHandler":{"__isSmartRef__":true,"id":8420},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8421},"priorExtent":{"__isSmartRef__":true,"id":8422},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8388},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8423},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8411":{"_Position":{"__isSmartRef__":true,"id":8412},"renderContextTable":{"__isSmartRef__":true,"id":8413},"_Extent":{"__isSmartRef__":true,"id":8414},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8412":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8413":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8414":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8415":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8416":{"style":{"__isSmartRef__":true,"id":8417},"chunkOwner":{"__isSmartRef__":true,"id":8410},"storedString":"shape","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8417":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8418":{"style":{"__isSmartRef__":true,"id":8419},"chunkOwner":{"__isSmartRef__":true,"id":8410},"storedString":": Rectangle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8419":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8420":{"morph":{"__isSmartRef__":true,"id":8410},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8421":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8422":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8423":{"layoutText":{"__isSmartRef__":true,"id":8424}},"8424":{"varMapping":{"__isSmartRef__":true,"id":8425},"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":8426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8425":{"this":{"__isSmartRef__":true,"id":8410}},"8426":{},"8427":{"_Position":{"__isSmartRef__":true,"id":8428},"renderContextTable":{"__isSmartRef__":true,"id":8429},"_Extent":{"__isSmartRef__":true,"id":8430},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8431},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8428":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8429":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8430":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8431":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8432":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8433":{"morph":{"__isSmartRef__":true,"id":8388},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8434":{"resizeWidth":true},"8435":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8436":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8437":{"updateExpanderColor":{"__isSmartRef__":true,"id":8438},"onMouseDown":{"__isSmartRef__":true,"id":8441},"isRoot":{"__isSmartRef__":true,"id":8448},"displayValue":{"__isSmartRef__":true,"id":8451},"update":{"__isSmartRef__":true,"id":8454}},"8438":{"varMapping":{"__isSmartRef__":true,"id":8439},"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":8440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8439":{"this":{"__isSmartRef__":true,"id":8388}},"8440":{},"8441":{"varMapping":{"__isSmartRef__":true,"id":8442},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8442":{"this":{"__isSmartRef__":true,"id":8388},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8443}},"8443":{"$super":{"__isSmartRef__":true,"id":8444}},"8444":{"varMapping":{"__isSmartRef__":true,"id":8445},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8445":{"obj":{"__isSmartRef__":true,"id":8388},"name":"onMouseDown"},"8446":{},"8447":{},"8448":{"varMapping":{"__isSmartRef__":true,"id":8449},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8449":{"this":{"__isSmartRef__":true,"id":8388}},"8450":{},"8451":{"varMapping":{"__isSmartRef__":true,"id":8452},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8452":{"this":{"__isSmartRef__":true,"id":8388}},"8453":{},"8454":{"varMapping":{"__isSmartRef__":true,"id":8455},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8455":{"this":{"__isSmartRef__":true,"id":8388}},"8456":{},"8457":{"_Position":{"__isSmartRef__":true,"id":8458},"renderContextTable":{"__isSmartRef__":true,"id":8459},"_Extent":{"__isSmartRef__":true,"id":8460},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8461},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8458":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8459":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8460":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8461":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8462":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8463":{"morph":{"__isSmartRef__":true,"id":8387},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8464":{"layouter":{"__isSmartRef__":true,"id":8465},"resizeWidth":true},"8465":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8387},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8466":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8467":{"x":0,"y":600,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8468":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8469}},"8469":{"varMapping":{"__isSmartRef__":true,"id":8470},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8470":{"this":{"__isSmartRef__":true,"id":8387},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8471}},"8471":{"$super":{"__isSmartRef__":true,"id":8472}},"8472":{"varMapping":{"__isSmartRef__":true,"id":8473},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8473":{"obj":{"__isSmartRef__":true,"id":8387},"name":"getLayoutableSubmorphs"},"8474":{},"8475":{},"8476":{"submorphs":[{"__isSmartRef__":true,"id":8477}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8546},"derivationIds":[null],"id":"BA785094-9792-4CDD-A386-9018BAE04A35","renderContextTable":{"__isSmartRef__":true,"id":8551},"eventHandler":{"__isSmartRef__":true,"id":8552},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8553},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8555},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8556},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8557},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8477":{"submorphs":[{"__isSmartRef__":true,"id":8478},{"__isSmartRef__":true,"id":8499}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8516},"derivationIds":[null],"id":"A337BE58-BE6B-4869-B133-0ED86941C318","renderContextTable":{"__isSmartRef__":true,"id":8521},"eventHandler":{"__isSmartRef__":true,"id":8522},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8523},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"showsHalos","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":8478},"text":{"__isSmartRef__":true,"id":8499},"owner":{"__isSmartRef__":true,"id":8476},"_Position":{"__isSmartRef__":true,"id":8524},"priorExtent":{"__isSmartRef__":true,"id":8525},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8526},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8479},"derivationIds":[null],"id":"0C8464B9-FD2B-4577-B8B8-19A16B42F140","renderContextTable":{"__isSmartRef__":true,"id":8485},"eventHandler":{"__isSmartRef__":true,"id":8486},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8487},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8477},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8488},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8479":{"_Position":{"__isSmartRef__":true,"id":8480},"renderContextTable":{"__isSmartRef__":true,"id":8481},"_Extent":{"__isSmartRef__":true,"id":8482},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8483},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":8484},"__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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8483":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8484":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8485":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8486":{"morph":{"__isSmartRef__":true,"id":8478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8487":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8488":{"toggle":{"__isSmartRef__":true,"id":8489},"toggleExpansion":{"__isSmartRef__":true,"id":8496}},"8489":{"varMapping":{"__isSmartRef__":true,"id":8490},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8490":{"this":{"__isSmartRef__":true,"id":8478},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8491}},"8491":{"$super":{"__isSmartRef__":true,"id":8492}},"8492":{"varMapping":{"__isSmartRef__":true,"id":8493},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8493":{"obj":{"__isSmartRef__":true,"id":8478},"name":"toggle"},"8494":{},"8495":{},"8496":{"varMapping":{"__isSmartRef__":true,"id":8497},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8497":{"this":{"__isSmartRef__":true,"id":8478}},"8498":{},"8499":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8500},"derivationIds":[null],"id":"C3969DB1-2816-4014-A12F-09192497579C","renderContextTable":{"__isSmartRef__":true,"id":8504},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8505},{"__isSmartRef__":true,"id":8507}],"eventHandler":{"__isSmartRef__":true,"id":8509},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8510},"priorExtent":{"__isSmartRef__":true,"id":8511},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8477},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8512},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8500":{"_Position":{"__isSmartRef__":true,"id":8501},"renderContextTable":{"__isSmartRef__":true,"id":8502},"_Extent":{"__isSmartRef__":true,"id":8503},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8501":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8502":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8503":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8504":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8505":{"style":{"__isSmartRef__":true,"id":8506},"chunkOwner":{"__isSmartRef__":true,"id":8499},"storedString":"showsHalos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8506":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8507":{"style":{"__isSmartRef__":true,"id":8508},"chunkOwner":{"__isSmartRef__":true,"id":8499},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8508":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8509":{"morph":{"__isSmartRef__":true,"id":8499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8510":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8511":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8512":{"layoutText":{"__isSmartRef__":true,"id":8513}},"8513":{"varMapping":{"__isSmartRef__":true,"id":8514},"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":8515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8514":{"this":{"__isSmartRef__":true,"id":8499}},"8515":{},"8516":{"_Position":{"__isSmartRef__":true,"id":8517},"renderContextTable":{"__isSmartRef__":true,"id":8518},"_Extent":{"__isSmartRef__":true,"id":8519},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8520},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8517":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8518":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8519":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8520":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8521":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8522":{"morph":{"__isSmartRef__":true,"id":8477},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8523":{"resizeWidth":true},"8524":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8525":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8526":{"updateExpanderColor":{"__isSmartRef__":true,"id":8527},"onMouseDown":{"__isSmartRef__":true,"id":8530},"isRoot":{"__isSmartRef__":true,"id":8537},"displayValue":{"__isSmartRef__":true,"id":8540},"update":{"__isSmartRef__":true,"id":8543}},"8527":{"varMapping":{"__isSmartRef__":true,"id":8528},"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":8529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8528":{"this":{"__isSmartRef__":true,"id":8477}},"8529":{},"8530":{"varMapping":{"__isSmartRef__":true,"id":8531},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8531":{"this":{"__isSmartRef__":true,"id":8477},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8532}},"8532":{"$super":{"__isSmartRef__":true,"id":8533}},"8533":{"varMapping":{"__isSmartRef__":true,"id":8534},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8534":{"obj":{"__isSmartRef__":true,"id":8477},"name":"onMouseDown"},"8535":{},"8536":{},"8537":{"varMapping":{"__isSmartRef__":true,"id":8538},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8538":{"this":{"__isSmartRef__":true,"id":8477}},"8539":{},"8540":{"varMapping":{"__isSmartRef__":true,"id":8541},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8541":{"this":{"__isSmartRef__":true,"id":8477}},"8542":{},"8543":{"varMapping":{"__isSmartRef__":true,"id":8544},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8544":{"this":{"__isSmartRef__":true,"id":8477}},"8545":{},"8546":{"_Position":{"__isSmartRef__":true,"id":8547},"renderContextTable":{"__isSmartRef__":true,"id":8548},"_Extent":{"__isSmartRef__":true,"id":8549},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8550},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8547":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8548":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8549":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8550":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8551":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8552":{"morph":{"__isSmartRef__":true,"id":8476},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8553":{"layouter":{"__isSmartRef__":true,"id":8554},"resizeWidth":true},"8554":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8476},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8555":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8556":{"x":0,"y":620,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8557":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8558}},"8558":{"varMapping":{"__isSmartRef__":true,"id":8559},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8559":{"this":{"__isSmartRef__":true,"id":8476},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8560}},"8560":{"$super":{"__isSmartRef__":true,"id":8561}},"8561":{"varMapping":{"__isSmartRef__":true,"id":8562},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8562":{"obj":{"__isSmartRef__":true,"id":8476},"name":"getLayoutableSubmorphs"},"8563":{},"8564":{},"8565":{"submorphs":[{"__isSmartRef__":true,"id":8566}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8635},"derivationIds":[null],"id":"F9BB5618-3BD0-4A78-BB1E-A4B82D1C1E86","renderContextTable":{"__isSmartRef__":true,"id":8640},"eventHandler":{"__isSmartRef__":true,"id":8641},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8642},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8644},"owner":{"__isSmartRef__":true,"id":5805},"_Position":{"__isSmartRef__":true,"id":8645},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8646},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8566":{"submorphs":[{"__isSmartRef__":true,"id":8567},{"__isSmartRef__":true,"id":8588}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8605},"derivationIds":[null],"id":"9840E9CF-BBB0-4CDD-A4EE-AFDA391426C5","renderContextTable":{"__isSmartRef__":true,"id":8610},"eventHandler":{"__isSmartRef__":true,"id":8611},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8612},"grabbingEnabled":false,"draggingEnabled":false,"data":[{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":33},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":85},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":137},{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":202},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":228},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":254},{"__isSmartRef__":true,"id":267},{"__isSmartRef__":true,"id":280},{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":333},{"__isSmartRef__":true,"id":346},{"__isSmartRef__":true,"id":359},{"__isSmartRef__":true,"id":372},{"__isSmartRef__":true,"id":385},{"__isSmartRef__":true,"id":398},{"__isSmartRef__":true,"id":411},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":476},{"__isSmartRef__":true,"id":489},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":528},{"__isSmartRef__":true,"id":541},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":567},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":606},{"__isSmartRef__":true,"id":619},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":658},{"__isSmartRef__":true,"id":671},{"__isSmartRef__":true,"id":684},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":710},{"__isSmartRef__":true,"id":723},{"__isSmartRef__":true,"id":736},{"__isSmartRef__":true,"id":749},{"__isSmartRef__":true,"id":762},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":788},{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":814},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":866},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":892},{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":918},{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":944},{"__isSmartRef__":true,"id":957},{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":983},{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":1009},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1035},{"__isSmartRef__":true,"id":1048},{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1113},{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1152},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1178},{"__isSmartRef__":true,"id":1191},{"__isSmartRef__":true,"id":1204},{"__isSmartRef__":true,"id":1217},{"__isSmartRef__":true,"id":1230},{"__isSmartRef__":true,"id":1243},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1269},{"__isSmartRef__":true,"id":1282},{"__isSmartRef__":true,"id":1295},{"__isSmartRef__":true,"id":1308},{"__isSmartRef__":true,"id":1321},{"__isSmartRef__":true,"id":1334},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1360},{"__isSmartRef__":true,"id":1373},{"__isSmartRef__":true,"id":1386},{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1438}],"propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"submorphs","children":[],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":8567},"text":{"__isSmartRef__":true,"id":8588},"owner":{"__isSmartRef__":true,"id":8565},"_Position":{"__isSmartRef__":true,"id":8613},"priorExtent":{"__isSmartRef__":true,"id":8614},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8615},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8567":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8568},"derivationIds":[null],"id":"1067E208-81B3-4958-B2DE-1D376CDE3402","renderContextTable":{"__isSmartRef__":true,"id":8574},"eventHandler":{"__isSmartRef__":true,"id":8575},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8576},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8577},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8568":{"_Position":{"__isSmartRef__":true,"id":8569},"renderContextTable":{"__isSmartRef__":true,"id":8570},"_Extent":{"__isSmartRef__":true,"id":8571},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8572},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":8573},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8569":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8570":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8571":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8572":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8573":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8574":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8575":{"morph":{"__isSmartRef__":true,"id":8567},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8576":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8577":{"toggle":{"__isSmartRef__":true,"id":8578},"toggleExpansion":{"__isSmartRef__":true,"id":8585}},"8578":{"varMapping":{"__isSmartRef__":true,"id":8579},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8579":{"this":{"__isSmartRef__":true,"id":8567},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8580}},"8580":{"$super":{"__isSmartRef__":true,"id":8581}},"8581":{"varMapping":{"__isSmartRef__":true,"id":8582},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8582":{"obj":{"__isSmartRef__":true,"id":8567},"name":"toggle"},"8583":{},"8584":{},"8585":{"varMapping":{"__isSmartRef__":true,"id":8586},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8586":{"this":{"__isSmartRef__":true,"id":8567}},"8587":{},"8588":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8589},"derivationIds":[null],"id":"81B38B6A-453E-4E46-B13F-5198B713C5BA","renderContextTable":{"__isSmartRef__":true,"id":8593},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8594},{"__isSmartRef__":true,"id":8596}],"eventHandler":{"__isSmartRef__":true,"id":8598},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8599},"priorExtent":{"__isSmartRef__":true,"id":8600},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8601},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8589":{"_Position":{"__isSmartRef__":true,"id":8590},"renderContextTable":{"__isSmartRef__":true,"id":8591},"_Extent":{"__isSmartRef__":true,"id":8592},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8590":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8591":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8592":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8593":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8594":{"style":{"__isSmartRef__":true,"id":8595},"chunkOwner":{"__isSmartRef__":true,"id":8588},"storedString":"submorphs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8595":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8596":{"style":{"__isSmartRef__":true,"id":8597},"chunkOwner":{"__isSmartRef__":true,"id":8588},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8597":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8598":{"morph":{"__isSmartRef__":true,"id":8588},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8599":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8600":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8601":{"layoutText":{"__isSmartRef__":true,"id":8602}},"8602":{"varMapping":{"__isSmartRef__":true,"id":8603},"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":8604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8603":{"this":{"__isSmartRef__":true,"id":8588}},"8604":{},"8605":{"_Position":{"__isSmartRef__":true,"id":8606},"renderContextTable":{"__isSmartRef__":true,"id":8607},"_Extent":{"__isSmartRef__":true,"id":8608},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8609},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8606":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8607":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8608":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8609":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8610":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8611":{"morph":{"__isSmartRef__":true,"id":8566},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8612":{"resizeWidth":true},"8613":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8614":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8615":{"updateExpanderColor":{"__isSmartRef__":true,"id":8616},"onMouseDown":{"__isSmartRef__":true,"id":8619},"isRoot":{"__isSmartRef__":true,"id":8626},"displayValue":{"__isSmartRef__":true,"id":8629},"update":{"__isSmartRef__":true,"id":8632}},"8616":{"varMapping":{"__isSmartRef__":true,"id":8617},"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":8618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8617":{"this":{"__isSmartRef__":true,"id":8566}},"8618":{},"8619":{"varMapping":{"__isSmartRef__":true,"id":8620},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8620":{"this":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8621}},"8621":{"$super":{"__isSmartRef__":true,"id":8622}},"8622":{"varMapping":{"__isSmartRef__":true,"id":8623},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8623":{"obj":{"__isSmartRef__":true,"id":8566},"name":"onMouseDown"},"8624":{},"8625":{},"8626":{"varMapping":{"__isSmartRef__":true,"id":8627},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8627":{"this":{"__isSmartRef__":true,"id":8566}},"8628":{},"8629":{"varMapping":{"__isSmartRef__":true,"id":8630},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8630":{"this":{"__isSmartRef__":true,"id":8566}},"8631":{},"8632":{"varMapping":{"__isSmartRef__":true,"id":8633},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8633":{"this":{"__isSmartRef__":true,"id":8566}},"8634":{},"8635":{"_Position":{"__isSmartRef__":true,"id":8636},"renderContextTable":{"__isSmartRef__":true,"id":8637},"_Extent":{"__isSmartRef__":true,"id":8638},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8639},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8636":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8637":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8638":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8639":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8640":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8641":{"morph":{"__isSmartRef__":true,"id":8565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8642":{"layouter":{"__isSmartRef__":true,"id":8643},"resizeWidth":true},"8643":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8565},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8644":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8645":{"x":0,"y":640,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8646":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8647}},"8647":{"varMapping":{"__isSmartRef__":true,"id":8648},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8648":{"this":{"__isSmartRef__":true,"id":8565},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8649}},"8649":{"$super":{"__isSmartRef__":true,"id":8650}},"8650":{"varMapping":{"__isSmartRef__":true,"id":8651},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8651":{"obj":{"__isSmartRef__":true,"id":8565},"name":"getLayoutableSubmorphs"},"8652":{},"8653":{},"8654":{"_Position":{"__isSmartRef__":true,"id":8655},"renderContextTable":{"__isSmartRef__":true,"id":8656},"_Extent":{"__isSmartRef__":true,"id":8657},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8658},"__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":100,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8659":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8660":{"morph":{"__isSmartRef__":true,"id":5805},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8661":{"layouter":{"__isSmartRef__":true,"id":8662},"resizeWidth":true},"8662":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5805},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8663":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8664":{"x":100,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8665":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8666},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":8673}},"8666":{"varMapping":{"__isSmartRef__":true,"id":8667},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8667":{"this":{"__isSmartRef__":true,"id":5805},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8668}},"8668":{"$super":{"__isSmartRef__":true,"id":8669}},"8669":{"varMapping":{"__isSmartRef__":true,"id":8670},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8670":{"obj":{"__isSmartRef__":true,"id":5805},"name":"getLayoutableSubmorphs"},"8671":{},"8672":{},"8673":{"varMapping":{"__isSmartRef__":true,"id":8674},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8674":{"this":{"__isSmartRef__":true,"id":5805}},"8675":{},"8676":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8677":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8678}},"8678":{"varMapping":{"__isSmartRef__":true,"id":8679},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8679":{"this":{"__isSmartRef__":true,"id":5794},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8680}},"8680":{"$super":{"__isSmartRef__":true,"id":8681}},"8681":{"varMapping":{"__isSmartRef__":true,"id":8682},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8682":{"obj":{"__isSmartRef__":true,"id":5794},"name":"getLayoutableSubmorphs"},"8683":{},"8684":{},"8685":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8686":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8687":{"updateExpanderColor":{"__isSmartRef__":true,"id":8688},"onMouseDown":{"__isSmartRef__":true,"id":8691},"isRoot":{"__isSmartRef__":true,"id":8698},"displayValue":{"__isSmartRef__":true,"id":8701},"update":{"__isSmartRef__":true,"id":8704}},"8688":{"varMapping":{"__isSmartRef__":true,"id":8689},"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":8690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8689":{"this":{"__isSmartRef__":true,"id":5747}},"8690":{},"8691":{"varMapping":{"__isSmartRef__":true,"id":8692},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8692":{"this":{"__isSmartRef__":true,"id":5747},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8693}},"8693":{"$super":{"__isSmartRef__":true,"id":8694}},"8694":{"varMapping":{"__isSmartRef__":true,"id":8695},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8695":{"obj":{"__isSmartRef__":true,"id":5747},"name":"onMouseDown"},"8696":{},"8697":{},"8698":{"varMapping":{"__isSmartRef__":true,"id":8699},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8699":{"this":{"__isSmartRef__":true,"id":5747}},"8700":{},"8701":{"varMapping":{"__isSmartRef__":true,"id":8702},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8702":{"this":{"__isSmartRef__":true,"id":5747}},"8703":{},"8704":{"varMapping":{"__isSmartRef__":true,"id":8705},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8705":{"this":{"__isSmartRef__":true,"id":5747}},"8706":{},"8707":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8708":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8709":{"updateExpanderColor":{"__isSmartRef__":true,"id":8710},"onMouseDown":{"__isSmartRef__":true,"id":8713},"isRoot":{"__isSmartRef__":true,"id":8720},"displayValue":{"__isSmartRef__":true,"id":8723},"update":{"__isSmartRef__":true,"id":8726}},"8710":{"varMapping":{"__isSmartRef__":true,"id":8711},"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":8712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8711":{"this":{"__isSmartRef__":true,"id":5699}},"8712":{},"8713":{"varMapping":{"__isSmartRef__":true,"id":8714},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8714":{"this":{"__isSmartRef__":true,"id":5699},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8715}},"8715":{"$super":{"__isSmartRef__":true,"id":8716}},"8716":{"varMapping":{"__isSmartRef__":true,"id":8717},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8717":{"obj":{"__isSmartRef__":true,"id":5699},"name":"onMouseDown"},"8718":{},"8719":{},"8720":{"varMapping":{"__isSmartRef__":true,"id":8721},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8721":{"this":{"__isSmartRef__":true,"id":5699}},"8722":{},"8723":{"varMapping":{"__isSmartRef__":true,"id":8724},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":8725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8724":{"this":{"__isSmartRef__":true,"id":5699}},"8725":{},"8726":{"varMapping":{"__isSmartRef__":true,"id":8727},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8727":{"this":{"__isSmartRef__":true,"id":5699}},"8728":{},"8729":{"_Position":{"__isSmartRef__":true,"id":8730},"renderContextTable":{"__isSmartRef__":true,"id":8731},"_Extent":{"__isSmartRef__":true,"id":8732},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8733},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8730":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8731":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8732":{"x":100,"y":680,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8733":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8734":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8735":{"morph":{"__isSmartRef__":true,"id":5698},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8736":{"layouter":{"__isSmartRef__":true,"id":8737},"resizeWidth":true},"8737":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5698},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8738":{"x":100,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8739":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8740}},"8740":{"varMapping":{"__isSmartRef__":true,"id":8741},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8741":{"this":{"__isSmartRef__":true,"id":5698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8742}},"8742":{"$super":{"__isSmartRef__":true,"id":8743}},"8743":{"varMapping":{"__isSmartRef__":true,"id":8744},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8744":{"obj":{"__isSmartRef__":true,"id":5698},"name":"getLayoutableSubmorphs"},"8745":{},"8746":{},"8747":{"_Position":{"__isSmartRef__":true,"id":8748},"renderContextTable":{"__isSmartRef__":true,"id":8749},"_Extent":{"__isSmartRef__":true,"id":8750},"_ClipMode":"scroll","_Padding":{"__isSmartRef__":true,"id":8751},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8748":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8749":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8750":{"x":565.9619429239048,"y":390.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8751":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8752":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8753":{"morph":{"__isSmartRef__":true,"id":5697},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8754":{"x":10,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8755":{"resizeWidth":true,"resizeHeight":true},"8756":{"x":565.9619429239048,"y":391.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8757":{"setClipModeHTML":{"__isSmartRef__":true,"id":8758}},"8758":{"varMapping":{"__isSmartRef__":true,"id":8759},"source":"function setClipModeHTML(ctx, modeString) {\n $super(ctx, modeString);\n ctx.morphNode.style['overflow-x'] = 'hidden';\n }","funcProperties":{"__isSmartRef__":true,"id":8764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8759":{"this":{"__isSmartRef__":true,"id":5697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8760}},"8760":{"$super":{"__isSmartRef__":true,"id":8761}},"8761":{"varMapping":{"__isSmartRef__":true,"id":8762},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8762":{"obj":{"__isSmartRef__":true,"id":5697},"name":"setClipModeHTML"},"8763":{},"8764":{},"8765":{"target":{"__isSmartRef__":true,"id":5696},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":9812,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"8766":{"position":{"__isSmartRef__":true,"id":8767},"_Extent":{"__isSmartRef__":true,"id":8768},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":8769},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":8770},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8771},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8767":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8768":{"x":585.9619429239048,"y":410.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8769":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"8770":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8771":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"8772":{"x":10,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8773":{"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"},"8774":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8775":{"morph":{"__isSmartRef__":true,"id":5696},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8776":{"x":585.9619429239048,"y":411.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8777":{"layouter":{"__isSmartRef__":true,"id":8778},"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false,"adjustForNewBounds":true},"8778":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":5696},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"8779":{"x":164.35052570087606,"y":-15.96995493992489,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8780":{"border":{"__isSmartRef__":true,"id":5706},"contractedExpander":{"__isSmartRef__":true,"id":5754},"expandedExpander":{"__isSmartRef__":true,"id":1506},"focusedText":{"__isSmartRef__":true,"id":8781},"emphasizedText":{"__isSmartRef__":true,"id":5731}},"8781":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8782":{"size":10},"8783":{"wrapperExtent":{"__isSmartRef__":true,"id":8784},"expanderExtent":{"__isSmartRef__":true,"id":8785},"expanderOffset":{"__isSmartRef__":true,"id":8786},"textOffset":{"__isSmartRef__":true,"id":8787},"levelIndent":10,"maxTextWidth":500},"8784":{"x":0,"y":0,"width":100,"height":18,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8785":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8786":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8787":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8788":{"renderTree":{"__isSmartRef__":true,"id":8789},"createTreeNode":{"__isSmartRef__":true,"id":8793},"createTreeWrapper":{"__isSmartRef__":true,"id":8797},"reset":{"__isSmartRef__":true,"id":8801},"createTreeNodeMorph":{"__isSmartRef__":true,"id":8805},"createExpanderButton":{"__isSmartRef__":true,"id":8809},"createPropertyText":{"__isSmartRef__":true,"id":8813},"createScrollClip":{"__isSmartRef__":true,"id":8817},"resetDefaults":{"__isSmartRef__":true,"id":8821},"testMutabilityOf":{"__isSmartRef__":true,"id":8825},"getClassNameOf":{"__isSmartRef__":true,"id":8829},"getTypeOf":{"__isSmartRef__":true,"id":8833},"addScriptsToTreeNode":{"__isSmartRef__":true,"id":8837},"addScriptsToExpander":{"__isSmartRef__":true,"id":8841},"containsValues":{"__isSmartRef__":true,"id":8845},"getDisplayStringFor":{"__isSmartRef__":true,"id":8849},"getTypeStringFor":{"__isSmartRef__":true,"id":8853},"update":{"__isSmartRef__":true,"id":8857},"addScriptsToText":{"__isSmartRef__":true,"id":8861},"toggleAll":{"__isSmartRef__":true,"id":8865}},"8789":{"varMapping":{"__isSmartRef__":true,"id":8790},"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":8791},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8790":{"this":{"__isSmartRef__":true,"id":5696}},"8791":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8792}},"8792":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:42:55 GMT-0700 (PDT)"},"8793":{"varMapping":{"__isSmartRef__":true,"id":8794},"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":8795},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8794":{"this":{"__isSmartRef__":true,"id":5696}},"8795":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8796}},"8796":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:43:34 GMT-0700 (PDT)"},"8797":{"varMapping":{"__isSmartRef__":true,"id":8798},"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":8799},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8798":{"this":{"__isSmartRef__":true,"id":5696}},"8799":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8800}},"8800":{"isSerializedDate":true,"string":"Tue Sep 20 2011 08:05:52 GMT-0700 (PDT)"},"8801":{"varMapping":{"__isSmartRef__":true,"id":8802},"source":"function reset() {\n this.removeAllMorphs();\n this.resetDefaults();\n this.rootNode = null; \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":8803},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8802":{"this":{"__isSmartRef__":true,"id":5696}},"8803":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8804}},"8804":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:41:57 GMT-0700 (PDT)"},"8805":{"varMapping":{"__isSmartRef__":true,"id":8806},"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":8807},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8806":{"this":{"__isSmartRef__":true,"id":5696}},"8807":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8808}},"8808":{"isSerializedDate":true,"string":"Tue Oct 25 2011 10:24:35 GMT-0700 (PDT)"},"8809":{"varMapping":{"__isSmartRef__":true,"id":8810},"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":8811},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8810":{"this":{"__isSmartRef__":true,"id":5696}},"8811":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8812}},"8812":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:32:58 GMT-0700 (PDT)"},"8813":{"varMapping":{"__isSmartRef__":true,"id":8814},"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":8815},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8814":{"this":{"__isSmartRef__":true,"id":5696}},"8815":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8816}},"8816":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:18:07 GMT-0700 (PDT)"},"8817":{"varMapping":{"__isSmartRef__":true,"id":8818},"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":8819},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8818":{"this":{"__isSmartRef__":true,"id":5696}},"8819":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8820}},"8820":{"isSerializedDate":true,"string":"Mon Sep 19 2011 10:54:00 GMT-0700 (PDT)"},"8821":{"varMapping":{"__isSmartRef__":true,"id":8822},"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":8823},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8822":{"this":{"__isSmartRef__":true,"id":5696}},"8823":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8824}},"8824":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:38:04 GMT-0700 (PDT)"},"8825":{"varMapping":{"__isSmartRef__":true,"id":8826},"source":"function testMutabilityOf(value) {\n var type = this.getTypeOf(value);\n return (type === \"array\" || type === \"object\");\n}","funcProperties":{"__isSmartRef__":true,"id":8827},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8826":{"this":{"__isSmartRef__":true,"id":5696}},"8827":{"timestamp":{"__isSmartRef__":true,"id":8828},"user":"fbo","tags":[]},"8828":{"isSerializedDate":true,"string":"Fri Dec 02 2011 15:05:37 GMT-0800 (PST)"},"8829":{"varMapping":{"__isSmartRef__":true,"id":8830},"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":8831},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8830":{"this":{"__isSmartRef__":true,"id":5696}},"8831":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8832}},"8832":{"isSerializedDate":true,"string":"Tue Oct 25 2011 13:35:56 GMT-0700 (PDT)"},"8833":{"varMapping":{"__isSmartRef__":true,"id":8834},"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 } else if (value instanceof Date) {\n return \"date\";\n }\n } else {\n return null;\n }\n } \n return type;\n}","funcProperties":{"__isSmartRef__":true,"id":8835},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8834":{"this":{"__isSmartRef__":true,"id":5696}},"8835":{"timestamp":{"__isSmartRef__":true,"id":8836},"user":"fbo","tags":[]},"8836":{"isSerializedDate":true,"string":"Fri Dec 02 2011 15:04:45 GMT-0800 (PST)"},"8837":{"varMapping":{"__isSmartRef__":true,"id":8838},"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 isRoot() {\n return (this.parent === null || this.parent === undefined);\n });\n\n treeNode.addScript(function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n });\n \n treeNode.addScript(function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":8839},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8838":{"this":{"__isSmartRef__":true,"id":5696}},"8839":{"timestamp":{"__isSmartRef__":true,"id":8840},"user":"lauritz","tags":[]},"8840":{"isSerializedDate":true,"string":"Mon Dec 05 2011 15:52:51 GMT-0800 (PST)"},"8841":{"varMapping":{"__isSmartRef__":true,"id":8842},"source":"function addScriptsToExpander(expander) {\n\n expander.addScript(function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n });\n\n expander.addScript(function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && 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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":8843},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8842":{"this":{"__isSmartRef__":true,"id":5696}},"8843":{"timestamp":{"__isSmartRef__":true,"id":8844},"user":"lauritz","tags":[]},"8844":{"isSerializedDate":true,"string":"Wed Nov 30 2011 14:21:34 GMT-0800 (PST)"},"8845":{"varMapping":{"__isSmartRef__":true,"id":8846},"source":"function containsValues(value) {\n return (this.testMutabilityOf(value) && Properties.own(value).length > 0);\n}","funcProperties":{"__isSmartRef__":true,"id":8847},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8846":{"this":{"__isSmartRef__":true,"id":5696}},"8847":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8848}},"8848":{"isSerializedDate":true,"string":"Tue Sep 20 2011 13:32:20 GMT-0700 (PDT)"},"8849":{"varMapping":{"__isSmartRef__":true,"id":8850},"source":"function getDisplayStringFor(treeNode) {\n return treeNode.label + \": \" + (this.testMutabilityOf(treeNode.data) ? this.getTypeStringFor(treeNode.data) : treeNode.data)\n}","funcProperties":{"__isSmartRef__":true,"id":8851},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8850":{"this":{"__isSmartRef__":true,"id":5696}},"8851":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8852}},"8852":{"isSerializedDate":true,"string":"Mon Sep 26 2011 10:07:44 GMT-0700 (PDT)"},"8853":{"varMapping":{"__isSmartRef__":true,"id":8854},"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 displayTypeAndEmptiness(\"date\", \"<\", \">\");\n }\n return name;\n}","funcProperties":{"__isSmartRef__":true,"id":8855},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8854":{"this":{"__isSmartRef__":true,"id":5696}},"8855":{"timestamp":{"__isSmartRef__":true,"id":8856},"user":"fbo","tags":[]},"8856":{"isSerializedDate":true,"string":"Fri Dec 02 2011 15:05:17 GMT-0800 (PST)"},"8857":{"varMapping":{"__isSmartRef__":true,"id":8858},"source":"function update() {\n this.rootNode.update();\n}","funcProperties":{"__isSmartRef__":true,"id":8859},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8858":{"this":{"__isSmartRef__":true,"id":5696}},"8859":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8860}},"8860":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:42:27 GMT-0700 (PDT)"},"8861":{"varMapping":{"__isSmartRef__":true,"id":8862},"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":8863},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8862":{"this":{"__isSmartRef__":true,"id":5696}},"8863":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8864}},"8864":{"isSerializedDate":true,"string":"Mon Sep 26 2011 14:16:48 GMT-0700 (PDT)"},"8865":{"varMapping":{"__isSmartRef__":true,"id":8866},"source":"function toggleAll() {\n\n if (!this.rootNode) return;\n\n try {\n JSON.stringify(this.rootNode.data);\n } catch (e) {\n // probably a circular structure\n return;\n }\n\n var toggleChildren = function (node) {\n\n if (!node.children) return;\n\n (function() {\n node.children.forEach(function (each) {\n each.expander.toggleExpansion();\n toggleChildren(each);\n });\n }).bind(this).delay(0); // asynchronous\n }\n\n toggleChildren(this.rootNode);\n \n}","funcProperties":{"__isSmartRef__":true,"id":8867},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8866":{"this":{"__isSmartRef__":true,"id":5696}},"8867":{"timestamp":{"__isSmartRef__":true,"id":8868},"user":"lauritz","tags":[]},"8868":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:58:11 GMT-0800 (PST)"},"8869":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8870},"id":"16E5773B-6471-49A0-949A-17A2C0EF43F7","renderContextTable":{"__isSmartRef__":true,"id":8877},"textChunks":[{"__isSmartRef__":true,"id":8878}],"eventHandler":{"__isSmartRef__":true,"id":8880},"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":8881},"priorExtent":{"__isSmartRef__":true,"id":8882},"_MaxTextWidth":575.9619429239048,"_MinTextWidth":575.9619429239048,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":8883},"doitContext":{"__isSmartRef__":true,"id":306},"previousSelection":[0,0],"priorSelectionRange":[4,4],"charsReplaced":"typeof(this)","lastFindLoc":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"isBeingDragged":false,"showsHalos":false,"name":"Workspace","owner":{"__isSmartRef__":true,"id":5695},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":8884},"isCopyMorphRef":true,"morphRefId":1,"scriptAnnotations":{"__isSmartRef__":true,"id":8885},"lastDragTime":1317079672221,"derivationIds":[372,"3BBD270B-A828-436A-915C-D23688CF2067","D0890AA7-6E65-4B35-9600-1AD66DF96797","243534E4-AE49-45EC-9DB9-384D7DE4B994","251CC01A-7FDF-4357-9313-99DE732BDF7B"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8888},"__LivelyClassName__":"lively.morphic.Text"},"8870":{"_Position":{"__isSmartRef__":true,"id":8871},"renderContextTable":{"__isSmartRef__":true,"id":8872},"_Extent":{"__isSmartRef__":true,"id":8873},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":8874},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":8875},"_Fill":{"__isSmartRef__":true,"id":8876},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8871":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8872":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8873":{"x":585.9619429239048,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8874":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"8875":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"8876":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8877":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8878":{"style":{"__isSmartRef__":true,"id":8879},"chunkOwner":{"__isSmartRef__":true,"id":8869},"storedString":"this.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8879":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8880":{"morph":{"__isSmartRef__":true,"id":8869},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8881":{"x":10,"y":435.99799699599487,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8882":{"x":585.9619429239048,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8883":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true,"adjustForNewBounds":true},"8884":{"x":164.35052570087606,"y":-17.252879506132672,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8885":{"reset":{"__isSmartRef__":true,"id":8886}},"8886":{"time":{"__isSmartRef__":true,"id":8887},"user":"lauritz"},"8887":{"isSerializedDate":true,"string":"Tue Nov 15 2011 14:03:51 GMT-0800 (PST)"},"8888":{"reset":{"__isSmartRef__":true,"id":8889}},"8889":{"varMapping":{"__isSmartRef__":true,"id":8890},"source":"function reset() {\n this.doitContext = null;\n this.setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":8891},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"8890":{"this":{"__isSmartRef__":true,"id":8869}},"8891":{},"8892":{"position":{"__isSmartRef__":true,"id":8893},"_Extent":{"__isSmartRef__":true,"id":8894},"_BorderWidth":1.4500000000000002,"_BorderColor":{"__isSmartRef__":true,"id":8895},"_Fill":{"__isSmartRef__":true,"id":8896},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":8897},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8898},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8893":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8894":{"x":605.9619429239048,"y":526.9999999999999,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8895":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"8896":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__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":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"8899":{"x":0,"y":19,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8900":{"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":8901}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8901":{"date":{"__isSmartRef__":true,"id":8902},"author":"lauritz","message":"Disabled grabbing and dragging on other submorphs as well..."},"8902":{"isSerializedDate":true,"string":"Tue Oct 25 2011 11:21:08 GMT-0700 (PDT)"},"8903":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8904":{"morph":{"__isSmartRef__":true,"id":5695},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8905":{"x":605.9619429239048,"y":527.9999999999999,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8906":{"x":191.9999999999999,"y":-16.00000000000128,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8907":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true,"layouter":{"__isSmartRef__":true,"id":8908}},"8908":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":5695},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"8909":{"submorphs":[{"__isSmartRef__":true,"id":8910},{"__isSmartRef__":true,"id":8930}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8947},"derivationIds":[null],"id":"C9B12C15-D441-4E3F-B1C4-641C1F9A7163","renderContextTable":{"__isSmartRef__":true,"id":8952},"eventHandler":{"__isSmartRef__":true,"id":8953},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8954},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":306},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","_WhiteSpaceHandling","cachedTextString","textChunks","eventHandler","grabbingEnabled","droppingEnabled","halosEnabled","_ClipMode","fixedWidth","fixedHeight","allowInput","_FontFamily","_FontSize","charsTyped","evalEnabled","evalExpression","doitContext","priorExtent","_MaxTextWidth","_MinTextWidth","_MaxTextHeight","_MinTextHeight","grid","owner","gridCoords","name","_Position","priorSelectionRange","previousSelection","isBeingDragged","charsReplaced","lastFindLoc","showsHalos","halos"],"level":1,"treeView":{"__isSmartRef__":true,"id":5696},"label":"activeCell","children":[{"__isSmartRef__":true,"id":8955},{"__isSmartRef__":true,"id":9015},{"__isSmartRef__":true,"id":9104},{"__isSmartRef__":true,"id":9193},{"__isSmartRef__":true,"id":9282},{"__isSmartRef__":true,"id":9371},{"__isSmartRef__":true,"id":9460},{"__isSmartRef__":true,"id":9549},{"__isSmartRef__":true,"id":9838},{"__isSmartRef__":true,"id":9927},{"__isSmartRef__":true,"id":10016},{"__isSmartRef__":true,"id":10105},{"__isSmartRef__":true,"id":10194},{"__isSmartRef__":true,"id":10283},{"__isSmartRef__":true,"id":10372},{"__isSmartRef__":true,"id":10461},{"__isSmartRef__":true,"id":10549},{"__isSmartRef__":true,"id":10638},{"__isSmartRef__":true,"id":10727},{"__isSmartRef__":true,"id":10816},{"__isSmartRef__":true,"id":10905},{"__isSmartRef__":true,"id":10994},{"__isSmartRef__":true,"id":11083},{"__isSmartRef__":true,"id":11172},{"__isSmartRef__":true,"id":11260},{"__isSmartRef__":true,"id":11349},{"__isSmartRef__":true,"id":11438},{"__isSmartRef__":true,"id":11527},{"__isSmartRef__":true,"id":11616},{"__isSmartRef__":true,"id":11705},{"__isSmartRef__":true,"id":11794},{"__isSmartRef__":true,"id":11883},{"__isSmartRef__":true,"id":11971},{"__isSmartRef__":true,"id":12060},{"__isSmartRef__":true,"id":12149},{"__isSmartRef__":true,"id":12238},{"__isSmartRef__":true,"id":12327},{"__isSmartRef__":true,"id":12416},{"__isSmartRef__":true,"id":12505},{"__isSmartRef__":true,"id":12594},{"__isSmartRef__":true,"id":12683}],"parent":{"__isSmartRef__":true,"id":5699},"expander":{"__isSmartRef__":true,"id":8910},"text":{"__isSmartRef__":true,"id":8930},"owner":{"__isSmartRef__":true,"id":12782},"_Position":{"__isSmartRef__":true,"id":12846},"priorExtent":{"__isSmartRef__":true,"id":12847},"childrenWrapper":{"__isSmartRef__":true,"id":9013},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12848},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8910":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8911},"derivationIds":[null],"id":"682B25AC-665A-426B-898D-33BAFED67A76","renderContextTable":{"__isSmartRef__":true,"id":8916},"eventHandler":{"__isSmartRef__":true,"id":8917},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8918},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8909},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8919},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8911":{"_Position":{"__isSmartRef__":true,"id":8912},"renderContextTable":{"__isSmartRef__":true,"id":8913},"_Extent":{"__isSmartRef__":true,"id":8914},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8915},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":5754},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8912":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8913":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8914":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8915":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8916":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8917":{"morph":{"__isSmartRef__":true,"id":8910},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8918":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8919":{"toggle":{"__isSmartRef__":true,"id":8920},"toggleExpansion":{"__isSmartRef__":true,"id":8927}},"8920":{"varMapping":{"__isSmartRef__":true,"id":8921},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8921":{"this":{"__isSmartRef__":true,"id":8910},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8922}},"8922":{"$super":{"__isSmartRef__":true,"id":8923}},"8923":{"varMapping":{"__isSmartRef__":true,"id":8924},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8924":{"obj":{"__isSmartRef__":true,"id":8910},"name":"toggle"},"8925":{},"8926":{},"8927":{"varMapping":{"__isSmartRef__":true,"id":8928},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8928":{"this":{"__isSmartRef__":true,"id":8910}},"8929":{},"8930":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8931},"derivationIds":[null],"id":"9999D8B0-00D5-45B0-959A-5DBD5903C35B","renderContextTable":{"__isSmartRef__":true,"id":8935},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8936},{"__isSmartRef__":true,"id":8938}],"eventHandler":{"__isSmartRef__":true,"id":8940},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8941},"priorExtent":{"__isSmartRef__":true,"id":8942},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8909},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8943},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8931":{"_Position":{"__isSmartRef__":true,"id":8932},"renderContextTable":{"__isSmartRef__":true,"id":8933},"_Extent":{"__isSmartRef__":true,"id":8934},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":8781},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8932":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8933":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8934":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8935":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8936":{"style":{"__isSmartRef__":true,"id":8937},"chunkOwner":{"__isSmartRef__":true,"id":8930},"storedString":"activeCell","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8937":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8938":{"style":{"__isSmartRef__":true,"id":8939},"chunkOwner":{"__isSmartRef__":true,"id":8930},"storedString":": [2;1]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8939":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8940":{"morph":{"__isSmartRef__":true,"id":8930},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8941":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8942":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8943":{"layoutText":{"__isSmartRef__":true,"id":8944}},"8944":{"varMapping":{"__isSmartRef__":true,"id":8945},"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":8946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8945":{"this":{"__isSmartRef__":true,"id":8930}},"8946":{},"8947":{"_Position":{"__isSmartRef__":true,"id":8948},"renderContextTable":{"__isSmartRef__":true,"id":8949},"_Extent":{"__isSmartRef__":true,"id":8950},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8951},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8948":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8949":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8950":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8951":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8952":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8953":{"morph":{"__isSmartRef__":true,"id":8909},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8954":{"resizeWidth":true},"8955":{"submorphs":[{"__isSmartRef__":true,"id":8956},{"__isSmartRef__":true,"id":8977}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8994},"derivationIds":[null],"id":"6D577CD7-49A1-4410-A60E-B6819692F139","renderContextTable":{"__isSmartRef__":true,"id":8999},"eventHandler":{"__isSmartRef__":true,"id":9000},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9001},"grabbingEnabled":false,"draggingEnabled":false,"data":"visible","propertyList":["0","1","2","3","4","5","6"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_ClipMode","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":8956},"text":{"__isSmartRef__":true,"id":8977},"owner":{"__isSmartRef__":true,"id":9002},"_Position":{"__isSmartRef__":true,"id":12824},"priorExtent":{"__isSmartRef__":true,"id":12825},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12826},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8956":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8957},"derivationIds":[null],"id":"F943715F-F8E2-4E9E-9AB2-DD0EF08229AA","renderContextTable":{"__isSmartRef__":true,"id":8963},"eventHandler":{"__isSmartRef__":true,"id":8964},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8965},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8966},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8957":{"_Position":{"__isSmartRef__":true,"id":8958},"renderContextTable":{"__isSmartRef__":true,"id":8959},"_Extent":{"__isSmartRef__":true,"id":8960},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8961},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":8962},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8958":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8959":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8960":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8961":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8962":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"8963":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8964":{"morph":{"__isSmartRef__":true,"id":8956},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8965":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8966":{"toggle":{"__isSmartRef__":true,"id":8967},"toggleExpansion":{"__isSmartRef__":true,"id":8974}},"8967":{"varMapping":{"__isSmartRef__":true,"id":8968},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8968":{"this":{"__isSmartRef__":true,"id":8956},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8969}},"8969":{"$super":{"__isSmartRef__":true,"id":8970}},"8970":{"varMapping":{"__isSmartRef__":true,"id":8971},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8971":{"obj":{"__isSmartRef__":true,"id":8956},"name":"toggle"},"8972":{},"8973":{},"8974":{"varMapping":{"__isSmartRef__":true,"id":8975},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8975":{"this":{"__isSmartRef__":true,"id":8956}},"8976":{},"8977":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8978},"derivationIds":[null],"id":"F9D6D065-A79C-4467-B842-4A2F8FAF8E0F","renderContextTable":{"__isSmartRef__":true,"id":8982},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8983},{"__isSmartRef__":true,"id":8985}],"eventHandler":{"__isSmartRef__":true,"id":8987},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":8988},"priorExtent":{"__isSmartRef__":true,"id":8989},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8990},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8978":{"_Position":{"__isSmartRef__":true,"id":8979},"renderContextTable":{"__isSmartRef__":true,"id":8980},"_Extent":{"__isSmartRef__":true,"id":8981},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8979":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8980":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8981":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8982":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8983":{"style":{"__isSmartRef__":true,"id":8984},"chunkOwner":{"__isSmartRef__":true,"id":8977},"storedString":"_ClipMode","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8984":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8985":{"style":{"__isSmartRef__":true,"id":8986},"chunkOwner":{"__isSmartRef__":true,"id":8977},"storedString":": visible","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8986":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8987":{"morph":{"__isSmartRef__":true,"id":8977},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8988":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8989":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8990":{"layoutText":{"__isSmartRef__":true,"id":8991}},"8991":{"varMapping":{"__isSmartRef__":true,"id":8992},"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":8993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"8992":{"this":{"__isSmartRef__":true,"id":8977}},"8993":{},"8994":{"_Position":{"__isSmartRef__":true,"id":8995},"renderContextTable":{"__isSmartRef__":true,"id":8996},"_Extent":{"__isSmartRef__":true,"id":8997},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8998},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8995":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8996":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8997":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8998":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"8999":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9000":{"morph":{"__isSmartRef__":true,"id":8955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9001":{"resizeWidth":true},"9002":{"submorphs":[{"__isSmartRef__":true,"id":8955}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9003},"derivationIds":[null],"id":"B41F63C3-4C24-4FB6-90DF-BC805AFB9483","renderContextTable":{"__isSmartRef__":true,"id":9008},"eventHandler":{"__isSmartRef__":true,"id":9009},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9010},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9012},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12815},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12816},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9003":{"_Position":{"__isSmartRef__":true,"id":9004},"renderContextTable":{"__isSmartRef__":true,"id":9005},"_Extent":{"__isSmartRef__":true,"id":9006},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9007},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9004":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9005":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9006":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9007":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9008":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9009":{"morph":{"__isSmartRef__":true,"id":9002},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9010":{"layouter":{"__isSmartRef__":true,"id":9011},"resizeWidth":true},"9011":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9002},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9012":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9013":{"submorphs":[{"__isSmartRef__":true,"id":9002},{"__isSmartRef__":true,"id":9014},{"__isSmartRef__":true,"id":9103},{"__isSmartRef__":true,"id":9192},{"__isSmartRef__":true,"id":9281},{"__isSmartRef__":true,"id":9370},{"__isSmartRef__":true,"id":9459},{"__isSmartRef__":true,"id":9548},{"__isSmartRef__":true,"id":9837},{"__isSmartRef__":true,"id":9926},{"__isSmartRef__":true,"id":10015},{"__isSmartRef__":true,"id":10104},{"__isSmartRef__":true,"id":10193},{"__isSmartRef__":true,"id":10282},{"__isSmartRef__":true,"id":10371},{"__isSmartRef__":true,"id":10460},{"__isSmartRef__":true,"id":10548},{"__isSmartRef__":true,"id":10637},{"__isSmartRef__":true,"id":10726},{"__isSmartRef__":true,"id":10815},{"__isSmartRef__":true,"id":10904},{"__isSmartRef__":true,"id":10993},{"__isSmartRef__":true,"id":11082},{"__isSmartRef__":true,"id":11171},{"__isSmartRef__":true,"id":11259},{"__isSmartRef__":true,"id":11348},{"__isSmartRef__":true,"id":11437},{"__isSmartRef__":true,"id":11526},{"__isSmartRef__":true,"id":11615},{"__isSmartRef__":true,"id":11704},{"__isSmartRef__":true,"id":11793},{"__isSmartRef__":true,"id":11882},{"__isSmartRef__":true,"id":11970},{"__isSmartRef__":true,"id":12059},{"__isSmartRef__":true,"id":12148},{"__isSmartRef__":true,"id":12237},{"__isSmartRef__":true,"id":12326},{"__isSmartRef__":true,"id":12415},{"__isSmartRef__":true,"id":12504},{"__isSmartRef__":true,"id":12593},{"__isSmartRef__":true,"id":12682}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12773},"derivationIds":[null],"id":"DA07A798-CCB5-42CE-9D8B-B3E124EF1A3D","renderContextTable":{"__isSmartRef__":true,"id":12778},"eventHandler":{"__isSmartRef__":true,"id":12779},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12780},"owner":{"__isSmartRef__":true,"id":12782},"_Position":{"__isSmartRef__":true,"id":12802},"priorExtent":{"__isSmartRef__":true,"id":12803},"isInLayoutCycle":false,"_Visible":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12804},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9014":{"submorphs":[{"__isSmartRef__":true,"id":9015}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9084},"derivationIds":[null],"id":"5DAB9009-C4F4-431C-9900-52D0DB494976","renderContextTable":{"__isSmartRef__":true,"id":9089},"eventHandler":{"__isSmartRef__":true,"id":9090},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9091},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9093},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":9094},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9095},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9015":{"submorphs":[{"__isSmartRef__":true,"id":9016},{"__isSmartRef__":true,"id":9037}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9054},"derivationIds":[null],"id":"A0777492-4196-44E2-AC6B-43794D1AFC6B","renderContextTable":{"__isSmartRef__":true,"id":9059},"eventHandler":{"__isSmartRef__":true,"id":9060},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9061},"grabbingEnabled":false,"draggingEnabled":false,"data":"Helvetica","propertyList":["0","1","2","3","4","5","6","7","8"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_FontFamily","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9016},"text":{"__isSmartRef__":true,"id":9037},"owner":{"__isSmartRef__":true,"id":9014},"_Position":{"__isSmartRef__":true,"id":9062},"priorExtent":{"__isSmartRef__":true,"id":9063},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9064},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9016":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9017},"derivationIds":[null],"id":"1ED6C70B-BBFA-41C1-95DE-844D61975A59","renderContextTable":{"__isSmartRef__":true,"id":9023},"eventHandler":{"__isSmartRef__":true,"id":9024},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9025},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9015},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9026},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9017":{"_Position":{"__isSmartRef__":true,"id":9018},"renderContextTable":{"__isSmartRef__":true,"id":9019},"_Extent":{"__isSmartRef__":true,"id":9020},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9021},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9022},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9018":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9019":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9020":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9021":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9022":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9023":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9024":{"morph":{"__isSmartRef__":true,"id":9016},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9025":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9026":{"toggle":{"__isSmartRef__":true,"id":9027},"toggleExpansion":{"__isSmartRef__":true,"id":9034}},"9027":{"varMapping":{"__isSmartRef__":true,"id":9028},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9028":{"this":{"__isSmartRef__":true,"id":9016},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9029}},"9029":{"$super":{"__isSmartRef__":true,"id":9030}},"9030":{"varMapping":{"__isSmartRef__":true,"id":9031},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9031":{"obj":{"__isSmartRef__":true,"id":9016},"name":"toggle"},"9032":{},"9033":{},"9034":{"varMapping":{"__isSmartRef__":true,"id":9035},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9035":{"this":{"__isSmartRef__":true,"id":9016}},"9036":{},"9037":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9038},"derivationIds":[null],"id":"65FDDFF9-A629-4DD0-B00B-FC37153E1A35","renderContextTable":{"__isSmartRef__":true,"id":9042},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9043},{"__isSmartRef__":true,"id":9045}],"eventHandler":{"__isSmartRef__":true,"id":9047},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9048},"priorExtent":{"__isSmartRef__":true,"id":9049},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9015},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9050},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9038":{"_Position":{"__isSmartRef__":true,"id":9039},"renderContextTable":{"__isSmartRef__":true,"id":9040},"_Extent":{"__isSmartRef__":true,"id":9041},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9039":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9040":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9041":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9042":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9043":{"style":{"__isSmartRef__":true,"id":9044},"chunkOwner":{"__isSmartRef__":true,"id":9037},"storedString":"_FontFamily","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9044":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9045":{"style":{"__isSmartRef__":true,"id":9046},"chunkOwner":{"__isSmartRef__":true,"id":9037},"storedString":": Helvetica","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9046":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9047":{"morph":{"__isSmartRef__":true,"id":9037},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9048":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9049":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9050":{"layoutText":{"__isSmartRef__":true,"id":9051}},"9051":{"varMapping":{"__isSmartRef__":true,"id":9052},"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":9053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9052":{"this":{"__isSmartRef__":true,"id":9037}},"9053":{},"9054":{"_Position":{"__isSmartRef__":true,"id":9055},"renderContextTable":{"__isSmartRef__":true,"id":9056},"_Extent":{"__isSmartRef__":true,"id":9057},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9058},"__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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9058":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9059":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9060":{"morph":{"__isSmartRef__":true,"id":9015},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9061":{"resizeWidth":true},"9062":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9063":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9064":{"updateExpanderColor":{"__isSmartRef__":true,"id":9065},"onMouseDown":{"__isSmartRef__":true,"id":9068},"isRoot":{"__isSmartRef__":true,"id":9075},"displayValue":{"__isSmartRef__":true,"id":9078},"update":{"__isSmartRef__":true,"id":9081}},"9065":{"varMapping":{"__isSmartRef__":true,"id":9066},"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":9067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9066":{"this":{"__isSmartRef__":true,"id":9015}},"9067":{},"9068":{"varMapping":{"__isSmartRef__":true,"id":9069},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9069":{"this":{"__isSmartRef__":true,"id":9015},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9070}},"9070":{"$super":{"__isSmartRef__":true,"id":9071}},"9071":{"varMapping":{"__isSmartRef__":true,"id":9072},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9072":{"obj":{"__isSmartRef__":true,"id":9015},"name":"onMouseDown"},"9073":{},"9074":{},"9075":{"varMapping":{"__isSmartRef__":true,"id":9076},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9076":{"this":{"__isSmartRef__":true,"id":9015}},"9077":{},"9078":{"varMapping":{"__isSmartRef__":true,"id":9079},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9079":{"this":{"__isSmartRef__":true,"id":9015}},"9080":{},"9081":{"varMapping":{"__isSmartRef__":true,"id":9082},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9082":{"this":{"__isSmartRef__":true,"id":9015}},"9083":{},"9084":{"_Position":{"__isSmartRef__":true,"id":9085},"renderContextTable":{"__isSmartRef__":true,"id":9086},"_Extent":{"__isSmartRef__":true,"id":9087},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9088},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9085":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9086":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9087":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9088":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9089":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9090":{"morph":{"__isSmartRef__":true,"id":9014},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9091":{"layouter":{"__isSmartRef__":true,"id":9092},"resizeWidth":true},"9092":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9014},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9093":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9094":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9095":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9096}},"9096":{"varMapping":{"__isSmartRef__":true,"id":9097},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9097":{"this":{"__isSmartRef__":true,"id":9014},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9098}},"9098":{"$super":{"__isSmartRef__":true,"id":9099}},"9099":{"varMapping":{"__isSmartRef__":true,"id":9100},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9100":{"obj":{"__isSmartRef__":true,"id":9014},"name":"getLayoutableSubmorphs"},"9101":{},"9102":{},"9103":{"submorphs":[{"__isSmartRef__":true,"id":9104}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9173},"derivationIds":[null],"id":"E14F3BDA-8931-4E94-B9BE-8F56C2D5E683","renderContextTable":{"__isSmartRef__":true,"id":9178},"eventHandler":{"__isSmartRef__":true,"id":9179},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9180},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9182},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":9183},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9184},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9104":{"submorphs":[{"__isSmartRef__":true,"id":9105},{"__isSmartRef__":true,"id":9126}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9143},"derivationIds":[null],"id":"EB4CAAD1-3CC2-4D3E-A5C0-B41357E374B0","renderContextTable":{"__isSmartRef__":true,"id":9148},"eventHandler":{"__isSmartRef__":true,"id":9149},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9150},"grabbingEnabled":false,"draggingEnabled":false,"data":10,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_FontSize","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9105},"text":{"__isSmartRef__":true,"id":9126},"owner":{"__isSmartRef__":true,"id":9103},"_Position":{"__isSmartRef__":true,"id":9151},"priorExtent":{"__isSmartRef__":true,"id":9152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9153},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9105":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9106},"derivationIds":[null],"id":"EE8AA976-404B-4925-ABD6-9C667CC44A45","renderContextTable":{"__isSmartRef__":true,"id":9112},"eventHandler":{"__isSmartRef__":true,"id":9113},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9114},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9115},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9106":{"_Position":{"__isSmartRef__":true,"id":9107},"renderContextTable":{"__isSmartRef__":true,"id":9108},"_Extent":{"__isSmartRef__":true,"id":9109},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9110},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9111},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9107":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9108":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9109":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9110":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9111":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9112":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9113":{"morph":{"__isSmartRef__":true,"id":9105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9114":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9115":{"toggle":{"__isSmartRef__":true,"id":9116},"toggleExpansion":{"__isSmartRef__":true,"id":9123}},"9116":{"varMapping":{"__isSmartRef__":true,"id":9117},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9117":{"this":{"__isSmartRef__":true,"id":9105},"__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":9105},"name":"toggle"},"9121":{},"9122":{},"9123":{"varMapping":{"__isSmartRef__":true,"id":9124},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9124":{"this":{"__isSmartRef__":true,"id":9105}},"9125":{},"9126":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9127},"derivationIds":[null],"id":"1E6E739D-7DDF-4F1A-A868-767023215FCB","renderContextTable":{"__isSmartRef__":true,"id":9131},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9132},{"__isSmartRef__":true,"id":9134}],"eventHandler":{"__isSmartRef__":true,"id":9136},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9137},"priorExtent":{"__isSmartRef__":true,"id":9138},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9139},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9127":{"_Position":{"__isSmartRef__":true,"id":9128},"renderContextTable":{"__isSmartRef__":true,"id":9129},"_Extent":{"__isSmartRef__":true,"id":9130},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9128":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9129":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9130":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9131":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9132":{"style":{"__isSmartRef__":true,"id":9133},"chunkOwner":{"__isSmartRef__":true,"id":9126},"storedString":"_FontSize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9133":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9134":{"style":{"__isSmartRef__":true,"id":9135},"chunkOwner":{"__isSmartRef__":true,"id":9126},"storedString":": 10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9135":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9136":{"morph":{"__isSmartRef__":true,"id":9126},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9137":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9138":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9139":{"layoutText":{"__isSmartRef__":true,"id":9140}},"9140":{"varMapping":{"__isSmartRef__":true,"id":9141},"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":9142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9141":{"this":{"__isSmartRef__":true,"id":9126}},"9142":{},"9143":{"_Position":{"__isSmartRef__":true,"id":9144},"renderContextTable":{"__isSmartRef__":true,"id":9145},"_Extent":{"__isSmartRef__":true,"id":9146},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9147},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9144":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9145":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9146":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9147":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9148":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9149":{"morph":{"__isSmartRef__":true,"id":9104},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9150":{"resizeWidth":true},"9151":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9152":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9153":{"updateExpanderColor":{"__isSmartRef__":true,"id":9154},"onMouseDown":{"__isSmartRef__":true,"id":9157},"isRoot":{"__isSmartRef__":true,"id":9164},"displayValue":{"__isSmartRef__":true,"id":9167},"update":{"__isSmartRef__":true,"id":9170}},"9154":{"varMapping":{"__isSmartRef__":true,"id":9155},"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":9156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9155":{"this":{"__isSmartRef__":true,"id":9104}},"9156":{},"9157":{"varMapping":{"__isSmartRef__":true,"id":9158},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9158":{"this":{"__isSmartRef__":true,"id":9104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9159}},"9159":{"$super":{"__isSmartRef__":true,"id":9160}},"9160":{"varMapping":{"__isSmartRef__":true,"id":9161},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9161":{"obj":{"__isSmartRef__":true,"id":9104},"name":"onMouseDown"},"9162":{},"9163":{},"9164":{"varMapping":{"__isSmartRef__":true,"id":9165},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9165":{"this":{"__isSmartRef__":true,"id":9104}},"9166":{},"9167":{"varMapping":{"__isSmartRef__":true,"id":9168},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9168":{"this":{"__isSmartRef__":true,"id":9104}},"9169":{},"9170":{"varMapping":{"__isSmartRef__":true,"id":9171},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9171":{"this":{"__isSmartRef__":true,"id":9104}},"9172":{},"9173":{"_Position":{"__isSmartRef__":true,"id":9174},"renderContextTable":{"__isSmartRef__":true,"id":9175},"_Extent":{"__isSmartRef__":true,"id":9176},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9177},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9174":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9175":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9176":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9177":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9178":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9179":{"morph":{"__isSmartRef__":true,"id":9103},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9180":{"layouter":{"__isSmartRef__":true,"id":9181},"resizeWidth":true},"9181":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9103},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9182":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9183":{"x":0,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9184":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9185}},"9185":{"varMapping":{"__isSmartRef__":true,"id":9186},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9186":{"this":{"__isSmartRef__":true,"id":9103},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9187}},"9187":{"$super":{"__isSmartRef__":true,"id":9188}},"9188":{"varMapping":{"__isSmartRef__":true,"id":9189},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9189":{"obj":{"__isSmartRef__":true,"id":9103},"name":"getLayoutableSubmorphs"},"9190":{},"9191":{},"9192":{"submorphs":[{"__isSmartRef__":true,"id":9193}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9262},"derivationIds":[null],"id":"CC45499E-292B-45BC-ADAF-AA8C634A9980","renderContextTable":{"__isSmartRef__":true,"id":9267},"eventHandler":{"__isSmartRef__":true,"id":9268},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9269},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9271},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":9272},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9273},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9193":{"submorphs":[{"__isSmartRef__":true,"id":9194},{"__isSmartRef__":true,"id":9215}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9232},"derivationIds":[null],"id":"813AD900-4B32-456B-B964-E460D0B830ED","renderContextTable":{"__isSmartRef__":true,"id":9237},"eventHandler":{"__isSmartRef__":true,"id":9238},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9239},"grabbingEnabled":false,"draggingEnabled":false,"data":null,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_MaxTextHeight","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9194},"text":{"__isSmartRef__":true,"id":9215},"owner":{"__isSmartRef__":true,"id":9192},"_Position":{"__isSmartRef__":true,"id":9240},"priorExtent":{"__isSmartRef__":true,"id":9241},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9242},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9194":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9195},"derivationIds":[null],"id":"3EE34843-8F4F-4EE0-941A-CA74BD0C5149","renderContextTable":{"__isSmartRef__":true,"id":9201},"eventHandler":{"__isSmartRef__":true,"id":9202},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9203},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9193},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9204},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9195":{"_Position":{"__isSmartRef__":true,"id":9196},"renderContextTable":{"__isSmartRef__":true,"id":9197},"_Extent":{"__isSmartRef__":true,"id":9198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9199},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9200},"__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":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9200":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9201":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9202":{"morph":{"__isSmartRef__":true,"id":9194},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9203":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9204":{"toggle":{"__isSmartRef__":true,"id":9205},"toggleExpansion":{"__isSmartRef__":true,"id":9212}},"9205":{"varMapping":{"__isSmartRef__":true,"id":9206},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9206":{"this":{"__isSmartRef__":true,"id":9194},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9207}},"9207":{"$super":{"__isSmartRef__":true,"id":9208}},"9208":{"varMapping":{"__isSmartRef__":true,"id":9209},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9209":{"obj":{"__isSmartRef__":true,"id":9194},"name":"toggle"},"9210":{},"9211":{},"9212":{"varMapping":{"__isSmartRef__":true,"id":9213},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9213":{"this":{"__isSmartRef__":true,"id":9194}},"9214":{},"9215":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9216},"derivationIds":[null],"id":"611C51E1-F3A0-428D-BCF7-4228D669B667","renderContextTable":{"__isSmartRef__":true,"id":9220},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9221},{"__isSmartRef__":true,"id":9223}],"eventHandler":{"__isSmartRef__":true,"id":9225},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9226},"priorExtent":{"__isSmartRef__":true,"id":9227},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9193},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9228},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9216":{"_Position":{"__isSmartRef__":true,"id":9217},"renderContextTable":{"__isSmartRef__":true,"id":9218},"_Extent":{"__isSmartRef__":true,"id":9219},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9217":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9218":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9219":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9220":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9221":{"style":{"__isSmartRef__":true,"id":9222},"chunkOwner":{"__isSmartRef__":true,"id":9215},"storedString":"_MaxTextHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9222":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9223":{"style":{"__isSmartRef__":true,"id":9224},"chunkOwner":{"__isSmartRef__":true,"id":9215},"storedString":": NaN","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9224":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9225":{"morph":{"__isSmartRef__":true,"id":9215},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9226":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9227":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9228":{"layoutText":{"__isSmartRef__":true,"id":9229}},"9229":{"varMapping":{"__isSmartRef__":true,"id":9230},"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":9231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9230":{"this":{"__isSmartRef__":true,"id":9215}},"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","adjustOrigin":"adjustOriginHTML","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":9193},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9239":{"resizeWidth":true},"9240":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9241":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9242":{"updateExpanderColor":{"__isSmartRef__":true,"id":9243},"onMouseDown":{"__isSmartRef__":true,"id":9246},"isRoot":{"__isSmartRef__":true,"id":9253},"displayValue":{"__isSmartRef__":true,"id":9256},"update":{"__isSmartRef__":true,"id":9259}},"9243":{"varMapping":{"__isSmartRef__":true,"id":9244},"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":9245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9244":{"this":{"__isSmartRef__":true,"id":9193}},"9245":{},"9246":{"varMapping":{"__isSmartRef__":true,"id":9247},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9247":{"this":{"__isSmartRef__":true,"id":9193},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9248}},"9248":{"$super":{"__isSmartRef__":true,"id":9249}},"9249":{"varMapping":{"__isSmartRef__":true,"id":9250},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9250":{"obj":{"__isSmartRef__":true,"id":9193},"name":"onMouseDown"},"9251":{},"9252":{},"9253":{"varMapping":{"__isSmartRef__":true,"id":9254},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9254":{"this":{"__isSmartRef__":true,"id":9193}},"9255":{},"9256":{"varMapping":{"__isSmartRef__":true,"id":9257},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9257":{"this":{"__isSmartRef__":true,"id":9193}},"9258":{},"9259":{"varMapping":{"__isSmartRef__":true,"id":9260},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9260":{"this":{"__isSmartRef__":true,"id":9193}},"9261":{},"9262":{"_Position":{"__isSmartRef__":true,"id":9263},"renderContextTable":{"__isSmartRef__":true,"id":9264},"_Extent":{"__isSmartRef__":true,"id":9265},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9266},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9263":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9264":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9265":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9266":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9267":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9268":{"morph":{"__isSmartRef__":true,"id":9192},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9269":{"layouter":{"__isSmartRef__":true,"id":9270},"resizeWidth":true},"9270":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9192},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9271":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9272":{"x":0,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9273":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9274}},"9274":{"varMapping":{"__isSmartRef__":true,"id":9275},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9275":{"this":{"__isSmartRef__":true,"id":9192},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9276}},"9276":{"$super":{"__isSmartRef__":true,"id":9277}},"9277":{"varMapping":{"__isSmartRef__":true,"id":9278},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9278":{"obj":{"__isSmartRef__":true,"id":9192},"name":"getLayoutableSubmorphs"},"9279":{},"9280":{},"9281":{"submorphs":[{"__isSmartRef__":true,"id":9282}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9351},"derivationIds":[null],"id":"D19A8566-E894-4B4A-92F0-AA2DE1AD53D7","renderContextTable":{"__isSmartRef__":true,"id":9356},"eventHandler":{"__isSmartRef__":true,"id":9357},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9358},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9360},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":9361},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9362},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9282":{"submorphs":[{"__isSmartRef__":true,"id":9283},{"__isSmartRef__":true,"id":9304}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9321},"derivationIds":[null],"id":"783152BF-C971-45D7-8522-D29DA0B72444","renderContextTable":{"__isSmartRef__":true,"id":9326},"eventHandler":{"__isSmartRef__":true,"id":9327},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9328},"grabbingEnabled":false,"draggingEnabled":false,"data":68,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_MaxTextWidth","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9283},"text":{"__isSmartRef__":true,"id":9304},"owner":{"__isSmartRef__":true,"id":9281},"_Position":{"__isSmartRef__":true,"id":9329},"priorExtent":{"__isSmartRef__":true,"id":9330},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9331},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9283":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9284},"derivationIds":[null],"id":"69C9C570-78DD-4373-A5C1-BFDE37DD64AD","renderContextTable":{"__isSmartRef__":true,"id":9290},"eventHandler":{"__isSmartRef__":true,"id":9291},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9292},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9282},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9293},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9284":{"_Position":{"__isSmartRef__":true,"id":9285},"renderContextTable":{"__isSmartRef__":true,"id":9286},"_Extent":{"__isSmartRef__":true,"id":9287},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9288},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9289},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9285":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9286":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9287":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9288":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9289":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9290":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9291":{"morph":{"__isSmartRef__":true,"id":9283},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9292":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9293":{"toggle":{"__isSmartRef__":true,"id":9294},"toggleExpansion":{"__isSmartRef__":true,"id":9301}},"9294":{"varMapping":{"__isSmartRef__":true,"id":9295},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9295":{"this":{"__isSmartRef__":true,"id":9283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9296}},"9296":{"$super":{"__isSmartRef__":true,"id":9297}},"9297":{"varMapping":{"__isSmartRef__":true,"id":9298},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9298":{"obj":{"__isSmartRef__":true,"id":9283},"name":"toggle"},"9299":{},"9300":{},"9301":{"varMapping":{"__isSmartRef__":true,"id":9302},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9302":{"this":{"__isSmartRef__":true,"id":9283}},"9303":{},"9304":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9305},"derivationIds":[null],"id":"05E09EDD-F96F-4FCE-9205-F56D9B11BB15","renderContextTable":{"__isSmartRef__":true,"id":9309},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9310},{"__isSmartRef__":true,"id":9312}],"eventHandler":{"__isSmartRef__":true,"id":9314},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9315},"priorExtent":{"__isSmartRef__":true,"id":9316},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9282},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9317},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9305":{"_Position":{"__isSmartRef__":true,"id":9306},"renderContextTable":{"__isSmartRef__":true,"id":9307},"_Extent":{"__isSmartRef__":true,"id":9308},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9306":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9307":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9308":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9309":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9310":{"style":{"__isSmartRef__":true,"id":9311},"chunkOwner":{"__isSmartRef__":true,"id":9304},"storedString":"_MaxTextWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9311":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9312":{"style":{"__isSmartRef__":true,"id":9313},"chunkOwner":{"__isSmartRef__":true,"id":9304},"storedString":": 68","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9313":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9314":{"morph":{"__isSmartRef__":true,"id":9304},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9315":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9316":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9317":{"layoutText":{"__isSmartRef__":true,"id":9318}},"9318":{"varMapping":{"__isSmartRef__":true,"id":9319},"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":9320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9319":{"this":{"__isSmartRef__":true,"id":9304}},"9320":{},"9321":{"_Position":{"__isSmartRef__":true,"id":9322},"renderContextTable":{"__isSmartRef__":true,"id":9323},"_Extent":{"__isSmartRef__":true,"id":9324},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9325},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9322":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9323":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9324":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9325":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9326":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9327":{"morph":{"__isSmartRef__":true,"id":9282},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9328":{"resizeWidth":true},"9329":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9330":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9331":{"updateExpanderColor":{"__isSmartRef__":true,"id":9332},"onMouseDown":{"__isSmartRef__":true,"id":9335},"isRoot":{"__isSmartRef__":true,"id":9342},"displayValue":{"__isSmartRef__":true,"id":9345},"update":{"__isSmartRef__":true,"id":9348}},"9332":{"varMapping":{"__isSmartRef__":true,"id":9333},"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":9334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9333":{"this":{"__isSmartRef__":true,"id":9282}},"9334":{},"9335":{"varMapping":{"__isSmartRef__":true,"id":9336},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9336":{"this":{"__isSmartRef__":true,"id":9282},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9337}},"9337":{"$super":{"__isSmartRef__":true,"id":9338}},"9338":{"varMapping":{"__isSmartRef__":true,"id":9339},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9339":{"obj":{"__isSmartRef__":true,"id":9282},"name":"onMouseDown"},"9340":{},"9341":{},"9342":{"varMapping":{"__isSmartRef__":true,"id":9343},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9343":{"this":{"__isSmartRef__":true,"id":9282}},"9344":{},"9345":{"varMapping":{"__isSmartRef__":true,"id":9346},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9346":{"this":{"__isSmartRef__":true,"id":9282}},"9347":{},"9348":{"varMapping":{"__isSmartRef__":true,"id":9349},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9349":{"this":{"__isSmartRef__":true,"id":9282}},"9350":{},"9351":{"_Position":{"__isSmartRef__":true,"id":9352},"renderContextTable":{"__isSmartRef__":true,"id":9353},"_Extent":{"__isSmartRef__":true,"id":9354},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9355},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9352":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9353":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9354":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9355":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9356":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9357":{"morph":{"__isSmartRef__":true,"id":9281},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9358":{"layouter":{"__isSmartRef__":true,"id":9359},"resizeWidth":true},"9359":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9281},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9360":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9361":{"x":0,"y":80,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9362":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9363}},"9363":{"varMapping":{"__isSmartRef__":true,"id":9364},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9364":{"this":{"__isSmartRef__":true,"id":9281},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9365}},"9365":{"$super":{"__isSmartRef__":true,"id":9366}},"9366":{"varMapping":{"__isSmartRef__":true,"id":9367},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9367":{"obj":{"__isSmartRef__":true,"id":9281},"name":"getLayoutableSubmorphs"},"9368":{},"9369":{},"9370":{"submorphs":[{"__isSmartRef__":true,"id":9371}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9440},"derivationIds":[null],"id":"22D01F0E-3741-40A4-B287-2B8642837555","renderContextTable":{"__isSmartRef__":true,"id":9445},"eventHandler":{"__isSmartRef__":true,"id":9446},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9447},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9449},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":9450},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9451},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9371":{"submorphs":[{"__isSmartRef__":true,"id":9372},{"__isSmartRef__":true,"id":9393}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9410},"derivationIds":[null],"id":"3E2BCD25-3F09-4A05-B9AE-AF4EA8D621EB","renderContextTable":{"__isSmartRef__":true,"id":9415},"eventHandler":{"__isSmartRef__":true,"id":9416},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9417},"grabbingEnabled":false,"draggingEnabled":false,"data":null,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_MinTextHeight","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9372},"text":{"__isSmartRef__":true,"id":9393},"owner":{"__isSmartRef__":true,"id":9370},"_Position":{"__isSmartRef__":true,"id":9418},"priorExtent":{"__isSmartRef__":true,"id":9419},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9420},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9372":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9373},"derivationIds":[null],"id":"51845399-668A-4E12-927A-F1680C342461","renderContextTable":{"__isSmartRef__":true,"id":9379},"eventHandler":{"__isSmartRef__":true,"id":9380},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9381},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9371},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9382},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9373":{"_Position":{"__isSmartRef__":true,"id":9374},"renderContextTable":{"__isSmartRef__":true,"id":9375},"_Extent":{"__isSmartRef__":true,"id":9376},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9377},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9378},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9374":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9375":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9376":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9377":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9378":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9379":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9380":{"morph":{"__isSmartRef__":true,"id":9372},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9381":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9382":{"toggle":{"__isSmartRef__":true,"id":9383},"toggleExpansion":{"__isSmartRef__":true,"id":9390}},"9383":{"varMapping":{"__isSmartRef__":true,"id":9384},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9384":{"this":{"__isSmartRef__":true,"id":9372},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9385}},"9385":{"$super":{"__isSmartRef__":true,"id":9386}},"9386":{"varMapping":{"__isSmartRef__":true,"id":9387},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9387":{"obj":{"__isSmartRef__":true,"id":9372},"name":"toggle"},"9388":{},"9389":{},"9390":{"varMapping":{"__isSmartRef__":true,"id":9391},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && 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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9391":{"this":{"__isSmartRef__":true,"id":9372}},"9392":{},"9393":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9394},"derivationIds":[null],"id":"601DD7FD-C9E3-4ECC-BA7B-E970E9783542","renderContextTable":{"__isSmartRef__":true,"id":9398},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9399},{"__isSmartRef__":true,"id":9401}],"eventHandler":{"__isSmartRef__":true,"id":9403},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9404},"priorExtent":{"__isSmartRef__":true,"id":9405},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9371},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9406},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9394":{"_Position":{"__isSmartRef__":true,"id":9395},"renderContextTable":{"__isSmartRef__":true,"id":9396},"_Extent":{"__isSmartRef__":true,"id":9397},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9395":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9396":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9397":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9398":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9399":{"style":{"__isSmartRef__":true,"id":9400},"chunkOwner":{"__isSmartRef__":true,"id":9393},"storedString":"_MinTextHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9400":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9401":{"style":{"__isSmartRef__":true,"id":9402},"chunkOwner":{"__isSmartRef__":true,"id":9393},"storedString":": NaN","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9402":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9403":{"morph":{"__isSmartRef__":true,"id":9393},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9404":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9405":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9406":{"layoutText":{"__isSmartRef__":true,"id":9407}},"9407":{"varMapping":{"__isSmartRef__":true,"id":9408},"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":9409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9408":{"this":{"__isSmartRef__":true,"id":9393}},"9409":{},"9410":{"_Position":{"__isSmartRef__":true,"id":9411},"renderContextTable":{"__isSmartRef__":true,"id":9412},"_Extent":{"__isSmartRef__":true,"id":9413},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9414},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9411":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9412":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9413":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9414":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9415":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9416":{"morph":{"__isSmartRef__":true,"id":9371},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9417":{"resizeWidth":true},"9418":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9419":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9420":{"updateExpanderColor":{"__isSmartRef__":true,"id":9421},"onMouseDown":{"__isSmartRef__":true,"id":9424},"isRoot":{"__isSmartRef__":true,"id":9431},"displayValue":{"__isSmartRef__":true,"id":9434},"update":{"__isSmartRef__":true,"id":9437}},"9421":{"varMapping":{"__isSmartRef__":true,"id":9422},"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":9423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9422":{"this":{"__isSmartRef__":true,"id":9371}},"9423":{},"9424":{"varMapping":{"__isSmartRef__":true,"id":9425},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9425":{"this":{"__isSmartRef__":true,"id":9371},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9426}},"9426":{"$super":{"__isSmartRef__":true,"id":9427}},"9427":{"varMapping":{"__isSmartRef__":true,"id":9428},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9428":{"obj":{"__isSmartRef__":true,"id":9371},"name":"onMouseDown"},"9429":{},"9430":{},"9431":{"varMapping":{"__isSmartRef__":true,"id":9432},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9432":{"this":{"__isSmartRef__":true,"id":9371}},"9433":{},"9434":{"varMapping":{"__isSmartRef__":true,"id":9435},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9435":{"this":{"__isSmartRef__":true,"id":9371}},"9436":{},"9437":{"varMapping":{"__isSmartRef__":true,"id":9438},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9438":{"this":{"__isSmartRef__":true,"id":9371}},"9439":{},"9440":{"_Position":{"__isSmartRef__":true,"id":9441},"renderContextTable":{"__isSmartRef__":true,"id":9442},"_Extent":{"__isSmartRef__":true,"id":9443},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9444},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9441":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9442":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9443":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9444":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9445":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9446":{"morph":{"__isSmartRef__":true,"id":9370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9447":{"layouter":{"__isSmartRef__":true,"id":9448},"resizeWidth":true},"9448":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9370},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9449":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9450":{"x":0,"y":100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9451":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9452}},"9452":{"varMapping":{"__isSmartRef__":true,"id":9453},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9453":{"this":{"__isSmartRef__":true,"id":9370},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9454}},"9454":{"$super":{"__isSmartRef__":true,"id":9455}},"9455":{"varMapping":{"__isSmartRef__":true,"id":9456},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9456":{"obj":{"__isSmartRef__":true,"id":9370},"name":"getLayoutableSubmorphs"},"9457":{},"9458":{},"9459":{"submorphs":[{"__isSmartRef__":true,"id":9460}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9529},"derivationIds":[null],"id":"49B44C9F-3E57-4E72-9009-6FB9D1238A0A","renderContextTable":{"__isSmartRef__":true,"id":9534},"eventHandler":{"__isSmartRef__":true,"id":9535},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9536},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9538},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":9539},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9540},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9460":{"submorphs":[{"__isSmartRef__":true,"id":9461},{"__isSmartRef__":true,"id":9482}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9499},"derivationIds":[null],"id":"F2DD5EC3-7858-4322-AF9C-49BA87A2B802","renderContextTable":{"__isSmartRef__":true,"id":9504},"eventHandler":{"__isSmartRef__":true,"id":9505},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9506},"grabbingEnabled":false,"draggingEnabled":false,"data":68,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_MinTextWidth","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9461},"text":{"__isSmartRef__":true,"id":9482},"owner":{"__isSmartRef__":true,"id":9459},"_Position":{"__isSmartRef__":true,"id":9507},"priorExtent":{"__isSmartRef__":true,"id":9508},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9509},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9461":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9462},"derivationIds":[null],"id":"C4AC9F2E-3213-4DEF-945C-5E2B2660F65E","renderContextTable":{"__isSmartRef__":true,"id":9468},"eventHandler":{"__isSmartRef__":true,"id":9469},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9470},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9471},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9462":{"_Position":{"__isSmartRef__":true,"id":9463},"renderContextTable":{"__isSmartRef__":true,"id":9464},"_Extent":{"__isSmartRef__":true,"id":9465},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9466},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9467},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9463":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9464":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9465":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9466":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9467":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9468":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9469":{"morph":{"__isSmartRef__":true,"id":9461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9470":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9471":{"toggle":{"__isSmartRef__":true,"id":9472},"toggleExpansion":{"__isSmartRef__":true,"id":9479}},"9472":{"varMapping":{"__isSmartRef__":true,"id":9473},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9473":{"this":{"__isSmartRef__":true,"id":9461},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9474}},"9474":{"$super":{"__isSmartRef__":true,"id":9475}},"9475":{"varMapping":{"__isSmartRef__":true,"id":9476},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9476":{"obj":{"__isSmartRef__":true,"id":9461},"name":"toggle"},"9477":{},"9478":{},"9479":{"varMapping":{"__isSmartRef__":true,"id":9480},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9480":{"this":{"__isSmartRef__":true,"id":9461}},"9481":{},"9482":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9483},"derivationIds":[null],"id":"3E49A4D7-85C8-49FB-993A-4C8308C1EE77","renderContextTable":{"__isSmartRef__":true,"id":9487},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9488},{"__isSmartRef__":true,"id":9490}],"eventHandler":{"__isSmartRef__":true,"id":9492},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9493},"priorExtent":{"__isSmartRef__":true,"id":9494},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9495},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9483":{"_Position":{"__isSmartRef__":true,"id":9484},"renderContextTable":{"__isSmartRef__":true,"id":9485},"_Extent":{"__isSmartRef__":true,"id":9486},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9484":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9485":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9486":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9487":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9488":{"style":{"__isSmartRef__":true,"id":9489},"chunkOwner":{"__isSmartRef__":true,"id":9482},"storedString":"_MinTextWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9489":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9490":{"style":{"__isSmartRef__":true,"id":9491},"chunkOwner":{"__isSmartRef__":true,"id":9482},"storedString":": 68","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9491":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9492":{"morph":{"__isSmartRef__":true,"id":9482},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9493":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9494":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9495":{"layoutText":{"__isSmartRef__":true,"id":9496}},"9496":{"varMapping":{"__isSmartRef__":true,"id":9497},"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":9498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9497":{"this":{"__isSmartRef__":true,"id":9482}},"9498":{},"9499":{"_Position":{"__isSmartRef__":true,"id":9500},"renderContextTable":{"__isSmartRef__":true,"id":9501},"_Extent":{"__isSmartRef__":true,"id":9502},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9503},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9500":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9501":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9502":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9503":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9504":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9505":{"morph":{"__isSmartRef__":true,"id":9460},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9506":{"resizeWidth":true},"9507":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9508":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9509":{"updateExpanderColor":{"__isSmartRef__":true,"id":9510},"onMouseDown":{"__isSmartRef__":true,"id":9513},"isRoot":{"__isSmartRef__":true,"id":9520},"displayValue":{"__isSmartRef__":true,"id":9523},"update":{"__isSmartRef__":true,"id":9526}},"9510":{"varMapping":{"__isSmartRef__":true,"id":9511},"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":9512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9511":{"this":{"__isSmartRef__":true,"id":9460}},"9512":{},"9513":{"varMapping":{"__isSmartRef__":true,"id":9514},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9514":{"this":{"__isSmartRef__":true,"id":9460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9515}},"9515":{"$super":{"__isSmartRef__":true,"id":9516}},"9516":{"varMapping":{"__isSmartRef__":true,"id":9517},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9517":{"obj":{"__isSmartRef__":true,"id":9460},"name":"onMouseDown"},"9518":{},"9519":{},"9520":{"varMapping":{"__isSmartRef__":true,"id":9521},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9521":{"this":{"__isSmartRef__":true,"id":9460}},"9522":{},"9523":{"varMapping":{"__isSmartRef__":true,"id":9524},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9524":{"this":{"__isSmartRef__":true,"id":9460}},"9525":{},"9526":{"varMapping":{"__isSmartRef__":true,"id":9527},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9527":{"this":{"__isSmartRef__":true,"id":9460}},"9528":{},"9529":{"_Position":{"__isSmartRef__":true,"id":9530},"renderContextTable":{"__isSmartRef__":true,"id":9531},"_Extent":{"__isSmartRef__":true,"id":9532},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9533},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9530":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9531":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9532":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9533":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9534":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9535":{"morph":{"__isSmartRef__":true,"id":9459},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9536":{"layouter":{"__isSmartRef__":true,"id":9537},"resizeWidth":true},"9537":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9459},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9538":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9539":{"x":0,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9540":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9541}},"9541":{"varMapping":{"__isSmartRef__":true,"id":9542},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9542":{"this":{"__isSmartRef__":true,"id":9459},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9543}},"9543":{"$super":{"__isSmartRef__":true,"id":9544}},"9544":{"varMapping":{"__isSmartRef__":true,"id":9545},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9545":{"obj":{"__isSmartRef__":true,"id":9459},"name":"getLayoutableSubmorphs"},"9546":{},"9547":{},"9548":{"submorphs":[{"__isSmartRef__":true,"id":9549},{"__isSmartRef__":true,"id":9653}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9818},"derivationIds":[null],"id":"5541C9A7-12B0-4578-AAE3-7050686CE83B","renderContextTable":{"__isSmartRef__":true,"id":9823},"eventHandler":{"__isSmartRef__":true,"id":9824},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9825},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9827},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":9828},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9829},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9549":{"submorphs":[{"__isSmartRef__":true,"id":9550},{"__isSmartRef__":true,"id":9570}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9587},"derivationIds":[null],"id":"54B9E404-3ECF-4375-9077-0AAA51CDAE7E","renderContextTable":{"__isSmartRef__":true,"id":9592},"eventHandler":{"__isSmartRef__":true,"id":9593},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9594},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":319},"propertyList":["x","y"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_Position","children":[{"__isSmartRef__":true,"id":9595},{"__isSmartRef__":true,"id":9655}],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9550},"text":{"__isSmartRef__":true,"id":9570},"owner":{"__isSmartRef__":true,"id":9548},"_Position":{"__isSmartRef__":true,"id":9796},"priorExtent":{"__isSmartRef__":true,"id":9797},"childrenWrapper":{"__isSmartRef__":true,"id":9653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9798},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9550":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9551},"derivationIds":[null],"id":"5F3962CD-84B2-4D86-A674-92CD5CD54D22","renderContextTable":{"__isSmartRef__":true,"id":9556},"eventHandler":{"__isSmartRef__":true,"id":9557},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9558},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":true,"owner":{"__isSmartRef__":true,"id":9549},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9559},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9551":{"_Position":{"__isSmartRef__":true,"id":9552},"renderContextTable":{"__isSmartRef__":true,"id":9553},"_Extent":{"__isSmartRef__":true,"id":9554},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9555},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9552":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9553":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9554":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9555":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9556":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9557":{"morph":{"__isSmartRef__":true,"id":9550},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9558":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9559":{"toggle":{"__isSmartRef__":true,"id":9560},"toggleExpansion":{"__isSmartRef__":true,"id":9567}},"9560":{"varMapping":{"__isSmartRef__":true,"id":9561},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9561":{"this":{"__isSmartRef__":true,"id":9550},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9562}},"9562":{"$super":{"__isSmartRef__":true,"id":9563}},"9563":{"varMapping":{"__isSmartRef__":true,"id":9564},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9564":{"obj":{"__isSmartRef__":true,"id":9550},"name":"toggle"},"9565":{},"9566":{},"9567":{"varMapping":{"__isSmartRef__":true,"id":9568},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9568":{"this":{"__isSmartRef__":true,"id":9550}},"9569":{},"9570":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9571},"derivationIds":[null],"id":"B0F461CD-4549-46D9-9EF9-5D266D1CAA74","renderContextTable":{"__isSmartRef__":true,"id":9575},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9576},{"__isSmartRef__":true,"id":9578}],"eventHandler":{"__isSmartRef__":true,"id":9580},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9581},"priorExtent":{"__isSmartRef__":true,"id":9582},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9549},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9583},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9571":{"_Position":{"__isSmartRef__":true,"id":9572},"renderContextTable":{"__isSmartRef__":true,"id":9573},"_Extent":{"__isSmartRef__":true,"id":9574},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9572":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9573":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9574":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9575":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9576":{"style":{"__isSmartRef__":true,"id":9577},"chunkOwner":{"__isSmartRef__":true,"id":9570},"storedString":"_Position","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9577":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9578":{"style":{"__isSmartRef__":true,"id":9579},"chunkOwner":{"__isSmartRef__":true,"id":9570},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9579":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9580":{"morph":{"__isSmartRef__":true,"id":9570},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9581":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9582":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9583":{"layoutText":{"__isSmartRef__":true,"id":9584}},"9584":{"varMapping":{"__isSmartRef__":true,"id":9585},"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":9586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9585":{"this":{"__isSmartRef__":true,"id":9570}},"9586":{},"9587":{"_Position":{"__isSmartRef__":true,"id":9588},"renderContextTable":{"__isSmartRef__":true,"id":9589},"_Extent":{"__isSmartRef__":true,"id":9590},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9591},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9588":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9589":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9590":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9591":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9592":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9593":{"morph":{"__isSmartRef__":true,"id":9549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9594":{"resizeWidth":true},"9595":{"submorphs":[{"__isSmartRef__":true,"id":9596},{"__isSmartRef__":true,"id":9617}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9634},"derivationIds":[null],"id":"2709D01E-7011-446C-8076-AD582A1AB6A1","renderContextTable":{"__isSmartRef__":true,"id":9639},"eventHandler":{"__isSmartRef__":true,"id":9640},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9641},"grabbingEnabled":false,"draggingEnabled":false,"data":160,"propertyList":[],"level":3,"treeView":{"__isSmartRef__":true,"id":5696},"label":"x","children":[],"parent":{"__isSmartRef__":true,"id":9549},"expander":{"__isSmartRef__":true,"id":9596},"text":{"__isSmartRef__":true,"id":9617},"owner":{"__isSmartRef__":true,"id":9642},"_Position":{"__isSmartRef__":true,"id":9774},"priorExtent":{"__isSmartRef__":true,"id":9775},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9776},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9596":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9597},"derivationIds":[null],"id":"614E1F48-1130-4A91-9276-945D34C00F78","renderContextTable":{"__isSmartRef__":true,"id":9603},"eventHandler":{"__isSmartRef__":true,"id":9604},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9605},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9595},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9606},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9597":{"_Position":{"__isSmartRef__":true,"id":9598},"renderContextTable":{"__isSmartRef__":true,"id":9599},"_Extent":{"__isSmartRef__":true,"id":9600},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9601},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9602},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9598":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9599":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9600":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9601":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9602":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9603":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9604":{"morph":{"__isSmartRef__":true,"id":9596},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9605":{"x":38,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9606":{"toggle":{"__isSmartRef__":true,"id":9607},"toggleExpansion":{"__isSmartRef__":true,"id":9614}},"9607":{"varMapping":{"__isSmartRef__":true,"id":9608},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9608":{"this":{"__isSmartRef__":true,"id":9596},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9609}},"9609":{"$super":{"__isSmartRef__":true,"id":9610}},"9610":{"varMapping":{"__isSmartRef__":true,"id":9611},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9611":{"obj":{"__isSmartRef__":true,"id":9596},"name":"toggle"},"9612":{},"9613":{},"9614":{"varMapping":{"__isSmartRef__":true,"id":9615},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9615":{"this":{"__isSmartRef__":true,"id":9596}},"9616":{},"9617":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9618},"derivationIds":[null],"id":"BD5EF03C-3EE8-42B0-A895-108452D03EDD","renderContextTable":{"__isSmartRef__":true,"id":9622},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9623},{"__isSmartRef__":true,"id":9625}],"eventHandler":{"__isSmartRef__":true,"id":9627},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9628},"priorExtent":{"__isSmartRef__":true,"id":9629},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9595},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9630},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9618":{"_Position":{"__isSmartRef__":true,"id":9619},"renderContextTable":{"__isSmartRef__":true,"id":9620},"_Extent":{"__isSmartRef__":true,"id":9621},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9619":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9620":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9621":{"x":53,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9622":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9623":{"style":{"__isSmartRef__":true,"id":9624},"chunkOwner":{"__isSmartRef__":true,"id":9617},"storedString":"x","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9624":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9625":{"style":{"__isSmartRef__":true,"id":9626},"chunkOwner":{"__isSmartRef__":true,"id":9617},"storedString":": 160","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9626":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9627":{"morph":{"__isSmartRef__":true,"id":9617},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9628":{"x":48,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9629":{"x":45,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9630":{"layoutText":{"__isSmartRef__":true,"id":9631}},"9631":{"varMapping":{"__isSmartRef__":true,"id":9632},"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":9633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9632":{"this":{"__isSmartRef__":true,"id":9617}},"9633":{},"9634":{"_Position":{"__isSmartRef__":true,"id":9635},"renderContextTable":{"__isSmartRef__":true,"id":9636},"_Extent":{"__isSmartRef__":true,"id":9637},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9638},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9635":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9636":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9637":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9638":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9639":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9640":{"morph":{"__isSmartRef__":true,"id":9595},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9641":{"resizeWidth":true},"9642":{"submorphs":[{"__isSmartRef__":true,"id":9595}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9643},"derivationIds":[null],"id":"246429E6-2306-4C05-9302-FDC888EECD08","renderContextTable":{"__isSmartRef__":true,"id":9648},"eventHandler":{"__isSmartRef__":true,"id":9649},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9650},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9652},"owner":{"__isSmartRef__":true,"id":9653},"_Position":{"__isSmartRef__":true,"id":9765},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9766},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9643":{"_Position":{"__isSmartRef__":true,"id":9644},"renderContextTable":{"__isSmartRef__":true,"id":9645},"_Extent":{"__isSmartRef__":true,"id":9646},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9647},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9644":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9645":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9646":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9647":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9648":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9649":{"morph":{"__isSmartRef__":true,"id":9642},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9650":{"layouter":{"__isSmartRef__":true,"id":9651},"resizeWidth":true},"9651":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9642},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9652":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9653":{"submorphs":[{"__isSmartRef__":true,"id":9642},{"__isSmartRef__":true,"id":9654}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9743},"derivationIds":[null],"id":"9F1A1BE0-9ED0-46F0-A788-A7E9D447415C","renderContextTable":{"__isSmartRef__":true,"id":9748},"eventHandler":{"__isSmartRef__":true,"id":9749},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9750},"owner":{"__isSmartRef__":true,"id":9548},"_Position":{"__isSmartRef__":true,"id":9752},"priorExtent":{"__isSmartRef__":true,"id":9753},"isInLayoutCycle":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9754},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9654":{"submorphs":[{"__isSmartRef__":true,"id":9655}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9724},"derivationIds":[null],"id":"6744E64E-28DA-4126-A2FA-529767FE25E3","renderContextTable":{"__isSmartRef__":true,"id":9729},"eventHandler":{"__isSmartRef__":true,"id":9730},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9731},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9733},"owner":{"__isSmartRef__":true,"id":9653},"_Position":{"__isSmartRef__":true,"id":9734},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9735},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9655":{"submorphs":[{"__isSmartRef__":true,"id":9656},{"__isSmartRef__":true,"id":9677}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9694},"derivationIds":[null],"id":"299F8838-1823-4CE6-8C2E-8F1D96F8187D","renderContextTable":{"__isSmartRef__":true,"id":9699},"eventHandler":{"__isSmartRef__":true,"id":9700},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9701},"grabbingEnabled":false,"draggingEnabled":false,"data":60,"propertyList":[],"level":3,"treeView":{"__isSmartRef__":true,"id":5696},"label":"y","children":[],"parent":{"__isSmartRef__":true,"id":9549},"expander":{"__isSmartRef__":true,"id":9656},"text":{"__isSmartRef__":true,"id":9677},"owner":{"__isSmartRef__":true,"id":9654},"_Position":{"__isSmartRef__":true,"id":9702},"priorExtent":{"__isSmartRef__":true,"id":9703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9704},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9656":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9657},"derivationIds":[null],"id":"CDA04D6A-936D-47DB-A84F-89A0DE5B5AC9","renderContextTable":{"__isSmartRef__":true,"id":9663},"eventHandler":{"__isSmartRef__":true,"id":9664},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9665},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9655},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9666},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9657":{"_Position":{"__isSmartRef__":true,"id":9658},"renderContextTable":{"__isSmartRef__":true,"id":9659},"_Extent":{"__isSmartRef__":true,"id":9660},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9661},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9662},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9658":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9659":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9660":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9661":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9662":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9663":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9664":{"morph":{"__isSmartRef__":true,"id":9656},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9665":{"x":38,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9666":{"toggle":{"__isSmartRef__":true,"id":9667},"toggleExpansion":{"__isSmartRef__":true,"id":9674}},"9667":{"varMapping":{"__isSmartRef__":true,"id":9668},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9668":{"this":{"__isSmartRef__":true,"id":9656},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9669}},"9669":{"$super":{"__isSmartRef__":true,"id":9670}},"9670":{"varMapping":{"__isSmartRef__":true,"id":9671},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9671":{"obj":{"__isSmartRef__":true,"id":9656},"name":"toggle"},"9672":{},"9673":{},"9674":{"varMapping":{"__isSmartRef__":true,"id":9675},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9675":{"this":{"__isSmartRef__":true,"id":9656}},"9676":{},"9677":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9678},"derivationIds":[null],"id":"AB89B9E3-DED5-48EA-B597-DD6BCAB0D8C0","renderContextTable":{"__isSmartRef__":true,"id":9682},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9683},{"__isSmartRef__":true,"id":9685}],"eventHandler":{"__isSmartRef__":true,"id":9687},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9688},"priorExtent":{"__isSmartRef__":true,"id":9689},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9655},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9690},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9678":{"_Position":{"__isSmartRef__":true,"id":9679},"renderContextTable":{"__isSmartRef__":true,"id":9680},"_Extent":{"__isSmartRef__":true,"id":9681},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9679":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9680":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9681":{"x":45.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9682":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9683":{"style":{"__isSmartRef__":true,"id":9684},"chunkOwner":{"__isSmartRef__":true,"id":9677},"storedString":"y","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9684":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9685":{"style":{"__isSmartRef__":true,"id":9686},"chunkOwner":{"__isSmartRef__":true,"id":9677},"storedString":": 60","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9686":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9687":{"morph":{"__isSmartRef__":true,"id":9677},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9688":{"x":48,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9689":{"x":37.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9690":{"layoutText":{"__isSmartRef__":true,"id":9691}},"9691":{"varMapping":{"__isSmartRef__":true,"id":9692},"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":9693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9692":{"this":{"__isSmartRef__":true,"id":9677}},"9693":{},"9694":{"_Position":{"__isSmartRef__":true,"id":9695},"renderContextTable":{"__isSmartRef__":true,"id":9696},"_Extent":{"__isSmartRef__":true,"id":9697},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9698},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9695":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9696":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9697":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9698":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9699":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9700":{"morph":{"__isSmartRef__":true,"id":9655},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9701":{"resizeWidth":true},"9702":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9703":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9704":{"updateExpanderColor":{"__isSmartRef__":true,"id":9705},"onMouseDown":{"__isSmartRef__":true,"id":9708},"isRoot":{"__isSmartRef__":true,"id":9715},"displayValue":{"__isSmartRef__":true,"id":9718},"update":{"__isSmartRef__":true,"id":9721}},"9705":{"varMapping":{"__isSmartRef__":true,"id":9706},"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":9707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9706":{"this":{"__isSmartRef__":true,"id":9655}},"9707":{},"9708":{"varMapping":{"__isSmartRef__":true,"id":9709},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9709":{"this":{"__isSmartRef__":true,"id":9655},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9710}},"9710":{"$super":{"__isSmartRef__":true,"id":9711}},"9711":{"varMapping":{"__isSmartRef__":true,"id":9712},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9712":{"obj":{"__isSmartRef__":true,"id":9655},"name":"onMouseDown"},"9713":{},"9714":{},"9715":{"varMapping":{"__isSmartRef__":true,"id":9716},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9716":{"this":{"__isSmartRef__":true,"id":9655}},"9717":{},"9718":{"varMapping":{"__isSmartRef__":true,"id":9719},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9719":{"this":{"__isSmartRef__":true,"id":9655}},"9720":{},"9721":{"varMapping":{"__isSmartRef__":true,"id":9722},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9722":{"this":{"__isSmartRef__":true,"id":9655}},"9723":{},"9724":{"_Position":{"__isSmartRef__":true,"id":9725},"renderContextTable":{"__isSmartRef__":true,"id":9726},"_Extent":{"__isSmartRef__":true,"id":9727},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9728},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9725":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9726":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9727":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9728":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9729":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9730":{"morph":{"__isSmartRef__":true,"id":9654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9731":{"layouter":{"__isSmartRef__":true,"id":9732},"resizeWidth":true},"9732":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9654},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9733":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9734":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9735":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9736}},"9736":{"varMapping":{"__isSmartRef__":true,"id":9737},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9737":{"this":{"__isSmartRef__":true,"id":9654},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9738}},"9738":{"$super":{"__isSmartRef__":true,"id":9739}},"9739":{"varMapping":{"__isSmartRef__":true,"id":9740},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9740":{"obj":{"__isSmartRef__":true,"id":9654},"name":"getLayoutableSubmorphs"},"9741":{},"9742":{},"9743":{"_Position":{"__isSmartRef__":true,"id":9744},"renderContextTable":{"__isSmartRef__":true,"id":9745},"_Extent":{"__isSmartRef__":true,"id":9746},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9747},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9744":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9745":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9746":{"x":100,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9747":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9748":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9749":{"morph":{"__isSmartRef__":true,"id":9653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9750":{"layouter":{"__isSmartRef__":true,"id":9751},"resizeWidth":true},"9751":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9653},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9752":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9753":{"x":100,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9754":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9755},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":9762}},"9755":{"varMapping":{"__isSmartRef__":true,"id":9756},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9756":{"this":{"__isSmartRef__":true,"id":9653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9757}},"9757":{"$super":{"__isSmartRef__":true,"id":9758}},"9758":{"varMapping":{"__isSmartRef__":true,"id":9759},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9759":{"obj":{"__isSmartRef__":true,"id":9653},"name":"getLayoutableSubmorphs"},"9760":{},"9761":{},"9762":{"varMapping":{"__isSmartRef__":true,"id":9763},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9763":{"this":{"__isSmartRef__":true,"id":9653}},"9764":{},"9765":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9766":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9767}},"9767":{"varMapping":{"__isSmartRef__":true,"id":9768},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9768":{"this":{"__isSmartRef__":true,"id":9642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9769}},"9769":{"$super":{"__isSmartRef__":true,"id":9770}},"9770":{"varMapping":{"__isSmartRef__":true,"id":9771},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9771":{"obj":{"__isSmartRef__":true,"id":9642},"name":"getLayoutableSubmorphs"},"9772":{},"9773":{},"9774":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9775":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9776":{"updateExpanderColor":{"__isSmartRef__":true,"id":9777},"onMouseDown":{"__isSmartRef__":true,"id":9780},"isRoot":{"__isSmartRef__":true,"id":9787},"displayValue":{"__isSmartRef__":true,"id":9790},"update":{"__isSmartRef__":true,"id":9793}},"9777":{"varMapping":{"__isSmartRef__":true,"id":9778},"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":9779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9778":{"this":{"__isSmartRef__":true,"id":9595}},"9779":{},"9780":{"varMapping":{"__isSmartRef__":true,"id":9781},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9781":{"this":{"__isSmartRef__":true,"id":9595},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9782}},"9782":{"$super":{"__isSmartRef__":true,"id":9783}},"9783":{"varMapping":{"__isSmartRef__":true,"id":9784},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9784":{"obj":{"__isSmartRef__":true,"id":9595},"name":"onMouseDown"},"9785":{},"9786":{},"9787":{"varMapping":{"__isSmartRef__":true,"id":9788},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9788":{"this":{"__isSmartRef__":true,"id":9595}},"9789":{},"9790":{"varMapping":{"__isSmartRef__":true,"id":9791},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9791":{"this":{"__isSmartRef__":true,"id":9595}},"9792":{},"9793":{"varMapping":{"__isSmartRef__":true,"id":9794},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9794":{"this":{"__isSmartRef__":true,"id":9595}},"9795":{},"9796":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9797":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9798":{"updateExpanderColor":{"__isSmartRef__":true,"id":9799},"onMouseDown":{"__isSmartRef__":true,"id":9802},"isRoot":{"__isSmartRef__":true,"id":9809},"displayValue":{"__isSmartRef__":true,"id":9812},"update":{"__isSmartRef__":true,"id":9815}},"9799":{"varMapping":{"__isSmartRef__":true,"id":9800},"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":9801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9800":{"this":{"__isSmartRef__":true,"id":9549}},"9801":{},"9802":{"varMapping":{"__isSmartRef__":true,"id":9803},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9803":{"this":{"__isSmartRef__":true,"id":9549},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9804}},"9804":{"$super":{"__isSmartRef__":true,"id":9805}},"9805":{"varMapping":{"__isSmartRef__":true,"id":9806},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9806":{"obj":{"__isSmartRef__":true,"id":9549},"name":"onMouseDown"},"9807":{},"9808":{},"9809":{"varMapping":{"__isSmartRef__":true,"id":9810},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9810":{"this":{"__isSmartRef__":true,"id":9549}},"9811":{},"9812":{"varMapping":{"__isSmartRef__":true,"id":9813},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9813":{"this":{"__isSmartRef__":true,"id":9549}},"9814":{},"9815":{"varMapping":{"__isSmartRef__":true,"id":9816},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9816":{"this":{"__isSmartRef__":true,"id":9549}},"9817":{},"9818":{"_Position":{"__isSmartRef__":true,"id":9819},"renderContextTable":{"__isSmartRef__":true,"id":9820},"_Extent":{"__isSmartRef__":true,"id":9821},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9822},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9819":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9820":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9821":{"x":100,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9822":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9823":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9824":{"morph":{"__isSmartRef__":true,"id":9548},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9825":{"layouter":{"__isSmartRef__":true,"id":9826},"resizeWidth":true},"9826":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9548},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9827":{"x":100,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9828":{"x":0,"y":140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9829":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9830}},"9830":{"varMapping":{"__isSmartRef__":true,"id":9831},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9831":{"this":{"__isSmartRef__":true,"id":9548},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9832}},"9832":{"$super":{"__isSmartRef__":true,"id":9833}},"9833":{"varMapping":{"__isSmartRef__":true,"id":9834},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9834":{"obj":{"__isSmartRef__":true,"id":9548},"name":"getLayoutableSubmorphs"},"9835":{},"9836":{},"9837":{"submorphs":[{"__isSmartRef__":true,"id":9838}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9907},"derivationIds":[null],"id":"2C2662EB-3046-4695-816B-B8B30A85B2D1","renderContextTable":{"__isSmartRef__":true,"id":9912},"eventHandler":{"__isSmartRef__":true,"id":9913},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9914},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":9916},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":9917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9918},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9838":{"submorphs":[{"__isSmartRef__":true,"id":9839},{"__isSmartRef__":true,"id":9860}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9877},"derivationIds":[null],"id":"A595BD86-9CE7-4585-9D93-1D7FC9523996","renderContextTable":{"__isSmartRef__":true,"id":9882},"eventHandler":{"__isSmartRef__":true,"id":9883},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9884},"grabbingEnabled":false,"draggingEnabled":false,"data":"pre-wrap","propertyList":["0","1","2","3","4","5","6","7"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_WhiteSpaceHandling","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9839},"text":{"__isSmartRef__":true,"id":9860},"owner":{"__isSmartRef__":true,"id":9837},"_Position":{"__isSmartRef__":true,"id":9885},"priorExtent":{"__isSmartRef__":true,"id":9886},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9887},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9839":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9840},"derivationIds":[null],"id":"5301E86B-D4DF-4941-83A4-565DCD1F5A79","renderContextTable":{"__isSmartRef__":true,"id":9846},"eventHandler":{"__isSmartRef__":true,"id":9847},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9848},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9849},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9840":{"_Position":{"__isSmartRef__":true,"id":9841},"renderContextTable":{"__isSmartRef__":true,"id":9842},"_Extent":{"__isSmartRef__":true,"id":9843},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9844},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9845},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9841":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9842":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9843":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9844":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9845":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9846":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9847":{"morph":{"__isSmartRef__":true,"id":9839},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9848":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9849":{"toggle":{"__isSmartRef__":true,"id":9850},"toggleExpansion":{"__isSmartRef__":true,"id":9857}},"9850":{"varMapping":{"__isSmartRef__":true,"id":9851},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9851":{"this":{"__isSmartRef__":true,"id":9839},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9852}},"9852":{"$super":{"__isSmartRef__":true,"id":9853}},"9853":{"varMapping":{"__isSmartRef__":true,"id":9854},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9854":{"obj":{"__isSmartRef__":true,"id":9839},"name":"toggle"},"9855":{},"9856":{},"9857":{"varMapping":{"__isSmartRef__":true,"id":9858},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9858":{"this":{"__isSmartRef__":true,"id":9839}},"9859":{},"9860":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9861},"derivationIds":[null],"id":"B293A4FC-44AF-45E2-BD56-F47C95D27D0D","renderContextTable":{"__isSmartRef__":true,"id":9865},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9866},{"__isSmartRef__":true,"id":9868}],"eventHandler":{"__isSmartRef__":true,"id":9870},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9871},"priorExtent":{"__isSmartRef__":true,"id":9872},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9873},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9861":{"_Position":{"__isSmartRef__":true,"id":9862},"renderContextTable":{"__isSmartRef__":true,"id":9863},"_Extent":{"__isSmartRef__":true,"id":9864},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9862":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9863":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9864":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9865":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9866":{"style":{"__isSmartRef__":true,"id":9867},"chunkOwner":{"__isSmartRef__":true,"id":9860},"storedString":"_WhiteSpaceHandling","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9867":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9868":{"style":{"__isSmartRef__":true,"id":9869},"chunkOwner":{"__isSmartRef__":true,"id":9860},"storedString":": pre-wrap","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9869":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9870":{"morph":{"__isSmartRef__":true,"id":9860},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9871":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9872":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9873":{"layoutText":{"__isSmartRef__":true,"id":9874}},"9874":{"varMapping":{"__isSmartRef__":true,"id":9875},"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":9876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9875":{"this":{"__isSmartRef__":true,"id":9860}},"9876":{},"9877":{"_Position":{"__isSmartRef__":true,"id":9878},"renderContextTable":{"__isSmartRef__":true,"id":9879},"_Extent":{"__isSmartRef__":true,"id":9880},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9881},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9878":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9879":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9880":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9881":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9882":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9883":{"morph":{"__isSmartRef__":true,"id":9838},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9884":{"resizeWidth":true},"9885":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9886":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9887":{"updateExpanderColor":{"__isSmartRef__":true,"id":9888},"onMouseDown":{"__isSmartRef__":true,"id":9891},"isRoot":{"__isSmartRef__":true,"id":9898},"displayValue":{"__isSmartRef__":true,"id":9901},"update":{"__isSmartRef__":true,"id":9904}},"9888":{"varMapping":{"__isSmartRef__":true,"id":9889},"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":9890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9889":{"this":{"__isSmartRef__":true,"id":9838}},"9890":{},"9891":{"varMapping":{"__isSmartRef__":true,"id":9892},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9892":{"this":{"__isSmartRef__":true,"id":9838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9893}},"9893":{"$super":{"__isSmartRef__":true,"id":9894}},"9894":{"varMapping":{"__isSmartRef__":true,"id":9895},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9895":{"obj":{"__isSmartRef__":true,"id":9838},"name":"onMouseDown"},"9896":{},"9897":{},"9898":{"varMapping":{"__isSmartRef__":true,"id":9899},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9899":{"this":{"__isSmartRef__":true,"id":9838}},"9900":{},"9901":{"varMapping":{"__isSmartRef__":true,"id":9902},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9902":{"this":{"__isSmartRef__":true,"id":9838}},"9903":{},"9904":{"varMapping":{"__isSmartRef__":true,"id":9905},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9905":{"this":{"__isSmartRef__":true,"id":9838}},"9906":{},"9907":{"_Position":{"__isSmartRef__":true,"id":9908},"renderContextTable":{"__isSmartRef__":true,"id":9909},"_Extent":{"__isSmartRef__":true,"id":9910},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9911},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9908":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9909":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9910":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9911":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9912":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9913":{"morph":{"__isSmartRef__":true,"id":9837},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9914":{"layouter":{"__isSmartRef__":true,"id":9915},"resizeWidth":true},"9915":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9837},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"9916":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9917":{"x":0,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9918":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":9919}},"9919":{"varMapping":{"__isSmartRef__":true,"id":9920},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":9925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9920":{"this":{"__isSmartRef__":true,"id":9837},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9921}},"9921":{"$super":{"__isSmartRef__":true,"id":9922}},"9922":{"varMapping":{"__isSmartRef__":true,"id":9923},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9923":{"obj":{"__isSmartRef__":true,"id":9837},"name":"getLayoutableSubmorphs"},"9924":{},"9925":{},"9926":{"submorphs":[{"__isSmartRef__":true,"id":9927}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9996},"derivationIds":[null],"id":"85F183D2-034B-4B84-97DE-C06109CF6BD9","renderContextTable":{"__isSmartRef__":true,"id":10001},"eventHandler":{"__isSmartRef__":true,"id":10002},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10003},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10005},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10006},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10007},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9927":{"submorphs":[{"__isSmartRef__":true,"id":9928},{"__isSmartRef__":true,"id":9949}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9966},"derivationIds":[null],"id":"45B585C7-5764-4E4E-8446-EB08101E403F","renderContextTable":{"__isSmartRef__":true,"id":9971},"eventHandler":{"__isSmartRef__":true,"id":9972},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":9973},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":2367},"propertyList":["textNode","morphNode","shapeNode"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"_renderContext","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":9928},"text":{"__isSmartRef__":true,"id":9949},"owner":{"__isSmartRef__":true,"id":9926},"_Position":{"__isSmartRef__":true,"id":9974},"priorExtent":{"__isSmartRef__":true,"id":9975},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9976},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"9928":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9929},"derivationIds":[null],"id":"ADCADA15-A969-4B2C-B5D1-ECEE502B722F","renderContextTable":{"__isSmartRef__":true,"id":9935},"eventHandler":{"__isSmartRef__":true,"id":9936},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":9937},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":9927},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9938},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"9929":{"_Position":{"__isSmartRef__":true,"id":9930},"renderContextTable":{"__isSmartRef__":true,"id":9931},"_Extent":{"__isSmartRef__":true,"id":9932},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9933},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":9934},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9930":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9931":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9932":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9933":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9934":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"9935":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9936":{"morph":{"__isSmartRef__":true,"id":9928},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9937":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9938":{"toggle":{"__isSmartRef__":true,"id":9939},"toggleExpansion":{"__isSmartRef__":true,"id":9946}},"9939":{"varMapping":{"__isSmartRef__":true,"id":9940},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":9945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9940":{"this":{"__isSmartRef__":true,"id":9928},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9941}},"9941":{"$super":{"__isSmartRef__":true,"id":9942}},"9942":{"varMapping":{"__isSmartRef__":true,"id":9943},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9943":{"obj":{"__isSmartRef__":true,"id":9928},"name":"toggle"},"9944":{},"9945":{},"9946":{"varMapping":{"__isSmartRef__":true,"id":9947},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":9948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9947":{"this":{"__isSmartRef__":true,"id":9928}},"9948":{},"9949":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9950},"derivationIds":[null],"id":"FB459AE7-0C9E-48DC-8947-465E8FD80D5E","renderContextTable":{"__isSmartRef__":true,"id":9954},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":9955},{"__isSmartRef__":true,"id":9957}],"eventHandler":{"__isSmartRef__":true,"id":9959},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":9960},"priorExtent":{"__isSmartRef__":true,"id":9961},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":9927},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9962},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9950":{"_Position":{"__isSmartRef__":true,"id":9951},"renderContextTable":{"__isSmartRef__":true,"id":9952},"_Extent":{"__isSmartRef__":true,"id":9953},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9951":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9952":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9953":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9954":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"9955":{"style":{"__isSmartRef__":true,"id":9956},"chunkOwner":{"__isSmartRef__":true,"id":9949},"storedString":"_renderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9956":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9957":{"style":{"__isSmartRef__":true,"id":9958},"chunkOwner":{"__isSmartRef__":true,"id":9949},"storedString":": RenderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9958":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9959":{"morph":{"__isSmartRef__":true,"id":9949},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9960":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9961":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9962":{"layoutText":{"__isSmartRef__":true,"id":9963}},"9963":{"varMapping":{"__isSmartRef__":true,"id":9964},"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":9965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9964":{"this":{"__isSmartRef__":true,"id":9949}},"9965":{},"9966":{"_Position":{"__isSmartRef__":true,"id":9967},"renderContextTable":{"__isSmartRef__":true,"id":9968},"_Extent":{"__isSmartRef__":true,"id":9969},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":9970},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9967":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9968":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9969":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9970":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"9971":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9972":{"morph":{"__isSmartRef__":true,"id":9927},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9973":{"resizeWidth":true},"9974":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9975":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9976":{"updateExpanderColor":{"__isSmartRef__":true,"id":9977},"onMouseDown":{"__isSmartRef__":true,"id":9980},"isRoot":{"__isSmartRef__":true,"id":9987},"displayValue":{"__isSmartRef__":true,"id":9990},"update":{"__isSmartRef__":true,"id":9993}},"9977":{"varMapping":{"__isSmartRef__":true,"id":9978},"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":9979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9978":{"this":{"__isSmartRef__":true,"id":9927}},"9979":{},"9980":{"varMapping":{"__isSmartRef__":true,"id":9981},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":9986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9981":{"this":{"__isSmartRef__":true,"id":9927},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9982}},"9982":{"$super":{"__isSmartRef__":true,"id":9983}},"9983":{"varMapping":{"__isSmartRef__":true,"id":9984},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9984":{"obj":{"__isSmartRef__":true,"id":9927},"name":"onMouseDown"},"9985":{},"9986":{},"9987":{"varMapping":{"__isSmartRef__":true,"id":9988},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":9989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9988":{"this":{"__isSmartRef__":true,"id":9927}},"9989":{},"9990":{"varMapping":{"__isSmartRef__":true,"id":9991},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":9992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9991":{"this":{"__isSmartRef__":true,"id":9927}},"9992":{},"9993":{"varMapping":{"__isSmartRef__":true,"id":9994},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"9994":{"this":{"__isSmartRef__":true,"id":9927}},"9995":{},"9996":{"_Position":{"__isSmartRef__":true,"id":9997},"renderContextTable":{"__isSmartRef__":true,"id":9998},"_Extent":{"__isSmartRef__":true,"id":9999},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10000},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"9997":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"9998":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"9999":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10000":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10001":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10002":{"morph":{"__isSmartRef__":true,"id":9926},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10003":{"layouter":{"__isSmartRef__":true,"id":10004},"resizeWidth":true},"10004":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9926},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10005":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10006":{"x":0,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10007":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10008}},"10008":{"varMapping":{"__isSmartRef__":true,"id":10009},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10009":{"this":{"__isSmartRef__":true,"id":9926},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10010}},"10010":{"$super":{"__isSmartRef__":true,"id":10011}},"10011":{"varMapping":{"__isSmartRef__":true,"id":10012},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10012":{"obj":{"__isSmartRef__":true,"id":9926},"name":"getLayoutableSubmorphs"},"10013":{},"10014":{},"10015":{"submorphs":[{"__isSmartRef__":true,"id":10016}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10085},"derivationIds":[null],"id":"566ED039-C81B-464F-8821-B140799994E9","renderContextTable":{"__isSmartRef__":true,"id":10090},"eventHandler":{"__isSmartRef__":true,"id":10091},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10092},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10094},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10095},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10096},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10016":{"submorphs":[{"__isSmartRef__":true,"id":10017},{"__isSmartRef__":true,"id":10038}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10055},"derivationIds":[null],"id":"A1BD9B63-92AE-4CA2-96BC-A82B7808A1A0","renderContextTable":{"__isSmartRef__":true,"id":10060},"eventHandler":{"__isSmartRef__":true,"id":10061},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10062},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"allowInput","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10017},"text":{"__isSmartRef__":true,"id":10038},"owner":{"__isSmartRef__":true,"id":10015},"_Position":{"__isSmartRef__":true,"id":10063},"priorExtent":{"__isSmartRef__":true,"id":10064},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10065},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10017":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10018},"derivationIds":[null],"id":"E699C55C-7FEC-445C-AE4A-897A9E28F713","renderContextTable":{"__isSmartRef__":true,"id":10024},"eventHandler":{"__isSmartRef__":true,"id":10025},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10026},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10016},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10027},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10018":{"_Position":{"__isSmartRef__":true,"id":10019},"renderContextTable":{"__isSmartRef__":true,"id":10020},"_Extent":{"__isSmartRef__":true,"id":10021},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10022},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10023},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10019":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10020":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10021":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10022":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10023":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10024":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10025":{"morph":{"__isSmartRef__":true,"id":10017},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10026":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10027":{"toggle":{"__isSmartRef__":true,"id":10028},"toggleExpansion":{"__isSmartRef__":true,"id":10035}},"10028":{"varMapping":{"__isSmartRef__":true,"id":10029},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10029":{"this":{"__isSmartRef__":true,"id":10017},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10030}},"10030":{"$super":{"__isSmartRef__":true,"id":10031}},"10031":{"varMapping":{"__isSmartRef__":true,"id":10032},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10032":{"obj":{"__isSmartRef__":true,"id":10017},"name":"toggle"},"10033":{},"10034":{},"10035":{"varMapping":{"__isSmartRef__":true,"id":10036},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10036":{"this":{"__isSmartRef__":true,"id":10017}},"10037":{},"10038":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10039},"derivationIds":[null],"id":"4D2666FD-ECEC-426C-AD89-BA7246DED8C7","renderContextTable":{"__isSmartRef__":true,"id":10043},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10044},{"__isSmartRef__":true,"id":10046}],"eventHandler":{"__isSmartRef__":true,"id":10048},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10049},"priorExtent":{"__isSmartRef__":true,"id":10050},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10016},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10051},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10039":{"_Position":{"__isSmartRef__":true,"id":10040},"renderContextTable":{"__isSmartRef__":true,"id":10041},"_Extent":{"__isSmartRef__":true,"id":10042},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10040":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10041":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10042":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10043":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10044":{"style":{"__isSmartRef__":true,"id":10045},"chunkOwner":{"__isSmartRef__":true,"id":10038},"storedString":"allowInput","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10045":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10046":{"style":{"__isSmartRef__":true,"id":10047},"chunkOwner":{"__isSmartRef__":true,"id":10038},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10047":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10048":{"morph":{"__isSmartRef__":true,"id":10038},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10049":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10050":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10051":{"layoutText":{"__isSmartRef__":true,"id":10052}},"10052":{"varMapping":{"__isSmartRef__":true,"id":10053},"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":10054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10053":{"this":{"__isSmartRef__":true,"id":10038}},"10054":{},"10055":{"_Position":{"__isSmartRef__":true,"id":10056},"renderContextTable":{"__isSmartRef__":true,"id":10057},"_Extent":{"__isSmartRef__":true,"id":10058},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10059},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10056":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10058":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10059":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__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","adjustOrigin":"adjustOriginHTML","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":10016},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10062":{"resizeWidth":true},"10063":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10064":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10065":{"updateExpanderColor":{"__isSmartRef__":true,"id":10066},"onMouseDown":{"__isSmartRef__":true,"id":10069},"isRoot":{"__isSmartRef__":true,"id":10076},"displayValue":{"__isSmartRef__":true,"id":10079},"update":{"__isSmartRef__":true,"id":10082}},"10066":{"varMapping":{"__isSmartRef__":true,"id":10067},"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":10068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10067":{"this":{"__isSmartRef__":true,"id":10016}},"10068":{},"10069":{"varMapping":{"__isSmartRef__":true,"id":10070},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10070":{"this":{"__isSmartRef__":true,"id":10016},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10071}},"10071":{"$super":{"__isSmartRef__":true,"id":10072}},"10072":{"varMapping":{"__isSmartRef__":true,"id":10073},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10073":{"obj":{"__isSmartRef__":true,"id":10016},"name":"onMouseDown"},"10074":{},"10075":{},"10076":{"varMapping":{"__isSmartRef__":true,"id":10077},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10077":{"this":{"__isSmartRef__":true,"id":10016}},"10078":{},"10079":{"varMapping":{"__isSmartRef__":true,"id":10080},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10080":{"this":{"__isSmartRef__":true,"id":10016}},"10081":{},"10082":{"varMapping":{"__isSmartRef__":true,"id":10083},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10083":{"this":{"__isSmartRef__":true,"id":10016}},"10084":{},"10085":{"_Position":{"__isSmartRef__":true,"id":10086},"renderContextTable":{"__isSmartRef__":true,"id":10087},"_Extent":{"__isSmartRef__":true,"id":10088},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10089},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10086":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10087":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10088":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10089":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10090":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10091":{"morph":{"__isSmartRef__":true,"id":10015},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10092":{"layouter":{"__isSmartRef__":true,"id":10093},"resizeWidth":true},"10093":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10015},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10094":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10095":{"x":0,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10096":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10097}},"10097":{"varMapping":{"__isSmartRef__":true,"id":10098},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10098":{"this":{"__isSmartRef__":true,"id":10015},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10099}},"10099":{"$super":{"__isSmartRef__":true,"id":10100}},"10100":{"varMapping":{"__isSmartRef__":true,"id":10101},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10101":{"obj":{"__isSmartRef__":true,"id":10015},"name":"getLayoutableSubmorphs"},"10102":{},"10103":{},"10104":{"submorphs":[{"__isSmartRef__":true,"id":10105}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10174},"derivationIds":[null],"id":"4587BF2B-ACF0-4BCB-8A32-7572F7A5598B","renderContextTable":{"__isSmartRef__":true,"id":10179},"eventHandler":{"__isSmartRef__":true,"id":10180},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10181},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10183},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10184},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10185},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10105":{"submorphs":[{"__isSmartRef__":true,"id":10106},{"__isSmartRef__":true,"id":10127}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10144},"derivationIds":[null],"id":"3B45664A-6A15-4D9A-A4E8-512157891190","renderContextTable":{"__isSmartRef__":true,"id":10149},"eventHandler":{"__isSmartRef__":true,"id":10150},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10151},"grabbingEnabled":false,"draggingEnabled":false,"data":"=cell(1,0)+cell(1,1)","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"cachedTextString","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10106},"text":{"__isSmartRef__":true,"id":10127},"owner":{"__isSmartRef__":true,"id":10104},"_Position":{"__isSmartRef__":true,"id":10152},"priorExtent":{"__isSmartRef__":true,"id":10153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10154},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10106":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10107},"derivationIds":[null],"id":"AC256E22-0B29-4CE1-B658-E2DB5F978B87","renderContextTable":{"__isSmartRef__":true,"id":10113},"eventHandler":{"__isSmartRef__":true,"id":10114},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10115},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10105},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10116},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10107":{"_Position":{"__isSmartRef__":true,"id":10108},"renderContextTable":{"__isSmartRef__":true,"id":10109},"_Extent":{"__isSmartRef__":true,"id":10110},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10111},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10112},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10108":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10109":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10110":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10111":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10112":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10113":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10114":{"morph":{"__isSmartRef__":true,"id":10106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10115":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10116":{"toggle":{"__isSmartRef__":true,"id":10117},"toggleExpansion":{"__isSmartRef__":true,"id":10124}},"10117":{"varMapping":{"__isSmartRef__":true,"id":10118},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10118":{"this":{"__isSmartRef__":true,"id":10106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10119}},"10119":{"$super":{"__isSmartRef__":true,"id":10120}},"10120":{"varMapping":{"__isSmartRef__":true,"id":10121},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10121":{"obj":{"__isSmartRef__":true,"id":10106},"name":"toggle"},"10122":{},"10123":{},"10124":{"varMapping":{"__isSmartRef__":true,"id":10125},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10125":{"this":{"__isSmartRef__":true,"id":10106}},"10126":{},"10127":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10128},"derivationIds":[null],"id":"E5138BE2-CD7A-4C3E-A0A7-F9B30DC214C4","renderContextTable":{"__isSmartRef__":true,"id":10132},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10133},{"__isSmartRef__":true,"id":10135}],"eventHandler":{"__isSmartRef__":true,"id":10137},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10138},"priorExtent":{"__isSmartRef__":true,"id":10139},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10105},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10140},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10128":{"_Position":{"__isSmartRef__":true,"id":10129},"renderContextTable":{"__isSmartRef__":true,"id":10130},"_Extent":{"__isSmartRef__":true,"id":10131},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10129":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10130":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10131":{"x":293,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10132":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10133":{"style":{"__isSmartRef__":true,"id":10134},"chunkOwner":{"__isSmartRef__":true,"id":10127},"storedString":"cachedTextString","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10134":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10135":{"style":{"__isSmartRef__":true,"id":10136},"chunkOwner":{"__isSmartRef__":true,"id":10127},"storedString":": =cell(1,0)+cell(1,1)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10136":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10137":{"morph":{"__isSmartRef__":true,"id":10127},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10138":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10139":{"x":285,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10140":{"layoutText":{"__isSmartRef__":true,"id":10141}},"10141":{"varMapping":{"__isSmartRef__":true,"id":10142},"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":10143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10142":{"this":{"__isSmartRef__":true,"id":10127}},"10143":{},"10144":{"_Position":{"__isSmartRef__":true,"id":10145},"renderContextTable":{"__isSmartRef__":true,"id":10146},"_Extent":{"__isSmartRef__":true,"id":10147},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10148},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10145":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10146":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10147":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10148":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10149":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10150":{"morph":{"__isSmartRef__":true,"id":10105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10151":{"resizeWidth":true},"10152":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10153":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10154":{"updateExpanderColor":{"__isSmartRef__":true,"id":10155},"onMouseDown":{"__isSmartRef__":true,"id":10158},"isRoot":{"__isSmartRef__":true,"id":10165},"displayValue":{"__isSmartRef__":true,"id":10168},"update":{"__isSmartRef__":true,"id":10171}},"10155":{"varMapping":{"__isSmartRef__":true,"id":10156},"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":10157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10156":{"this":{"__isSmartRef__":true,"id":10105}},"10157":{},"10158":{"varMapping":{"__isSmartRef__":true,"id":10159},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10159":{"this":{"__isSmartRef__":true,"id":10105},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10160}},"10160":{"$super":{"__isSmartRef__":true,"id":10161}},"10161":{"varMapping":{"__isSmartRef__":true,"id":10162},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10162":{"obj":{"__isSmartRef__":true,"id":10105},"name":"onMouseDown"},"10163":{},"10164":{},"10165":{"varMapping":{"__isSmartRef__":true,"id":10166},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10166":{"this":{"__isSmartRef__":true,"id":10105}},"10167":{},"10168":{"varMapping":{"__isSmartRef__":true,"id":10169},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10169":{"this":{"__isSmartRef__":true,"id":10105}},"10170":{},"10171":{"varMapping":{"__isSmartRef__":true,"id":10172},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10172":{"this":{"__isSmartRef__":true,"id":10105}},"10173":{},"10174":{"_Position":{"__isSmartRef__":true,"id":10175},"renderContextTable":{"__isSmartRef__":true,"id":10176},"_Extent":{"__isSmartRef__":true,"id":10177},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10178},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10175":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10176":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10177":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10178":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10179":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10180":{"morph":{"__isSmartRef__":true,"id":10104},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10181":{"layouter":{"__isSmartRef__":true,"id":10182},"resizeWidth":true},"10182":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10104},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10183":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10184":{"x":0,"y":260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10185":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10186}},"10186":{"varMapping":{"__isSmartRef__":true,"id":10187},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10187":{"this":{"__isSmartRef__":true,"id":10104},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10188}},"10188":{"$super":{"__isSmartRef__":true,"id":10189}},"10189":{"varMapping":{"__isSmartRef__":true,"id":10190},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10190":{"obj":{"__isSmartRef__":true,"id":10104},"name":"getLayoutableSubmorphs"},"10191":{},"10192":{},"10193":{"submorphs":[{"__isSmartRef__":true,"id":10194}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10263},"derivationIds":[null],"id":"52E4291F-3AD8-481C-9DDF-C55B72259159","renderContextTable":{"__isSmartRef__":true,"id":10268},"eventHandler":{"__isSmartRef__":true,"id":10269},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10270},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10272},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10273},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10274},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10194":{"submorphs":[{"__isSmartRef__":true,"id":10195},{"__isSmartRef__":true,"id":10216}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10233},"derivationIds":[null],"id":"1530BB9E-C79C-42B5-B725-B06C462B3D89","renderContextTable":{"__isSmartRef__":true,"id":10238},"eventHandler":{"__isSmartRef__":true,"id":10239},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10240},"grabbingEnabled":false,"draggingEnabled":false,"data":"","propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"charsReplaced","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10195},"text":{"__isSmartRef__":true,"id":10216},"owner":{"__isSmartRef__":true,"id":10193},"_Position":{"__isSmartRef__":true,"id":10241},"priorExtent":{"__isSmartRef__":true,"id":10242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10195":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10196},"derivationIds":[null],"id":"9B4D9BB9-DEA6-4218-A5A5-A5D4FB261065","renderContextTable":{"__isSmartRef__":true,"id":10202},"eventHandler":{"__isSmartRef__":true,"id":10203},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10204},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10194},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10205},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10196":{"_Position":{"__isSmartRef__":true,"id":10197},"renderContextTable":{"__isSmartRef__":true,"id":10198},"_Extent":{"__isSmartRef__":true,"id":10199},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10200},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10201},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10197":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10198":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10199":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10200":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10201":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10202":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10203":{"morph":{"__isSmartRef__":true,"id":10195},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10204":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10205":{"toggle":{"__isSmartRef__":true,"id":10206},"toggleExpansion":{"__isSmartRef__":true,"id":10213}},"10206":{"varMapping":{"__isSmartRef__":true,"id":10207},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10207":{"this":{"__isSmartRef__":true,"id":10195},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10208}},"10208":{"$super":{"__isSmartRef__":true,"id":10209}},"10209":{"varMapping":{"__isSmartRef__":true,"id":10210},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10210":{"obj":{"__isSmartRef__":true,"id":10195},"name":"toggle"},"10211":{},"10212":{},"10213":{"varMapping":{"__isSmartRef__":true,"id":10214},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10214":{"this":{"__isSmartRef__":true,"id":10195}},"10215":{},"10216":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10217},"derivationIds":[null],"id":"48CFAF53-3BF0-4C84-BE1D-B6FAC194CAF6","renderContextTable":{"__isSmartRef__":true,"id":10221},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10222},{"__isSmartRef__":true,"id":10224}],"eventHandler":{"__isSmartRef__":true,"id":10226},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10227},"priorExtent":{"__isSmartRef__":true,"id":10228},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10194},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10229},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10217":{"_Position":{"__isSmartRef__":true,"id":10218},"renderContextTable":{"__isSmartRef__":true,"id":10219},"_Extent":{"__isSmartRef__":true,"id":10220},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10218":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10219":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10220":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10221":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10222":{"style":{"__isSmartRef__":true,"id":10223},"chunkOwner":{"__isSmartRef__":true,"id":10216},"storedString":"charsReplaced","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10223":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10224":{"style":{"__isSmartRef__":true,"id":10225},"chunkOwner":{"__isSmartRef__":true,"id":10216},"storedString":": ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10225":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10226":{"morph":{"__isSmartRef__":true,"id":10216},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10227":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10228":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10229":{"layoutText":{"__isSmartRef__":true,"id":10230}},"10230":{"varMapping":{"__isSmartRef__":true,"id":10231},"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":10232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10231":{"this":{"__isSmartRef__":true,"id":10216}},"10232":{},"10233":{"_Position":{"__isSmartRef__":true,"id":10234},"renderContextTable":{"__isSmartRef__":true,"id":10235},"_Extent":{"__isSmartRef__":true,"id":10236},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10237},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10234":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10235":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10236":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10237":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10238":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10239":{"morph":{"__isSmartRef__":true,"id":10194},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10240":{"resizeWidth":true},"10241":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10242":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10243":{"updateExpanderColor":{"__isSmartRef__":true,"id":10244},"onMouseDown":{"__isSmartRef__":true,"id":10247},"isRoot":{"__isSmartRef__":true,"id":10254},"displayValue":{"__isSmartRef__":true,"id":10257},"update":{"__isSmartRef__":true,"id":10260}},"10244":{"varMapping":{"__isSmartRef__":true,"id":10245},"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":10246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10245":{"this":{"__isSmartRef__":true,"id":10194}},"10246":{},"10247":{"varMapping":{"__isSmartRef__":true,"id":10248},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10248":{"this":{"__isSmartRef__":true,"id":10194},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10249}},"10249":{"$super":{"__isSmartRef__":true,"id":10250}},"10250":{"varMapping":{"__isSmartRef__":true,"id":10251},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10251":{"obj":{"__isSmartRef__":true,"id":10194},"name":"onMouseDown"},"10252":{},"10253":{},"10254":{"varMapping":{"__isSmartRef__":true,"id":10255},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10255":{"this":{"__isSmartRef__":true,"id":10194}},"10256":{},"10257":{"varMapping":{"__isSmartRef__":true,"id":10258},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10258":{"this":{"__isSmartRef__":true,"id":10194}},"10259":{},"10260":{"varMapping":{"__isSmartRef__":true,"id":10261},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10261":{"this":{"__isSmartRef__":true,"id":10194}},"10262":{},"10263":{"_Position":{"__isSmartRef__":true,"id":10264},"renderContextTable":{"__isSmartRef__":true,"id":10265},"_Extent":{"__isSmartRef__":true,"id":10266},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10267},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10264":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10265":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10266":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10267":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10268":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10269":{"morph":{"__isSmartRef__":true,"id":10193},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10270":{"layouter":{"__isSmartRef__":true,"id":10271},"resizeWidth":true},"10271":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10193},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10272":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10273":{"x":0,"y":280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10274":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10275}},"10275":{"varMapping":{"__isSmartRef__":true,"id":10276},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10276":{"this":{"__isSmartRef__":true,"id":10193},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10277}},"10277":{"$super":{"__isSmartRef__":true,"id":10278}},"10278":{"varMapping":{"__isSmartRef__":true,"id":10279},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10279":{"obj":{"__isSmartRef__":true,"id":10193},"name":"getLayoutableSubmorphs"},"10280":{},"10281":{},"10282":{"submorphs":[{"__isSmartRef__":true,"id":10283}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10352},"derivationIds":[null],"id":"C6741D30-2E37-4981-BC69-EA823C7446C0","renderContextTable":{"__isSmartRef__":true,"id":10357},"eventHandler":{"__isSmartRef__":true,"id":10358},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10359},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10361},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10362},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10363},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10283":{"submorphs":[{"__isSmartRef__":true,"id":10284},{"__isSmartRef__":true,"id":10305}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10322},"derivationIds":[null],"id":"33ABE44E-7B9F-46B5-82F9-44E491DF727E","renderContextTable":{"__isSmartRef__":true,"id":10327},"eventHandler":{"__isSmartRef__":true,"id":10328},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10329},"grabbingEnabled":false,"draggingEnabled":false,"data":"","propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"charsTyped","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10284},"text":{"__isSmartRef__":true,"id":10305},"owner":{"__isSmartRef__":true,"id":10282},"_Position":{"__isSmartRef__":true,"id":10330},"priorExtent":{"__isSmartRef__":true,"id":10331},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10332},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10284":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10285},"derivationIds":[null],"id":"25BF6A2C-03E5-4035-AE1B-E091EAE9EB60","renderContextTable":{"__isSmartRef__":true,"id":10291},"eventHandler":{"__isSmartRef__":true,"id":10292},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10293},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10294},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10285":{"_Position":{"__isSmartRef__":true,"id":10286},"renderContextTable":{"__isSmartRef__":true,"id":10287},"_Extent":{"__isSmartRef__":true,"id":10288},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10289},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10290},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10286":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10287":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10288":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10289":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10290":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10291":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10292":{"morph":{"__isSmartRef__":true,"id":10284},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10293":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10294":{"toggle":{"__isSmartRef__":true,"id":10295},"toggleExpansion":{"__isSmartRef__":true,"id":10302}},"10295":{"varMapping":{"__isSmartRef__":true,"id":10296},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10296":{"this":{"__isSmartRef__":true,"id":10284},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10297}},"10297":{"$super":{"__isSmartRef__":true,"id":10298}},"10298":{"varMapping":{"__isSmartRef__":true,"id":10299},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10299":{"obj":{"__isSmartRef__":true,"id":10284},"name":"toggle"},"10300":{},"10301":{},"10302":{"varMapping":{"__isSmartRef__":true,"id":10303},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10303":{"this":{"__isSmartRef__":true,"id":10284}},"10304":{},"10305":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10306},"derivationIds":[null],"id":"818623CB-CC04-44A4-A7A8-E9EEBC8A176C","renderContextTable":{"__isSmartRef__":true,"id":10310},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10311},{"__isSmartRef__":true,"id":10313}],"eventHandler":{"__isSmartRef__":true,"id":10315},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10316},"priorExtent":{"__isSmartRef__":true,"id":10317},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10318},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10306":{"_Position":{"__isSmartRef__":true,"id":10307},"renderContextTable":{"__isSmartRef__":true,"id":10308},"_Extent":{"__isSmartRef__":true,"id":10309},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10307":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10308":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10309":{"x":98,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10310":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10311":{"style":{"__isSmartRef__":true,"id":10312},"chunkOwner":{"__isSmartRef__":true,"id":10305},"storedString":"charsTyped","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10312":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10313":{"style":{"__isSmartRef__":true,"id":10314},"chunkOwner":{"__isSmartRef__":true,"id":10305},"storedString":": ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10314":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10315":{"morph":{"__isSmartRef__":true,"id":10305},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10316":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10317":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10318":{"layoutText":{"__isSmartRef__":true,"id":10319}},"10319":{"varMapping":{"__isSmartRef__":true,"id":10320},"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":10321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10320":{"this":{"__isSmartRef__":true,"id":10305}},"10321":{},"10322":{"_Position":{"__isSmartRef__":true,"id":10323},"renderContextTable":{"__isSmartRef__":true,"id":10324},"_Extent":{"__isSmartRef__":true,"id":10325},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10326},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10323":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10324":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10325":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10326":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10327":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10328":{"morph":{"__isSmartRef__":true,"id":10283},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10329":{"resizeWidth":true},"10330":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10331":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10332":{"updateExpanderColor":{"__isSmartRef__":true,"id":10333},"onMouseDown":{"__isSmartRef__":true,"id":10336},"isRoot":{"__isSmartRef__":true,"id":10343},"displayValue":{"__isSmartRef__":true,"id":10346},"update":{"__isSmartRef__":true,"id":10349}},"10333":{"varMapping":{"__isSmartRef__":true,"id":10334},"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":10335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10334":{"this":{"__isSmartRef__":true,"id":10283}},"10335":{},"10336":{"varMapping":{"__isSmartRef__":true,"id":10337},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10337":{"this":{"__isSmartRef__":true,"id":10283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10338}},"10338":{"$super":{"__isSmartRef__":true,"id":10339}},"10339":{"varMapping":{"__isSmartRef__":true,"id":10340},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10340":{"obj":{"__isSmartRef__":true,"id":10283},"name":"onMouseDown"},"10341":{},"10342":{},"10343":{"varMapping":{"__isSmartRef__":true,"id":10344},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10344":{"this":{"__isSmartRef__":true,"id":10283}},"10345":{},"10346":{"varMapping":{"__isSmartRef__":true,"id":10347},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10347":{"this":{"__isSmartRef__":true,"id":10283}},"10348":{},"10349":{"varMapping":{"__isSmartRef__":true,"id":10350},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10350":{"this":{"__isSmartRef__":true,"id":10283}},"10351":{},"10352":{"_Position":{"__isSmartRef__":true,"id":10353},"renderContextTable":{"__isSmartRef__":true,"id":10354},"_Extent":{"__isSmartRef__":true,"id":10355},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10356},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10353":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10354":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10355":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10356":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10357":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10358":{"morph":{"__isSmartRef__":true,"id":10282},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10359":{"layouter":{"__isSmartRef__":true,"id":10360},"resizeWidth":true},"10360":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10282},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10361":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10362":{"x":0,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10363":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10364}},"10364":{"varMapping":{"__isSmartRef__":true,"id":10365},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10365":{"this":{"__isSmartRef__":true,"id":10282},"__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":10282},"name":"getLayoutableSubmorphs"},"10369":{},"10370":{},"10371":{"submorphs":[{"__isSmartRef__":true,"id":10372}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10441},"derivationIds":[null],"id":"3245ADC3-2E74-42C5-9513-3A7B8DE82188","renderContextTable":{"__isSmartRef__":true,"id":10446},"eventHandler":{"__isSmartRef__":true,"id":10447},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10448},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10450},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10452},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10372":{"submorphs":[{"__isSmartRef__":true,"id":10373},{"__isSmartRef__":true,"id":10394}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10411},"derivationIds":[null],"id":"CCC4681C-1C26-4A94-B2CF-0C9F34DC32FA","renderContextTable":{"__isSmartRef__":true,"id":10416},"eventHandler":{"__isSmartRef__":true,"id":10417},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10418},"grabbingEnabled":false,"draggingEnabled":false,"data":[null],"propertyList":["0"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"derivationIds","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10373},"text":{"__isSmartRef__":true,"id":10394},"owner":{"__isSmartRef__":true,"id":10371},"_Position":{"__isSmartRef__":true,"id":10419},"priorExtent":{"__isSmartRef__":true,"id":10420},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10421},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10373":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10374},"derivationIds":[null],"id":"FD7253D0-36E2-4723-B84B-3CB592BBC641","renderContextTable":{"__isSmartRef__":true,"id":10380},"eventHandler":{"__isSmartRef__":true,"id":10381},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10382},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10372},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10383},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10374":{"_Position":{"__isSmartRef__":true,"id":10375},"renderContextTable":{"__isSmartRef__":true,"id":10376},"_Extent":{"__isSmartRef__":true,"id":10377},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10378},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10379},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10375":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10376":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10377":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10378":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10379":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10380":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10381":{"morph":{"__isSmartRef__":true,"id":10373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10382":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10383":{"toggle":{"__isSmartRef__":true,"id":10384},"toggleExpansion":{"__isSmartRef__":true,"id":10391}},"10384":{"varMapping":{"__isSmartRef__":true,"id":10385},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10385":{"this":{"__isSmartRef__":true,"id":10373},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10386}},"10386":{"$super":{"__isSmartRef__":true,"id":10387}},"10387":{"varMapping":{"__isSmartRef__":true,"id":10388},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10388":{"obj":{"__isSmartRef__":true,"id":10373},"name":"toggle"},"10389":{},"10390":{},"10391":{"varMapping":{"__isSmartRef__":true,"id":10392},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10392":{"this":{"__isSmartRef__":true,"id":10373}},"10393":{},"10394":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10395},"derivationIds":[null],"id":"9B75A43A-A2D4-4F9F-9875-9C9FBFED1A70","renderContextTable":{"__isSmartRef__":true,"id":10399},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10400},{"__isSmartRef__":true,"id":10402}],"eventHandler":{"__isSmartRef__":true,"id":10404},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10405},"priorExtent":{"__isSmartRef__":true,"id":10406},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10372},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10407},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10395":{"_Position":{"__isSmartRef__":true,"id":10396},"renderContextTable":{"__isSmartRef__":true,"id":10397},"_Extent":{"__isSmartRef__":true,"id":10398},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__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":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10399":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10400":{"style":{"__isSmartRef__":true,"id":10401},"chunkOwner":{"__isSmartRef__":true,"id":10394},"storedString":"derivationIds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10401":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10402":{"style":{"__isSmartRef__":true,"id":10403},"chunkOwner":{"__isSmartRef__":true,"id":10394},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10403":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10404":{"morph":{"__isSmartRef__":true,"id":10394},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10405":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10406":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10407":{"layoutText":{"__isSmartRef__":true,"id":10408}},"10408":{"varMapping":{"__isSmartRef__":true,"id":10409},"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":10410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10409":{"this":{"__isSmartRef__":true,"id":10394}},"10410":{},"10411":{"_Position":{"__isSmartRef__":true,"id":10412},"renderContextTable":{"__isSmartRef__":true,"id":10413},"_Extent":{"__isSmartRef__":true,"id":10414},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10415},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10412":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10413":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10414":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10415":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10416":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10417":{"morph":{"__isSmartRef__":true,"id":10372},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10418":{"resizeWidth":true},"10419":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10420":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10421":{"updateExpanderColor":{"__isSmartRef__":true,"id":10422},"onMouseDown":{"__isSmartRef__":true,"id":10425},"isRoot":{"__isSmartRef__":true,"id":10432},"displayValue":{"__isSmartRef__":true,"id":10435},"update":{"__isSmartRef__":true,"id":10438}},"10422":{"varMapping":{"__isSmartRef__":true,"id":10423},"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":10424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10423":{"this":{"__isSmartRef__":true,"id":10372}},"10424":{},"10425":{"varMapping":{"__isSmartRef__":true,"id":10426},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10426":{"this":{"__isSmartRef__":true,"id":10372},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10427}},"10427":{"$super":{"__isSmartRef__":true,"id":10428}},"10428":{"varMapping":{"__isSmartRef__":true,"id":10429},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10429":{"obj":{"__isSmartRef__":true,"id":10372},"name":"onMouseDown"},"10430":{},"10431":{},"10432":{"varMapping":{"__isSmartRef__":true,"id":10433},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10433":{"this":{"__isSmartRef__":true,"id":10372}},"10434":{},"10435":{"varMapping":{"__isSmartRef__":true,"id":10436},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10436":{"this":{"__isSmartRef__":true,"id":10372}},"10437":{},"10438":{"varMapping":{"__isSmartRef__":true,"id":10439},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10439":{"this":{"__isSmartRef__":true,"id":10372}},"10440":{},"10441":{"_Position":{"__isSmartRef__":true,"id":10442},"renderContextTable":{"__isSmartRef__":true,"id":10443},"_Extent":{"__isSmartRef__":true,"id":10444},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10445},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10442":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10443":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10444":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10445":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10446":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10447":{"morph":{"__isSmartRef__":true,"id":10371},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10448":{"layouter":{"__isSmartRef__":true,"id":10449},"resizeWidth":true},"10449":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10371},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10450":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10451":{"x":0,"y":320,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10452":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10453}},"10453":{"varMapping":{"__isSmartRef__":true,"id":10454},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10454":{"this":{"__isSmartRef__":true,"id":10371},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10455}},"10455":{"$super":{"__isSmartRef__":true,"id":10456}},"10456":{"varMapping":{"__isSmartRef__":true,"id":10457},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10457":{"obj":{"__isSmartRef__":true,"id":10371},"name":"getLayoutableSubmorphs"},"10458":{},"10459":{},"10460":{"submorphs":[{"__isSmartRef__":true,"id":10461}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10529},"derivationIds":[null],"id":"F738DC5F-1E4F-42AF-8B54-394503BD6E36","renderContextTable":{"__isSmartRef__":true,"id":10534},"eventHandler":{"__isSmartRef__":true,"id":10535},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10536},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10538},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10539},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10540},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10461":{"submorphs":[{"__isSmartRef__":true,"id":10462},{"__isSmartRef__":true,"id":10482}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10499},"derivationIds":[null],"id":"875468AA-C9CF-40E5-B4EC-2E7D5909DFF3","renderContextTable":{"__isSmartRef__":true,"id":10504},"eventHandler":{"__isSmartRef__":true,"id":10505},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10506},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":17},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","eventHandler","droppingEnabled","halosEnabled","defaultCellHeight","defaultCellWidth","borderSize","colNames","numCols","numRows","activeCellContent","rows","dataModel","priorExtent","colHeads","layout","isInLayoutCycle","owner","showsHalos","halos","_Position","distanceToDragEvent","attributeConnections","doNotSerialize","doNotCopyProperties","$$activeCell","activeCell"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"doitContext","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10462},"text":{"__isSmartRef__":true,"id":10482},"owner":{"__isSmartRef__":true,"id":10460},"_Position":{"__isSmartRef__":true,"id":10507},"priorExtent":{"__isSmartRef__":true,"id":10508},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10509},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10462":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10463},"derivationIds":[null],"id":"BDAA9882-7657-47A1-8EB3-E39CD3317F95","renderContextTable":{"__isSmartRef__":true,"id":10468},"eventHandler":{"__isSmartRef__":true,"id":10469},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10470},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10461},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10471},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10463":{"_Position":{"__isSmartRef__":true,"id":10464},"renderContextTable":{"__isSmartRef__":true,"id":10465},"_Extent":{"__isSmartRef__":true,"id":10466},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10467},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":5754},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10464":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10465":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10466":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10467":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10468":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10469":{"morph":{"__isSmartRef__":true,"id":10462},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10470":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10471":{"toggle":{"__isSmartRef__":true,"id":10472},"toggleExpansion":{"__isSmartRef__":true,"id":10479}},"10472":{"varMapping":{"__isSmartRef__":true,"id":10473},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10473":{"this":{"__isSmartRef__":true,"id":10462},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10474}},"10474":{"$super":{"__isSmartRef__":true,"id":10475}},"10475":{"varMapping":{"__isSmartRef__":true,"id":10476},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10476":{"obj":{"__isSmartRef__":true,"id":10462},"name":"toggle"},"10477":{},"10478":{},"10479":{"varMapping":{"__isSmartRef__":true,"id":10480},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10480":{"this":{"__isSmartRef__":true,"id":10462}},"10481":{},"10482":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10483},"derivationIds":[null],"id":"F8BD79ED-7160-459D-A430-8DDD327FB50F","renderContextTable":{"__isSmartRef__":true,"id":10487},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10488},{"__isSmartRef__":true,"id":10490}],"eventHandler":{"__isSmartRef__":true,"id":10492},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10493},"priorExtent":{"__isSmartRef__":true,"id":10494},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10461},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10495},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10483":{"_Position":{"__isSmartRef__":true,"id":10484},"renderContextTable":{"__isSmartRef__":true,"id":10485},"_Extent":{"__isSmartRef__":true,"id":10486},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10484":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10485":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10486":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10487":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10488":{"style":{"__isSmartRef__":true,"id":10489},"chunkOwner":{"__isSmartRef__":true,"id":10482},"storedString":"doitContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10489":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10490":{"style":{"__isSmartRef__":true,"id":10491},"chunkOwner":{"__isSmartRef__":true,"id":10482},"storedString":": DataGrid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10491":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10492":{"morph":{"__isSmartRef__":true,"id":10482},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10493":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10494":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10495":{"layoutText":{"__isSmartRef__":true,"id":10496}},"10496":{"varMapping":{"__isSmartRef__":true,"id":10497},"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":10498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10497":{"this":{"__isSmartRef__":true,"id":10482}},"10498":{},"10499":{"_Position":{"__isSmartRef__":true,"id":10500},"renderContextTable":{"__isSmartRef__":true,"id":10501},"_Extent":{"__isSmartRef__":true,"id":10502},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10503},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10500":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10501":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10502":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10503":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10504":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10505":{"morph":{"__isSmartRef__":true,"id":10461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10506":{"resizeWidth":true},"10507":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10508":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10509":{"updateExpanderColor":{"__isSmartRef__":true,"id":10510},"onMouseDown":{"__isSmartRef__":true,"id":10513},"isRoot":{"__isSmartRef__":true,"id":10520},"displayValue":{"__isSmartRef__":true,"id":10523},"update":{"__isSmartRef__":true,"id":10526}},"10510":{"varMapping":{"__isSmartRef__":true,"id":10511},"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":10512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10511":{"this":{"__isSmartRef__":true,"id":10461}},"10512":{},"10513":{"varMapping":{"__isSmartRef__":true,"id":10514},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10514":{"this":{"__isSmartRef__":true,"id":10461},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10515}},"10515":{"$super":{"__isSmartRef__":true,"id":10516}},"10516":{"varMapping":{"__isSmartRef__":true,"id":10517},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10517":{"obj":{"__isSmartRef__":true,"id":10461},"name":"onMouseDown"},"10518":{},"10519":{},"10520":{"varMapping":{"__isSmartRef__":true,"id":10521},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10521":{"this":{"__isSmartRef__":true,"id":10461}},"10522":{},"10523":{"varMapping":{"__isSmartRef__":true,"id":10524},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10524":{"this":{"__isSmartRef__":true,"id":10461}},"10525":{},"10526":{"varMapping":{"__isSmartRef__":true,"id":10527},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10527":{"this":{"__isSmartRef__":true,"id":10461}},"10528":{},"10529":{"_Position":{"__isSmartRef__":true,"id":10530},"renderContextTable":{"__isSmartRef__":true,"id":10531},"_Extent":{"__isSmartRef__":true,"id":10532},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10533},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10530":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10531":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10532":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10533":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10534":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10535":{"morph":{"__isSmartRef__":true,"id":10460},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10536":{"layouter":{"__isSmartRef__":true,"id":10537},"resizeWidth":true},"10537":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10460},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10538":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10539":{"x":0,"y":340,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10540":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10541}},"10541":{"varMapping":{"__isSmartRef__":true,"id":10542},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10542":{"this":{"__isSmartRef__":true,"id":10460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10543}},"10543":{"$super":{"__isSmartRef__":true,"id":10544}},"10544":{"varMapping":{"__isSmartRef__":true,"id":10545},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10545":{"obj":{"__isSmartRef__":true,"id":10460},"name":"getLayoutableSubmorphs"},"10546":{},"10547":{},"10548":{"submorphs":[{"__isSmartRef__":true,"id":10549}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10618},"derivationIds":[null],"id":"277D6F5D-B780-4209-A969-9D4E5E9EA375","renderContextTable":{"__isSmartRef__":true,"id":10623},"eventHandler":{"__isSmartRef__":true,"id":10624},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10625},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10627},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10629},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10549":{"submorphs":[{"__isSmartRef__":true,"id":10550},{"__isSmartRef__":true,"id":10571}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10588},"derivationIds":[null],"id":"60C93D9F-1015-4C3F-99A8-920D7C053147","renderContextTable":{"__isSmartRef__":true,"id":10593},"eventHandler":{"__isSmartRef__":true,"id":10594},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10595},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"droppingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10550},"text":{"__isSmartRef__":true,"id":10571},"owner":{"__isSmartRef__":true,"id":10548},"_Position":{"__isSmartRef__":true,"id":10596},"priorExtent":{"__isSmartRef__":true,"id":10597},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10598},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10550":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10551},"derivationIds":[null],"id":"6649A3CD-973B-4DBA-99DF-DA654553D231","renderContextTable":{"__isSmartRef__":true,"id":10557},"eventHandler":{"__isSmartRef__":true,"id":10558},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10559},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10549},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10560},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10551":{"_Position":{"__isSmartRef__":true,"id":10552},"renderContextTable":{"__isSmartRef__":true,"id":10553},"_Extent":{"__isSmartRef__":true,"id":10554},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10555},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10556},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10552":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10553":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10554":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10555":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10556":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10557":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10558":{"morph":{"__isSmartRef__":true,"id":10550},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10559":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10560":{"toggle":{"__isSmartRef__":true,"id":10561},"toggleExpansion":{"__isSmartRef__":true,"id":10568}},"10561":{"varMapping":{"__isSmartRef__":true,"id":10562},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10562":{"this":{"__isSmartRef__":true,"id":10550},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10563}},"10563":{"$super":{"__isSmartRef__":true,"id":10564}},"10564":{"varMapping":{"__isSmartRef__":true,"id":10565},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10565":{"obj":{"__isSmartRef__":true,"id":10550},"name":"toggle"},"10566":{},"10567":{},"10568":{"varMapping":{"__isSmartRef__":true,"id":10569},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10569":{"this":{"__isSmartRef__":true,"id":10550}},"10570":{},"10571":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10572},"derivationIds":[null],"id":"978BA1AE-0426-4D31-AE2E-4CD1E1F7971C","renderContextTable":{"__isSmartRef__":true,"id":10576},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10577},{"__isSmartRef__":true,"id":10579}],"eventHandler":{"__isSmartRef__":true,"id":10581},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10582},"priorExtent":{"__isSmartRef__":true,"id":10583},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10549},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10584},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10572":{"_Position":{"__isSmartRef__":true,"id":10573},"renderContextTable":{"__isSmartRef__":true,"id":10574},"_Extent":{"__isSmartRef__":true,"id":10575},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10573":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10574":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10575":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10576":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10577":{"style":{"__isSmartRef__":true,"id":10578},"chunkOwner":{"__isSmartRef__":true,"id":10571},"storedString":"droppingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10578":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10579":{"style":{"__isSmartRef__":true,"id":10580},"chunkOwner":{"__isSmartRef__":true,"id":10571},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10580":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10581":{"morph":{"__isSmartRef__":true,"id":10571},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10582":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10583":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10584":{"layoutText":{"__isSmartRef__":true,"id":10585}},"10585":{"varMapping":{"__isSmartRef__":true,"id":10586},"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":10587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10586":{"this":{"__isSmartRef__":true,"id":10571}},"10587":{},"10588":{"_Position":{"__isSmartRef__":true,"id":10589},"renderContextTable":{"__isSmartRef__":true,"id":10590},"_Extent":{"__isSmartRef__":true,"id":10591},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10592},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10589":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10590":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10591":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10592":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10593":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10594":{"morph":{"__isSmartRef__":true,"id":10549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10595":{"resizeWidth":true},"10596":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10597":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10598":{"updateExpanderColor":{"__isSmartRef__":true,"id":10599},"onMouseDown":{"__isSmartRef__":true,"id":10602},"isRoot":{"__isSmartRef__":true,"id":10609},"displayValue":{"__isSmartRef__":true,"id":10612},"update":{"__isSmartRef__":true,"id":10615}},"10599":{"varMapping":{"__isSmartRef__":true,"id":10600},"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":10601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10600":{"this":{"__isSmartRef__":true,"id":10549}},"10601":{},"10602":{"varMapping":{"__isSmartRef__":true,"id":10603},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10603":{"this":{"__isSmartRef__":true,"id":10549},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10604}},"10604":{"$super":{"__isSmartRef__":true,"id":10605}},"10605":{"varMapping":{"__isSmartRef__":true,"id":10606},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10606":{"obj":{"__isSmartRef__":true,"id":10549},"name":"onMouseDown"},"10607":{},"10608":{},"10609":{"varMapping":{"__isSmartRef__":true,"id":10610},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10610":{"this":{"__isSmartRef__":true,"id":10549}},"10611":{},"10612":{"varMapping":{"__isSmartRef__":true,"id":10613},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10613":{"this":{"__isSmartRef__":true,"id":10549}},"10614":{},"10615":{"varMapping":{"__isSmartRef__":true,"id":10616},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10616":{"this":{"__isSmartRef__":true,"id":10549}},"10617":{},"10618":{"_Position":{"__isSmartRef__":true,"id":10619},"renderContextTable":{"__isSmartRef__":true,"id":10620},"_Extent":{"__isSmartRef__":true,"id":10621},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10622},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10619":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10620":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10621":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10622":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10623":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10624":{"morph":{"__isSmartRef__":true,"id":10548},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10625":{"layouter":{"__isSmartRef__":true,"id":10626},"resizeWidth":true},"10626":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10548},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10627":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10628":{"x":0,"y":360,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10629":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10630}},"10630":{"varMapping":{"__isSmartRef__":true,"id":10631},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10631":{"this":{"__isSmartRef__":true,"id":10548},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10632}},"10632":{"$super":{"__isSmartRef__":true,"id":10633}},"10633":{"varMapping":{"__isSmartRef__":true,"id":10634},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10634":{"obj":{"__isSmartRef__":true,"id":10548},"name":"getLayoutableSubmorphs"},"10635":{},"10636":{},"10637":{"submorphs":[{"__isSmartRef__":true,"id":10638}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10707},"derivationIds":[null],"id":"1C9A4828-F578-4D85-A690-98E1C8C0B235","renderContextTable":{"__isSmartRef__":true,"id":10712},"eventHandler":{"__isSmartRef__":true,"id":10713},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10714},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10716},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10717},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10718},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10638":{"submorphs":[{"__isSmartRef__":true,"id":10639},{"__isSmartRef__":true,"id":10660}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10677},"derivationIds":[null],"id":"F471D19A-1C24-4544-B995-541FF2C058F9","renderContextTable":{"__isSmartRef__":true,"id":10682},"eventHandler":{"__isSmartRef__":true,"id":10683},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10684},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"evalEnabled","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10639},"text":{"__isSmartRef__":true,"id":10660},"owner":{"__isSmartRef__":true,"id":10637},"_Position":{"__isSmartRef__":true,"id":10685},"priorExtent":{"__isSmartRef__":true,"id":10686},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10687},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10639":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10640},"derivationIds":[null],"id":"35670CBC-EA02-4D2D-AFDF-8B2BD0733BD1","renderContextTable":{"__isSmartRef__":true,"id":10646},"eventHandler":{"__isSmartRef__":true,"id":10647},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10648},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10638},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10649},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10640":{"_Position":{"__isSmartRef__":true,"id":10641},"renderContextTable":{"__isSmartRef__":true,"id":10642},"_Extent":{"__isSmartRef__":true,"id":10643},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10644},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10645},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10641":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10642":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10643":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10644":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10645":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10646":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10647":{"morph":{"__isSmartRef__":true,"id":10639},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10648":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10649":{"toggle":{"__isSmartRef__":true,"id":10650},"toggleExpansion":{"__isSmartRef__":true,"id":10657}},"10650":{"varMapping":{"__isSmartRef__":true,"id":10651},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10651":{"this":{"__isSmartRef__":true,"id":10639},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10652}},"10652":{"$super":{"__isSmartRef__":true,"id":10653}},"10653":{"varMapping":{"__isSmartRef__":true,"id":10654},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10654":{"obj":{"__isSmartRef__":true,"id":10639},"name":"toggle"},"10655":{},"10656":{},"10657":{"varMapping":{"__isSmartRef__":true,"id":10658},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10658":{"this":{"__isSmartRef__":true,"id":10639}},"10659":{},"10660":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10661},"derivationIds":[null],"id":"9DCE96AC-8800-4E03-89CE-224224B2E264","renderContextTable":{"__isSmartRef__":true,"id":10665},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10666},{"__isSmartRef__":true,"id":10668}],"eventHandler":{"__isSmartRef__":true,"id":10670},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10671},"priorExtent":{"__isSmartRef__":true,"id":10672},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10638},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10673},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10661":{"_Position":{"__isSmartRef__":true,"id":10662},"renderContextTable":{"__isSmartRef__":true,"id":10663},"_Extent":{"__isSmartRef__":true,"id":10664},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10662":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10663":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10664":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10665":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10666":{"style":{"__isSmartRef__":true,"id":10667},"chunkOwner":{"__isSmartRef__":true,"id":10660},"storedString":"evalEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10667":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10668":{"style":{"__isSmartRef__":true,"id":10669},"chunkOwner":{"__isSmartRef__":true,"id":10660},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10669":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10670":{"morph":{"__isSmartRef__":true,"id":10660},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10671":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10672":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10673":{"layoutText":{"__isSmartRef__":true,"id":10674}},"10674":{"varMapping":{"__isSmartRef__":true,"id":10675},"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":10676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10675":{"this":{"__isSmartRef__":true,"id":10660}},"10676":{},"10677":{"_Position":{"__isSmartRef__":true,"id":10678},"renderContextTable":{"__isSmartRef__":true,"id":10679},"_Extent":{"__isSmartRef__":true,"id":10680},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10681},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10678":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10679":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10680":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10681":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10682":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10683":{"morph":{"__isSmartRef__":true,"id":10638},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10684":{"resizeWidth":true},"10685":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10686":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10687":{"updateExpanderColor":{"__isSmartRef__":true,"id":10688},"onMouseDown":{"__isSmartRef__":true,"id":10691},"isRoot":{"__isSmartRef__":true,"id":10698},"displayValue":{"__isSmartRef__":true,"id":10701},"update":{"__isSmartRef__":true,"id":10704}},"10688":{"varMapping":{"__isSmartRef__":true,"id":10689},"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":10690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10689":{"this":{"__isSmartRef__":true,"id":10638}},"10690":{},"10691":{"varMapping":{"__isSmartRef__":true,"id":10692},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10692":{"this":{"__isSmartRef__":true,"id":10638},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10693}},"10693":{"$super":{"__isSmartRef__":true,"id":10694}},"10694":{"varMapping":{"__isSmartRef__":true,"id":10695},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10695":{"obj":{"__isSmartRef__":true,"id":10638},"name":"onMouseDown"},"10696":{},"10697":{},"10698":{"varMapping":{"__isSmartRef__":true,"id":10699},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10699":{"this":{"__isSmartRef__":true,"id":10638}},"10700":{},"10701":{"varMapping":{"__isSmartRef__":true,"id":10702},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10702":{"this":{"__isSmartRef__":true,"id":10638}},"10703":{},"10704":{"varMapping":{"__isSmartRef__":true,"id":10705},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10705":{"this":{"__isSmartRef__":true,"id":10638}},"10706":{},"10707":{"_Position":{"__isSmartRef__":true,"id":10708},"renderContextTable":{"__isSmartRef__":true,"id":10709},"_Extent":{"__isSmartRef__":true,"id":10710},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10711},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10708":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10709":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10710":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10711":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10712":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10713":{"morph":{"__isSmartRef__":true,"id":10637},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10714":{"layouter":{"__isSmartRef__":true,"id":10715},"resizeWidth":true},"10715":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10637},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10716":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10717":{"x":0,"y":380,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10718":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10719}},"10719":{"varMapping":{"__isSmartRef__":true,"id":10720},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10720":{"this":{"__isSmartRef__":true,"id":10637},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10721}},"10721":{"$super":{"__isSmartRef__":true,"id":10722}},"10722":{"varMapping":{"__isSmartRef__":true,"id":10723},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10723":{"obj":{"__isSmartRef__":true,"id":10637},"name":"getLayoutableSubmorphs"},"10724":{},"10725":{},"10726":{"submorphs":[{"__isSmartRef__":true,"id":10727}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10796},"derivationIds":[null],"id":"33D8BEB8-517C-4D6D-BE4D-9814EA7EEDF6","renderContextTable":{"__isSmartRef__":true,"id":10801},"eventHandler":{"__isSmartRef__":true,"id":10802},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10803},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10805},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10806},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10807},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10727":{"submorphs":[{"__isSmartRef__":true,"id":10728},{"__isSmartRef__":true,"id":10749}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10766},"derivationIds":[null],"id":"75313345-113D-4886-91B8-0C8F66C7E582","renderContextTable":{"__isSmartRef__":true,"id":10771},"eventHandler":{"__isSmartRef__":true,"id":10772},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10773},"grabbingEnabled":false,"draggingEnabled":false,"data":"cell(1,0)+cell(1,0)","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"evalExpression","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10728},"text":{"__isSmartRef__":true,"id":10749},"owner":{"__isSmartRef__":true,"id":10726},"_Position":{"__isSmartRef__":true,"id":10774},"priorExtent":{"__isSmartRef__":true,"id":10775},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10776},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10728":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10729},"derivationIds":[null],"id":"E75CB2CE-6ECE-45D2-83A9-C51D0E9235CF","renderContextTable":{"__isSmartRef__":true,"id":10735},"eventHandler":{"__isSmartRef__":true,"id":10736},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10737},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10727},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10738},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10729":{"_Position":{"__isSmartRef__":true,"id":10730},"renderContextTable":{"__isSmartRef__":true,"id":10731},"_Extent":{"__isSmartRef__":true,"id":10732},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10733},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10734},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10730":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10731":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10732":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10733":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10734":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10735":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10736":{"morph":{"__isSmartRef__":true,"id":10728},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10737":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10738":{"toggle":{"__isSmartRef__":true,"id":10739},"toggleExpansion":{"__isSmartRef__":true,"id":10746}},"10739":{"varMapping":{"__isSmartRef__":true,"id":10740},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10740":{"this":{"__isSmartRef__":true,"id":10728},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10741}},"10741":{"$super":{"__isSmartRef__":true,"id":10742}},"10742":{"varMapping":{"__isSmartRef__":true,"id":10743},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10743":{"obj":{"__isSmartRef__":true,"id":10728},"name":"toggle"},"10744":{},"10745":{},"10746":{"varMapping":{"__isSmartRef__":true,"id":10747},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10747":{"this":{"__isSmartRef__":true,"id":10728}},"10748":{},"10749":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10750},"derivationIds":[null],"id":"6F23DC29-9FF3-40C3-9A86-6C3D70474F33","renderContextTable":{"__isSmartRef__":true,"id":10754},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10755},{"__isSmartRef__":true,"id":10757}],"eventHandler":{"__isSmartRef__":true,"id":10759},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10760},"priorExtent":{"__isSmartRef__":true,"id":10761},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10727},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10762},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10750":{"_Position":{"__isSmartRef__":true,"id":10751},"renderContextTable":{"__isSmartRef__":true,"id":10752},"_Extent":{"__isSmartRef__":true,"id":10753},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10751":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10752":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10753":{"x":270.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10754":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10755":{"style":{"__isSmartRef__":true,"id":10756},"chunkOwner":{"__isSmartRef__":true,"id":10749},"storedString":"evalExpression","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10756":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10757":{"style":{"__isSmartRef__":true,"id":10758},"chunkOwner":{"__isSmartRef__":true,"id":10749},"storedString":": cell(1,0)+cell(1,0)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10758":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10759":{"morph":{"__isSmartRef__":true,"id":10749},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10760":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10761":{"x":262.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10762":{"layoutText":{"__isSmartRef__":true,"id":10763}},"10763":{"varMapping":{"__isSmartRef__":true,"id":10764},"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":10765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10764":{"this":{"__isSmartRef__":true,"id":10749}},"10765":{},"10766":{"_Position":{"__isSmartRef__":true,"id":10767},"renderContextTable":{"__isSmartRef__":true,"id":10768},"_Extent":{"__isSmartRef__":true,"id":10769},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10770},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10767":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10768":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10769":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10770":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10771":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10772":{"morph":{"__isSmartRef__":true,"id":10727},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10773":{"resizeWidth":true},"10774":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10775":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10776":{"updateExpanderColor":{"__isSmartRef__":true,"id":10777},"onMouseDown":{"__isSmartRef__":true,"id":10780},"isRoot":{"__isSmartRef__":true,"id":10787},"displayValue":{"__isSmartRef__":true,"id":10790},"update":{"__isSmartRef__":true,"id":10793}},"10777":{"varMapping":{"__isSmartRef__":true,"id":10778},"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":10779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10778":{"this":{"__isSmartRef__":true,"id":10727}},"10779":{},"10780":{"varMapping":{"__isSmartRef__":true,"id":10781},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10781":{"this":{"__isSmartRef__":true,"id":10727},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10782}},"10782":{"$super":{"__isSmartRef__":true,"id":10783}},"10783":{"varMapping":{"__isSmartRef__":true,"id":10784},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10784":{"obj":{"__isSmartRef__":true,"id":10727},"name":"onMouseDown"},"10785":{},"10786":{},"10787":{"varMapping":{"__isSmartRef__":true,"id":10788},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10788":{"this":{"__isSmartRef__":true,"id":10727}},"10789":{},"10790":{"varMapping":{"__isSmartRef__":true,"id":10791},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10791":{"this":{"__isSmartRef__":true,"id":10727}},"10792":{},"10793":{"varMapping":{"__isSmartRef__":true,"id":10794},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10794":{"this":{"__isSmartRef__":true,"id":10727}},"10795":{},"10796":{"_Position":{"__isSmartRef__":true,"id":10797},"renderContextTable":{"__isSmartRef__":true,"id":10798},"_Extent":{"__isSmartRef__":true,"id":10799},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10800},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10797":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10798":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10799":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10800":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10801":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10802":{"morph":{"__isSmartRef__":true,"id":10726},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10803":{"layouter":{"__isSmartRef__":true,"id":10804},"resizeWidth":true},"10804":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10726},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10805":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10806":{"x":0,"y":400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10807":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10808}},"10808":{"varMapping":{"__isSmartRef__":true,"id":10809},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10809":{"this":{"__isSmartRef__":true,"id":10726},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10810}},"10810":{"$super":{"__isSmartRef__":true,"id":10811}},"10811":{"varMapping":{"__isSmartRef__":true,"id":10812},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10812":{"obj":{"__isSmartRef__":true,"id":10726},"name":"getLayoutableSubmorphs"},"10813":{},"10814":{},"10815":{"submorphs":[{"__isSmartRef__":true,"id":10816}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10885},"derivationIds":[null],"id":"00C8EDF8-89EB-41D1-9DA1-E1938E68A1A1","renderContextTable":{"__isSmartRef__":true,"id":10890},"eventHandler":{"__isSmartRef__":true,"id":10891},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10892},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10894},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10895},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10896},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10816":{"submorphs":[{"__isSmartRef__":true,"id":10817},{"__isSmartRef__":true,"id":10838}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10855},"derivationIds":[null],"id":"936D9404-DF01-4575-8825-0833C770E6DD","renderContextTable":{"__isSmartRef__":true,"id":10860},"eventHandler":{"__isSmartRef__":true,"id":10861},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10862},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":316},"propertyList":["morph","dispatchTable"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"eventHandler","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10817},"text":{"__isSmartRef__":true,"id":10838},"owner":{"__isSmartRef__":true,"id":10815},"_Position":{"__isSmartRef__":true,"id":10863},"priorExtent":{"__isSmartRef__":true,"id":10864},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10865},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10817":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10818},"derivationIds":[null],"id":"301BBF30-72B6-44B6-A2FB-1F62C47EDD13","renderContextTable":{"__isSmartRef__":true,"id":10824},"eventHandler":{"__isSmartRef__":true,"id":10825},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10826},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10816},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10827},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10818":{"_Position":{"__isSmartRef__":true,"id":10819},"renderContextTable":{"__isSmartRef__":true,"id":10820},"_Extent":{"__isSmartRef__":true,"id":10821},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10822},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10823},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10819":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10820":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10821":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10822":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10823":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10824":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10825":{"morph":{"__isSmartRef__":true,"id":10817},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10826":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10827":{"toggle":{"__isSmartRef__":true,"id":10828},"toggleExpansion":{"__isSmartRef__":true,"id":10835}},"10828":{"varMapping":{"__isSmartRef__":true,"id":10829},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10829":{"this":{"__isSmartRef__":true,"id":10817},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10830}},"10830":{"$super":{"__isSmartRef__":true,"id":10831}},"10831":{"varMapping":{"__isSmartRef__":true,"id":10832},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10832":{"obj":{"__isSmartRef__":true,"id":10817},"name":"toggle"},"10833":{},"10834":{},"10835":{"varMapping":{"__isSmartRef__":true,"id":10836},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10836":{"this":{"__isSmartRef__":true,"id":10817}},"10837":{},"10838":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10839},"derivationIds":[null],"id":"724F5214-73A7-432B-AFFF-78FFC17375A6","renderContextTable":{"__isSmartRef__":true,"id":10843},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10844},{"__isSmartRef__":true,"id":10846}],"eventHandler":{"__isSmartRef__":true,"id":10848},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10849},"priorExtent":{"__isSmartRef__":true,"id":10850},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10816},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10851},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10839":{"_Position":{"__isSmartRef__":true,"id":10840},"renderContextTable":{"__isSmartRef__":true,"id":10841},"_Extent":{"__isSmartRef__":true,"id":10842},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10840":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10841":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10842":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10843":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10844":{"style":{"__isSmartRef__":true,"id":10845},"chunkOwner":{"__isSmartRef__":true,"id":10838},"storedString":"eventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10845":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10846":{"style":{"__isSmartRef__":true,"id":10847},"chunkOwner":{"__isSmartRef__":true,"id":10838},"storedString":": EventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10847":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10848":{"morph":{"__isSmartRef__":true,"id":10838},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10849":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10850":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10851":{"layoutText":{"__isSmartRef__":true,"id":10852}},"10852":{"varMapping":{"__isSmartRef__":true,"id":10853},"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":10854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10853":{"this":{"__isSmartRef__":true,"id":10838}},"10854":{},"10855":{"_Position":{"__isSmartRef__":true,"id":10856},"renderContextTable":{"__isSmartRef__":true,"id":10857},"_Extent":{"__isSmartRef__":true,"id":10858},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10859},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10856":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10857":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10858":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10859":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__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","adjustOrigin":"adjustOriginHTML","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":10816},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10862":{"resizeWidth":true},"10863":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10864":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10865":{"updateExpanderColor":{"__isSmartRef__":true,"id":10866},"onMouseDown":{"__isSmartRef__":true,"id":10869},"isRoot":{"__isSmartRef__":true,"id":10876},"displayValue":{"__isSmartRef__":true,"id":10879},"update":{"__isSmartRef__":true,"id":10882}},"10866":{"varMapping":{"__isSmartRef__":true,"id":10867},"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":10868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10867":{"this":{"__isSmartRef__":true,"id":10816}},"10868":{},"10869":{"varMapping":{"__isSmartRef__":true,"id":10870},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10870":{"this":{"__isSmartRef__":true,"id":10816},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10871}},"10871":{"$super":{"__isSmartRef__":true,"id":10872}},"10872":{"varMapping":{"__isSmartRef__":true,"id":10873},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10873":{"obj":{"__isSmartRef__":true,"id":10816},"name":"onMouseDown"},"10874":{},"10875":{},"10876":{"varMapping":{"__isSmartRef__":true,"id":10877},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10877":{"this":{"__isSmartRef__":true,"id":10816}},"10878":{},"10879":{"varMapping":{"__isSmartRef__":true,"id":10880},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10880":{"this":{"__isSmartRef__":true,"id":10816}},"10881":{},"10882":{"varMapping":{"__isSmartRef__":true,"id":10883},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10883":{"this":{"__isSmartRef__":true,"id":10816}},"10884":{},"10885":{"_Position":{"__isSmartRef__":true,"id":10886},"renderContextTable":{"__isSmartRef__":true,"id":10887},"_Extent":{"__isSmartRef__":true,"id":10888},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10889},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10886":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10887":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10888":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10889":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10890":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10891":{"morph":{"__isSmartRef__":true,"id":10815},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10892":{"layouter":{"__isSmartRef__":true,"id":10893},"resizeWidth":true},"10893":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10815},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10894":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10895":{"x":0,"y":420,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10896":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10897}},"10897":{"varMapping":{"__isSmartRef__":true,"id":10898},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10898":{"this":{"__isSmartRef__":true,"id":10815},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10899}},"10899":{"$super":{"__isSmartRef__":true,"id":10900}},"10900":{"varMapping":{"__isSmartRef__":true,"id":10901},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10901":{"obj":{"__isSmartRef__":true,"id":10815},"name":"getLayoutableSubmorphs"},"10902":{},"10903":{},"10904":{"submorphs":[{"__isSmartRef__":true,"id":10905}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10974},"derivationIds":[null],"id":"5B887EC8-7E0B-414A-8361-CA0215247893","renderContextTable":{"__isSmartRef__":true,"id":10979},"eventHandler":{"__isSmartRef__":true,"id":10980},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10981},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":10983},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":10984},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10985},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10905":{"submorphs":[{"__isSmartRef__":true,"id":10906},{"__isSmartRef__":true,"id":10927}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10944},"derivationIds":[null],"id":"53C7B8E1-E460-4E41-BC23-AB1E0318A64E","renderContextTable":{"__isSmartRef__":true,"id":10949},"eventHandler":{"__isSmartRef__":true,"id":10950},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":10951},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"fixedHeight","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10906},"text":{"__isSmartRef__":true,"id":10927},"owner":{"__isSmartRef__":true,"id":10904},"_Position":{"__isSmartRef__":true,"id":10952},"priorExtent":{"__isSmartRef__":true,"id":10953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10954},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10906":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10907},"derivationIds":[null],"id":"1EEA3300-5602-4175-A192-682023513760","renderContextTable":{"__isSmartRef__":true,"id":10913},"eventHandler":{"__isSmartRef__":true,"id":10914},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":10915},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10905},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10916},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10907":{"_Position":{"__isSmartRef__":true,"id":10908},"renderContextTable":{"__isSmartRef__":true,"id":10909},"_Extent":{"__isSmartRef__":true,"id":10910},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10911},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":10912},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10908":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10909":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10910":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10911":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10912":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"10913":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10914":{"morph":{"__isSmartRef__":true,"id":10906},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10915":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10916":{"toggle":{"__isSmartRef__":true,"id":10917},"toggleExpansion":{"__isSmartRef__":true,"id":10924}},"10917":{"varMapping":{"__isSmartRef__":true,"id":10918},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":10923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10918":{"this":{"__isSmartRef__":true,"id":10906},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10919}},"10919":{"$super":{"__isSmartRef__":true,"id":10920}},"10920":{"varMapping":{"__isSmartRef__":true,"id":10921},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10921":{"obj":{"__isSmartRef__":true,"id":10906},"name":"toggle"},"10922":{},"10923":{},"10924":{"varMapping":{"__isSmartRef__":true,"id":10925},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":10926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10925":{"this":{"__isSmartRef__":true,"id":10906}},"10926":{},"10927":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10928},"derivationIds":[null],"id":"445B76DD-AE35-483D-B0BF-E0EE103145BB","renderContextTable":{"__isSmartRef__":true,"id":10932},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10933},{"__isSmartRef__":true,"id":10935}],"eventHandler":{"__isSmartRef__":true,"id":10937},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":10938},"priorExtent":{"__isSmartRef__":true,"id":10939},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10905},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10940},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10928":{"_Position":{"__isSmartRef__":true,"id":10929},"renderContextTable":{"__isSmartRef__":true,"id":10930},"_Extent":{"__isSmartRef__":true,"id":10931},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10929":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10930":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10931":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10932":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"10933":{"style":{"__isSmartRef__":true,"id":10934},"chunkOwner":{"__isSmartRef__":true,"id":10927},"storedString":"fixedHeight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10934":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10935":{"style":{"__isSmartRef__":true,"id":10936},"chunkOwner":{"__isSmartRef__":true,"id":10927},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10936":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10937":{"morph":{"__isSmartRef__":true,"id":10927},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10938":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10939":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10940":{"layoutText":{"__isSmartRef__":true,"id":10941}},"10941":{"varMapping":{"__isSmartRef__":true,"id":10942},"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":10943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10942":{"this":{"__isSmartRef__":true,"id":10927}},"10943":{},"10944":{"_Position":{"__isSmartRef__":true,"id":10945},"renderContextTable":{"__isSmartRef__":true,"id":10946},"_Extent":{"__isSmartRef__":true,"id":10947},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10948},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10945":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10946":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10947":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10948":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10949":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10950":{"morph":{"__isSmartRef__":true,"id":10905},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10951":{"resizeWidth":true},"10952":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10953":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10954":{"updateExpanderColor":{"__isSmartRef__":true,"id":10955},"onMouseDown":{"__isSmartRef__":true,"id":10958},"isRoot":{"__isSmartRef__":true,"id":10965},"displayValue":{"__isSmartRef__":true,"id":10968},"update":{"__isSmartRef__":true,"id":10971}},"10955":{"varMapping":{"__isSmartRef__":true,"id":10956},"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":10957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10956":{"this":{"__isSmartRef__":true,"id":10905}},"10957":{},"10958":{"varMapping":{"__isSmartRef__":true,"id":10959},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":10964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10959":{"this":{"__isSmartRef__":true,"id":10905},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10960}},"10960":{"$super":{"__isSmartRef__":true,"id":10961}},"10961":{"varMapping":{"__isSmartRef__":true,"id":10962},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10962":{"obj":{"__isSmartRef__":true,"id":10905},"name":"onMouseDown"},"10963":{},"10964":{},"10965":{"varMapping":{"__isSmartRef__":true,"id":10966},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":10967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10966":{"this":{"__isSmartRef__":true,"id":10905}},"10967":{},"10968":{"varMapping":{"__isSmartRef__":true,"id":10969},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":10970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10969":{"this":{"__isSmartRef__":true,"id":10905}},"10970":{},"10971":{"varMapping":{"__isSmartRef__":true,"id":10972},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10972":{"this":{"__isSmartRef__":true,"id":10905}},"10973":{},"10974":{"_Position":{"__isSmartRef__":true,"id":10975},"renderContextTable":{"__isSmartRef__":true,"id":10976},"_Extent":{"__isSmartRef__":true,"id":10977},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":10978},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10975":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10976":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10977":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10978":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"10979":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"10980":{"morph":{"__isSmartRef__":true,"id":10904},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10981":{"layouter":{"__isSmartRef__":true,"id":10982},"resizeWidth":true},"10982":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10904},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"10983":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10984":{"x":0,"y":440,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10985":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":10986}},"10986":{"varMapping":{"__isSmartRef__":true,"id":10987},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":10992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10987":{"this":{"__isSmartRef__":true,"id":10904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10988}},"10988":{"$super":{"__isSmartRef__":true,"id":10989}},"10989":{"varMapping":{"__isSmartRef__":true,"id":10990},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"10990":{"obj":{"__isSmartRef__":true,"id":10904},"name":"getLayoutableSubmorphs"},"10991":{},"10992":{},"10993":{"submorphs":[{"__isSmartRef__":true,"id":10994}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11063},"derivationIds":[null],"id":"84CB6513-14A3-47CB-BA48-53D10172E730","renderContextTable":{"__isSmartRef__":true,"id":11068},"eventHandler":{"__isSmartRef__":true,"id":11069},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11070},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11072},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11073},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11074},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10994":{"submorphs":[{"__isSmartRef__":true,"id":10995},{"__isSmartRef__":true,"id":11016}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11033},"derivationIds":[null],"id":"1F51996D-9C99-4C6E-BF9C-8E4B3C3C24F4","renderContextTable":{"__isSmartRef__":true,"id":11038},"eventHandler":{"__isSmartRef__":true,"id":11039},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11040},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"fixedWidth","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":10995},"text":{"__isSmartRef__":true,"id":11016},"owner":{"__isSmartRef__":true,"id":10993},"_Position":{"__isSmartRef__":true,"id":11041},"priorExtent":{"__isSmartRef__":true,"id":11042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11043},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"10995":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10996},"derivationIds":[null],"id":"C904D74E-2999-4DCC-83B6-FE3E362F7C12","renderContextTable":{"__isSmartRef__":true,"id":11002},"eventHandler":{"__isSmartRef__":true,"id":11003},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11004},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":10994},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11005},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"10996":{"_Position":{"__isSmartRef__":true,"id":10997},"renderContextTable":{"__isSmartRef__":true,"id":10998},"_Extent":{"__isSmartRef__":true,"id":10999},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11000},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11001},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"10997":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"10998":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"10999":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11000":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11001":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11002":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11003":{"morph":{"__isSmartRef__":true,"id":10995},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11004":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11005":{"toggle":{"__isSmartRef__":true,"id":11006},"toggleExpansion":{"__isSmartRef__":true,"id":11013}},"11006":{"varMapping":{"__isSmartRef__":true,"id":11007},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11007":{"this":{"__isSmartRef__":true,"id":10995},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11008}},"11008":{"$super":{"__isSmartRef__":true,"id":11009}},"11009":{"varMapping":{"__isSmartRef__":true,"id":11010},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11010":{"obj":{"__isSmartRef__":true,"id":10995},"name":"toggle"},"11011":{},"11012":{},"11013":{"varMapping":{"__isSmartRef__":true,"id":11014},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11014":{"this":{"__isSmartRef__":true,"id":10995}},"11015":{},"11016":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11017},"derivationIds":[null],"id":"235FB11E-F59F-4B57-9538-21A025EBA35A","renderContextTable":{"__isSmartRef__":true,"id":11021},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11022},{"__isSmartRef__":true,"id":11024}],"eventHandler":{"__isSmartRef__":true,"id":11026},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11027},"priorExtent":{"__isSmartRef__":true,"id":11028},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":10994},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11029},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11017":{"_Position":{"__isSmartRef__":true,"id":11018},"renderContextTable":{"__isSmartRef__":true,"id":11019},"_Extent":{"__isSmartRef__":true,"id":11020},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11018":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11019":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11020":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11021":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11022":{"style":{"__isSmartRef__":true,"id":11023},"chunkOwner":{"__isSmartRef__":true,"id":11016},"storedString":"fixedWidth","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11023":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11024":{"style":{"__isSmartRef__":true,"id":11025},"chunkOwner":{"__isSmartRef__":true,"id":11016},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11025":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11026":{"morph":{"__isSmartRef__":true,"id":11016},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11027":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11028":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11029":{"layoutText":{"__isSmartRef__":true,"id":11030}},"11030":{"varMapping":{"__isSmartRef__":true,"id":11031},"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":11032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11031":{"this":{"__isSmartRef__":true,"id":11016}},"11032":{},"11033":{"_Position":{"__isSmartRef__":true,"id":11034},"renderContextTable":{"__isSmartRef__":true,"id":11035},"_Extent":{"__isSmartRef__":true,"id":11036},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11037},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11034":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11035":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11036":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11037":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11038":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11039":{"morph":{"__isSmartRef__":true,"id":10994},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11040":{"resizeWidth":true},"11041":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11042":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11043":{"updateExpanderColor":{"__isSmartRef__":true,"id":11044},"onMouseDown":{"__isSmartRef__":true,"id":11047},"isRoot":{"__isSmartRef__":true,"id":11054},"displayValue":{"__isSmartRef__":true,"id":11057},"update":{"__isSmartRef__":true,"id":11060}},"11044":{"varMapping":{"__isSmartRef__":true,"id":11045},"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":11046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11045":{"this":{"__isSmartRef__":true,"id":10994}},"11046":{},"11047":{"varMapping":{"__isSmartRef__":true,"id":11048},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11048":{"this":{"__isSmartRef__":true,"id":10994},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11049}},"11049":{"$super":{"__isSmartRef__":true,"id":11050}},"11050":{"varMapping":{"__isSmartRef__":true,"id":11051},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11051":{"obj":{"__isSmartRef__":true,"id":10994},"name":"onMouseDown"},"11052":{},"11053":{},"11054":{"varMapping":{"__isSmartRef__":true,"id":11055},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11055":{"this":{"__isSmartRef__":true,"id":10994}},"11056":{},"11057":{"varMapping":{"__isSmartRef__":true,"id":11058},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11058":{"this":{"__isSmartRef__":true,"id":10994}},"11059":{},"11060":{"varMapping":{"__isSmartRef__":true,"id":11061},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11061":{"this":{"__isSmartRef__":true,"id":10994}},"11062":{},"11063":{"_Position":{"__isSmartRef__":true,"id":11064},"renderContextTable":{"__isSmartRef__":true,"id":11065},"_Extent":{"__isSmartRef__":true,"id":11066},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11067},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11064":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11065":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11066":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11067":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11068":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11069":{"morph":{"__isSmartRef__":true,"id":10993},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11070":{"layouter":{"__isSmartRef__":true,"id":11071},"resizeWidth":true},"11071":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":10993},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11072":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11073":{"x":0,"y":460,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11074":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11075}},"11075":{"varMapping":{"__isSmartRef__":true,"id":11076},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11076":{"this":{"__isSmartRef__":true,"id":10993},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11077}},"11077":{"$super":{"__isSmartRef__":true,"id":11078}},"11078":{"varMapping":{"__isSmartRef__":true,"id":11079},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11079":{"obj":{"__isSmartRef__":true,"id":10993},"name":"getLayoutableSubmorphs"},"11080":{},"11081":{},"11082":{"submorphs":[{"__isSmartRef__":true,"id":11083}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11152},"derivationIds":[null],"id":"00A07DAE-4315-4EE9-849B-650A38CB481B","renderContextTable":{"__isSmartRef__":true,"id":11157},"eventHandler":{"__isSmartRef__":true,"id":11158},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11159},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11161},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11162},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11163},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11083":{"submorphs":[{"__isSmartRef__":true,"id":11084},{"__isSmartRef__":true,"id":11105}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11122},"derivationIds":[null],"id":"5A141E05-6139-4658-A9AF-5126612A06B7","renderContextTable":{"__isSmartRef__":true,"id":11127},"eventHandler":{"__isSmartRef__":true,"id":11128},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11129},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"grabbingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11084},"text":{"__isSmartRef__":true,"id":11105},"owner":{"__isSmartRef__":true,"id":11082},"_Position":{"__isSmartRef__":true,"id":11130},"priorExtent":{"__isSmartRef__":true,"id":11131},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11132},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11084":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11085},"derivationIds":[null],"id":"97C57461-9D0D-4731-AE45-38381DBDA599","renderContextTable":{"__isSmartRef__":true,"id":11091},"eventHandler":{"__isSmartRef__":true,"id":11092},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11093},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11083},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11094},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11085":{"_Position":{"__isSmartRef__":true,"id":11086},"renderContextTable":{"__isSmartRef__":true,"id":11087},"_Extent":{"__isSmartRef__":true,"id":11088},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11089},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11090},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11086":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11087":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11088":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11089":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11090":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11091":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11092":{"morph":{"__isSmartRef__":true,"id":11084},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11093":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11094":{"toggle":{"__isSmartRef__":true,"id":11095},"toggleExpansion":{"__isSmartRef__":true,"id":11102}},"11095":{"varMapping":{"__isSmartRef__":true,"id":11096},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11096":{"this":{"__isSmartRef__":true,"id":11084},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11097}},"11097":{"$super":{"__isSmartRef__":true,"id":11098}},"11098":{"varMapping":{"__isSmartRef__":true,"id":11099},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11099":{"obj":{"__isSmartRef__":true,"id":11084},"name":"toggle"},"11100":{},"11101":{},"11102":{"varMapping":{"__isSmartRef__":true,"id":11103},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11103":{"this":{"__isSmartRef__":true,"id":11084}},"11104":{},"11105":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11106},"derivationIds":[null],"id":"91553E05-0B6F-4103-B2AC-8BBCB91CDAD6","renderContextTable":{"__isSmartRef__":true,"id":11110},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11111},{"__isSmartRef__":true,"id":11113}],"eventHandler":{"__isSmartRef__":true,"id":11115},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11116},"priorExtent":{"__isSmartRef__":true,"id":11117},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11083},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11118},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11106":{"_Position":{"__isSmartRef__":true,"id":11107},"renderContextTable":{"__isSmartRef__":true,"id":11108},"_Extent":{"__isSmartRef__":true,"id":11109},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11107":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11108":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11109":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11110":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11111":{"style":{"__isSmartRef__":true,"id":11112},"chunkOwner":{"__isSmartRef__":true,"id":11105},"storedString":"grabbingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11112":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11113":{"style":{"__isSmartRef__":true,"id":11114},"chunkOwner":{"__isSmartRef__":true,"id":11105},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11114":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11115":{"morph":{"__isSmartRef__":true,"id":11105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11116":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11117":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11118":{"layoutText":{"__isSmartRef__":true,"id":11119}},"11119":{"varMapping":{"__isSmartRef__":true,"id":11120},"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":11121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11120":{"this":{"__isSmartRef__":true,"id":11105}},"11121":{},"11122":{"_Position":{"__isSmartRef__":true,"id":11123},"renderContextTable":{"__isSmartRef__":true,"id":11124},"_Extent":{"__isSmartRef__":true,"id":11125},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11126},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11123":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11125":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11126":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11127":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11128":{"morph":{"__isSmartRef__":true,"id":11083},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11129":{"resizeWidth":true},"11130":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11131":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11132":{"updateExpanderColor":{"__isSmartRef__":true,"id":11133},"onMouseDown":{"__isSmartRef__":true,"id":11136},"isRoot":{"__isSmartRef__":true,"id":11143},"displayValue":{"__isSmartRef__":true,"id":11146},"update":{"__isSmartRef__":true,"id":11149}},"11133":{"varMapping":{"__isSmartRef__":true,"id":11134},"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":11135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11134":{"this":{"__isSmartRef__":true,"id":11083}},"11135":{},"11136":{"varMapping":{"__isSmartRef__":true,"id":11137},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11137":{"this":{"__isSmartRef__":true,"id":11083},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11138}},"11138":{"$super":{"__isSmartRef__":true,"id":11139}},"11139":{"varMapping":{"__isSmartRef__":true,"id":11140},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11140":{"obj":{"__isSmartRef__":true,"id":11083},"name":"onMouseDown"},"11141":{},"11142":{},"11143":{"varMapping":{"__isSmartRef__":true,"id":11144},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11144":{"this":{"__isSmartRef__":true,"id":11083}},"11145":{},"11146":{"varMapping":{"__isSmartRef__":true,"id":11147},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11147":{"this":{"__isSmartRef__":true,"id":11083}},"11148":{},"11149":{"varMapping":{"__isSmartRef__":true,"id":11150},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11150":{"this":{"__isSmartRef__":true,"id":11083}},"11151":{},"11152":{"_Position":{"__isSmartRef__":true,"id":11153},"renderContextTable":{"__isSmartRef__":true,"id":11154},"_Extent":{"__isSmartRef__":true,"id":11155},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11156},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11153":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11154":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11155":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11156":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11157":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11158":{"morph":{"__isSmartRef__":true,"id":11082},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11159":{"layouter":{"__isSmartRef__":true,"id":11160},"resizeWidth":true},"11160":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11082},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11161":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11162":{"x":0,"y":480,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11163":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11164}},"11164":{"varMapping":{"__isSmartRef__":true,"id":11165},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11165":{"this":{"__isSmartRef__":true,"id":11082},"__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":11082},"name":"getLayoutableSubmorphs"},"11169":{},"11170":{},"11171":{"submorphs":[{"__isSmartRef__":true,"id":11172}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11240},"derivationIds":[null],"id":"F60649DE-915D-4854-A73E-423A5F6FAF37","renderContextTable":{"__isSmartRef__":true,"id":11245},"eventHandler":{"__isSmartRef__":true,"id":11246},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11247},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11249},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11250},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11251},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11172":{"submorphs":[{"__isSmartRef__":true,"id":11173},{"__isSmartRef__":true,"id":11193}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11210},"derivationIds":[null],"id":"81320CE2-B8B8-405A-8A1B-238975EB3752","renderContextTable":{"__isSmartRef__":true,"id":11215},"eventHandler":{"__isSmartRef__":true,"id":11216},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11217},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":17},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","eventHandler","droppingEnabled","halosEnabled","defaultCellHeight","defaultCellWidth","borderSize","colNames","numCols","numRows","activeCellContent","rows","dataModel","priorExtent","colHeads","layout","isInLayoutCycle","owner","showsHalos","halos","_Position","distanceToDragEvent","attributeConnections","doNotSerialize","doNotCopyProperties","$$activeCell","activeCell"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"grid","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11173},"text":{"__isSmartRef__":true,"id":11193},"owner":{"__isSmartRef__":true,"id":11171},"_Position":{"__isSmartRef__":true,"id":11218},"priorExtent":{"__isSmartRef__":true,"id":11219},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11220},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11173":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11174},"derivationIds":[null],"id":"CBD48661-3BC9-45F2-8F74-71538184516D","renderContextTable":{"__isSmartRef__":true,"id":11179},"eventHandler":{"__isSmartRef__":true,"id":11180},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11181},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11172},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11182},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11174":{"_Position":{"__isSmartRef__":true,"id":11175},"renderContextTable":{"__isSmartRef__":true,"id":11176},"_Extent":{"__isSmartRef__":true,"id":11177},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11178},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":5754},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11175":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11176":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11177":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11178":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11179":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11180":{"morph":{"__isSmartRef__":true,"id":11173},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11181":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11182":{"toggle":{"__isSmartRef__":true,"id":11183},"toggleExpansion":{"__isSmartRef__":true,"id":11190}},"11183":{"varMapping":{"__isSmartRef__":true,"id":11184},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11184":{"this":{"__isSmartRef__":true,"id":11173},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11185}},"11185":{"$super":{"__isSmartRef__":true,"id":11186}},"11186":{"varMapping":{"__isSmartRef__":true,"id":11187},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11187":{"obj":{"__isSmartRef__":true,"id":11173},"name":"toggle"},"11188":{},"11189":{},"11190":{"varMapping":{"__isSmartRef__":true,"id":11191},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11191":{"this":{"__isSmartRef__":true,"id":11173}},"11192":{},"11193":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11194},"derivationIds":[null],"id":"2F6D36EF-E11E-4CA2-BF07-FE52E10020D5","renderContextTable":{"__isSmartRef__":true,"id":11198},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11199},{"__isSmartRef__":true,"id":11201}],"eventHandler":{"__isSmartRef__":true,"id":11203},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11204},"priorExtent":{"__isSmartRef__":true,"id":11205},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11172},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11206},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11194":{"_Position":{"__isSmartRef__":true,"id":11195},"renderContextTable":{"__isSmartRef__":true,"id":11196},"_Extent":{"__isSmartRef__":true,"id":11197},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11195":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11196":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11197":{"x":105,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11198":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11199":{"style":{"__isSmartRef__":true,"id":11200},"chunkOwner":{"__isSmartRef__":true,"id":11193},"storedString":"grid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11200":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11201":{"style":{"__isSmartRef__":true,"id":11202},"chunkOwner":{"__isSmartRef__":true,"id":11193},"storedString":": DataGrid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11202":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11203":{"morph":{"__isSmartRef__":true,"id":11193},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11204":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11205":{"x":113,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11206":{"layoutText":{"__isSmartRef__":true,"id":11207}},"11207":{"varMapping":{"__isSmartRef__":true,"id":11208},"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":11209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11208":{"this":{"__isSmartRef__":true,"id":11193}},"11209":{},"11210":{"_Position":{"__isSmartRef__":true,"id":11211},"renderContextTable":{"__isSmartRef__":true,"id":11212},"_Extent":{"__isSmartRef__":true,"id":11213},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11214},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11211":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11212":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11213":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11214":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11215":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11216":{"morph":{"__isSmartRef__":true,"id":11172},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11217":{"resizeWidth":true},"11218":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11219":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11220":{"updateExpanderColor":{"__isSmartRef__":true,"id":11221},"onMouseDown":{"__isSmartRef__":true,"id":11224},"isRoot":{"__isSmartRef__":true,"id":11231},"displayValue":{"__isSmartRef__":true,"id":11234},"update":{"__isSmartRef__":true,"id":11237}},"11221":{"varMapping":{"__isSmartRef__":true,"id":11222},"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":11223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11222":{"this":{"__isSmartRef__":true,"id":11172}},"11223":{},"11224":{"varMapping":{"__isSmartRef__":true,"id":11225},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11225":{"this":{"__isSmartRef__":true,"id":11172},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11226}},"11226":{"$super":{"__isSmartRef__":true,"id":11227}},"11227":{"varMapping":{"__isSmartRef__":true,"id":11228},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11228":{"obj":{"__isSmartRef__":true,"id":11172},"name":"onMouseDown"},"11229":{},"11230":{},"11231":{"varMapping":{"__isSmartRef__":true,"id":11232},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11232":{"this":{"__isSmartRef__":true,"id":11172}},"11233":{},"11234":{"varMapping":{"__isSmartRef__":true,"id":11235},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11235":{"this":{"__isSmartRef__":true,"id":11172}},"11236":{},"11237":{"varMapping":{"__isSmartRef__":true,"id":11238},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11238":{"this":{"__isSmartRef__":true,"id":11172}},"11239":{},"11240":{"_Position":{"__isSmartRef__":true,"id":11241},"renderContextTable":{"__isSmartRef__":true,"id":11242},"_Extent":{"__isSmartRef__":true,"id":11243},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11244},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11241":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11242":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11243":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11244":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11245":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11246":{"morph":{"__isSmartRef__":true,"id":11171},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11247":{"layouter":{"__isSmartRef__":true,"id":11248},"resizeWidth":true},"11248":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11171},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11249":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11250":{"x":0,"y":500,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11251":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11252}},"11252":{"varMapping":{"__isSmartRef__":true,"id":11253},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11253":{"this":{"__isSmartRef__":true,"id":11171},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11254}},"11254":{"$super":{"__isSmartRef__":true,"id":11255}},"11255":{"varMapping":{"__isSmartRef__":true,"id":11256},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11256":{"obj":{"__isSmartRef__":true,"id":11171},"name":"getLayoutableSubmorphs"},"11257":{},"11258":{},"11259":{"submorphs":[{"__isSmartRef__":true,"id":11260}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11329},"derivationIds":[null],"id":"1E274F07-58C0-466F-962B-BD816AC7706B","renderContextTable":{"__isSmartRef__":true,"id":11334},"eventHandler":{"__isSmartRef__":true,"id":11335},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11336},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11338},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11339},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11340},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11260":{"submorphs":[{"__isSmartRef__":true,"id":11261},{"__isSmartRef__":true,"id":11282}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11299},"derivationIds":[null],"id":"A9821931-6C03-4A0F-9020-1BDD04FCA4E0","renderContextTable":{"__isSmartRef__":true,"id":11304},"eventHandler":{"__isSmartRef__":true,"id":11305},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11306},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":318},"propertyList":["x","y"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"gridCoords","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11261},"text":{"__isSmartRef__":true,"id":11282},"owner":{"__isSmartRef__":true,"id":11259},"_Position":{"__isSmartRef__":true,"id":11307},"priorExtent":{"__isSmartRef__":true,"id":11308},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11309},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11261":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11262},"derivationIds":[null],"id":"F7CE2238-64C5-4D0D-BA99-8879B807442E","renderContextTable":{"__isSmartRef__":true,"id":11268},"eventHandler":{"__isSmartRef__":true,"id":11269},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11270},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11260},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11271},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11262":{"_Position":{"__isSmartRef__":true,"id":11263},"renderContextTable":{"__isSmartRef__":true,"id":11264},"_Extent":{"__isSmartRef__":true,"id":11265},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11266},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11267},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11263":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11264":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11265":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11266":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11267":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11268":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11269":{"morph":{"__isSmartRef__":true,"id":11261},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11270":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11271":{"toggle":{"__isSmartRef__":true,"id":11272},"toggleExpansion":{"__isSmartRef__":true,"id":11279}},"11272":{"varMapping":{"__isSmartRef__":true,"id":11273},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11273":{"this":{"__isSmartRef__":true,"id":11261},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11274}},"11274":{"$super":{"__isSmartRef__":true,"id":11275}},"11275":{"varMapping":{"__isSmartRef__":true,"id":11276},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11276":{"obj":{"__isSmartRef__":true,"id":11261},"name":"toggle"},"11277":{},"11278":{},"11279":{"varMapping":{"__isSmartRef__":true,"id":11280},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11280":{"this":{"__isSmartRef__":true,"id":11261}},"11281":{},"11282":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11283},"derivationIds":[null],"id":"94E4EA9D-790C-46FB-A529-BD31EE1ED739","renderContextTable":{"__isSmartRef__":true,"id":11287},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11288},{"__isSmartRef__":true,"id":11290}],"eventHandler":{"__isSmartRef__":true,"id":11292},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11293},"priorExtent":{"__isSmartRef__":true,"id":11294},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11260},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11295},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11283":{"_Position":{"__isSmartRef__":true,"id":11284},"renderContextTable":{"__isSmartRef__":true,"id":11285},"_Extent":{"__isSmartRef__":true,"id":11286},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11284":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11285":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11286":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11287":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11288":{"style":{"__isSmartRef__":true,"id":11289},"chunkOwner":{"__isSmartRef__":true,"id":11282},"storedString":"gridCoords","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11289":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11290":{"style":{"__isSmartRef__":true,"id":11291},"chunkOwner":{"__isSmartRef__":true,"id":11282},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11291":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11292":{"morph":{"__isSmartRef__":true,"id":11282},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11293":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11294":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11295":{"layoutText":{"__isSmartRef__":true,"id":11296}},"11296":{"varMapping":{"__isSmartRef__":true,"id":11297},"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":11298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11297":{"this":{"__isSmartRef__":true,"id":11282}},"11298":{},"11299":{"_Position":{"__isSmartRef__":true,"id":11300},"renderContextTable":{"__isSmartRef__":true,"id":11301},"_Extent":{"__isSmartRef__":true,"id":11302},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11303},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11300":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11301":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11302":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11303":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11304":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11305":{"morph":{"__isSmartRef__":true,"id":11260},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11306":{"resizeWidth":true},"11307":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11308":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11309":{"updateExpanderColor":{"__isSmartRef__":true,"id":11310},"onMouseDown":{"__isSmartRef__":true,"id":11313},"isRoot":{"__isSmartRef__":true,"id":11320},"displayValue":{"__isSmartRef__":true,"id":11323},"update":{"__isSmartRef__":true,"id":11326}},"11310":{"varMapping":{"__isSmartRef__":true,"id":11311},"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":11312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11311":{"this":{"__isSmartRef__":true,"id":11260}},"11312":{},"11313":{"varMapping":{"__isSmartRef__":true,"id":11314},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11314":{"this":{"__isSmartRef__":true,"id":11260},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11315}},"11315":{"$super":{"__isSmartRef__":true,"id":11316}},"11316":{"varMapping":{"__isSmartRef__":true,"id":11317},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11317":{"obj":{"__isSmartRef__":true,"id":11260},"name":"onMouseDown"},"11318":{},"11319":{},"11320":{"varMapping":{"__isSmartRef__":true,"id":11321},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11321":{"this":{"__isSmartRef__":true,"id":11260}},"11322":{},"11323":{"varMapping":{"__isSmartRef__":true,"id":11324},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11324":{"this":{"__isSmartRef__":true,"id":11260}},"11325":{},"11326":{"varMapping":{"__isSmartRef__":true,"id":11327},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11327":{"this":{"__isSmartRef__":true,"id":11260}},"11328":{},"11329":{"_Position":{"__isSmartRef__":true,"id":11330},"renderContextTable":{"__isSmartRef__":true,"id":11331},"_Extent":{"__isSmartRef__":true,"id":11332},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11333},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11330":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11331":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11332":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11333":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11334":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11335":{"morph":{"__isSmartRef__":true,"id":11259},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11336":{"layouter":{"__isSmartRef__":true,"id":11337},"resizeWidth":true},"11337":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11259},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11338":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11339":{"x":0,"y":520,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11340":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11341}},"11341":{"varMapping":{"__isSmartRef__":true,"id":11342},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11342":{"this":{"__isSmartRef__":true,"id":11259},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11343}},"11343":{"$super":{"__isSmartRef__":true,"id":11344}},"11344":{"varMapping":{"__isSmartRef__":true,"id":11345},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11345":{"obj":{"__isSmartRef__":true,"id":11259},"name":"getLayoutableSubmorphs"},"11346":{},"11347":{},"11348":{"submorphs":[{"__isSmartRef__":true,"id":11349}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11418},"derivationIds":[null],"id":"FA03D66C-5B3A-4DCA-AAB2-3EB4EB207374","renderContextTable":{"__isSmartRef__":true,"id":11423},"eventHandler":{"__isSmartRef__":true,"id":11424},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11425},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11427},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11428},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11429},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11349":{"submorphs":[{"__isSmartRef__":true,"id":11350},{"__isSmartRef__":true,"id":11371}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11388},"derivationIds":[null],"id":"93DBB52B-5DAF-4936-A97F-18BDE233E473","renderContextTable":{"__isSmartRef__":true,"id":11393},"eventHandler":{"__isSmartRef__":true,"id":11394},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11395},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"halos","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11350},"text":{"__isSmartRef__":true,"id":11371},"owner":{"__isSmartRef__":true,"id":11348},"_Position":{"__isSmartRef__":true,"id":11396},"priorExtent":{"__isSmartRef__":true,"id":11397},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11398},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11350":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11351},"derivationIds":[null],"id":"6CEF2B57-4461-4DE7-A06C-04FD2B8A7D44","renderContextTable":{"__isSmartRef__":true,"id":11357},"eventHandler":{"__isSmartRef__":true,"id":11358},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11359},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11349},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11360},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11351":{"_Position":{"__isSmartRef__":true,"id":11352},"renderContextTable":{"__isSmartRef__":true,"id":11353},"_Extent":{"__isSmartRef__":true,"id":11354},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11355},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11356},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11352":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11353":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11354":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11355":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11356":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11357":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11358":{"morph":{"__isSmartRef__":true,"id":11350},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11359":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11360":{"toggle":{"__isSmartRef__":true,"id":11361},"toggleExpansion":{"__isSmartRef__":true,"id":11368}},"11361":{"varMapping":{"__isSmartRef__":true,"id":11362},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11362":{"this":{"__isSmartRef__":true,"id":11350},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11363}},"11363":{"$super":{"__isSmartRef__":true,"id":11364}},"11364":{"varMapping":{"__isSmartRef__":true,"id":11365},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11365":{"obj":{"__isSmartRef__":true,"id":11350},"name":"toggle"},"11366":{},"11367":{},"11368":{"varMapping":{"__isSmartRef__":true,"id":11369},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11369":{"this":{"__isSmartRef__":true,"id":11350}},"11370":{},"11371":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11372},"derivationIds":[null],"id":"C97B1313-2BB0-423A-903B-697E1AF61011","renderContextTable":{"__isSmartRef__":true,"id":11376},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11377},{"__isSmartRef__":true,"id":11379}],"eventHandler":{"__isSmartRef__":true,"id":11381},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11382},"priorExtent":{"__isSmartRef__":true,"id":11383},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11349},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11384},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11372":{"_Position":{"__isSmartRef__":true,"id":11373},"renderContextTable":{"__isSmartRef__":true,"id":11374},"_Extent":{"__isSmartRef__":true,"id":11375},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11373":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11374":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11375":{"x":75.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11376":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11377":{"style":{"__isSmartRef__":true,"id":11378},"chunkOwner":{"__isSmartRef__":true,"id":11371},"storedString":"halos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11378":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11379":{"style":{"__isSmartRef__":true,"id":11380},"chunkOwner":{"__isSmartRef__":true,"id":11371},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11380":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11381":{"morph":{"__isSmartRef__":true,"id":11371},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11382":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11383":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11384":{"layoutText":{"__isSmartRef__":true,"id":11385}},"11385":{"varMapping":{"__isSmartRef__":true,"id":11386},"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":11387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11386":{"this":{"__isSmartRef__":true,"id":11371}},"11387":{},"11388":{"_Position":{"__isSmartRef__":true,"id":11389},"renderContextTable":{"__isSmartRef__":true,"id":11390},"_Extent":{"__isSmartRef__":true,"id":11391},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11392},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11389":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11390":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11391":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11392":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11393":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11394":{"morph":{"__isSmartRef__":true,"id":11349},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11395":{"resizeWidth":true},"11396":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11397":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11398":{"updateExpanderColor":{"__isSmartRef__":true,"id":11399},"onMouseDown":{"__isSmartRef__":true,"id":11402},"isRoot":{"__isSmartRef__":true,"id":11409},"displayValue":{"__isSmartRef__":true,"id":11412},"update":{"__isSmartRef__":true,"id":11415}},"11399":{"varMapping":{"__isSmartRef__":true,"id":11400},"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":11401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11400":{"this":{"__isSmartRef__":true,"id":11349}},"11401":{},"11402":{"varMapping":{"__isSmartRef__":true,"id":11403},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11403":{"this":{"__isSmartRef__":true,"id":11349},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11404}},"11404":{"$super":{"__isSmartRef__":true,"id":11405}},"11405":{"varMapping":{"__isSmartRef__":true,"id":11406},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11406":{"obj":{"__isSmartRef__":true,"id":11349},"name":"onMouseDown"},"11407":{},"11408":{},"11409":{"varMapping":{"__isSmartRef__":true,"id":11410},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11410":{"this":{"__isSmartRef__":true,"id":11349}},"11411":{},"11412":{"varMapping":{"__isSmartRef__":true,"id":11413},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11413":{"this":{"__isSmartRef__":true,"id":11349}},"11414":{},"11415":{"varMapping":{"__isSmartRef__":true,"id":11416},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11416":{"this":{"__isSmartRef__":true,"id":11349}},"11417":{},"11418":{"_Position":{"__isSmartRef__":true,"id":11419},"renderContextTable":{"__isSmartRef__":true,"id":11420},"_Extent":{"__isSmartRef__":true,"id":11421},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11422},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11419":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11420":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11421":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11422":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11423":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11424":{"morph":{"__isSmartRef__":true,"id":11348},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11425":{"layouter":{"__isSmartRef__":true,"id":11426},"resizeWidth":true},"11426":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11348},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11427":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11428":{"x":0,"y":540,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11429":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11430}},"11430":{"varMapping":{"__isSmartRef__":true,"id":11431},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11431":{"this":{"__isSmartRef__":true,"id":11348},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11432}},"11432":{"$super":{"__isSmartRef__":true,"id":11433}},"11433":{"varMapping":{"__isSmartRef__":true,"id":11434},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11434":{"obj":{"__isSmartRef__":true,"id":11348},"name":"getLayoutableSubmorphs"},"11435":{},"11436":{},"11437":{"submorphs":[{"__isSmartRef__":true,"id":11438}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11507},"derivationIds":[null],"id":"FBFFCB5D-47C7-4B0C-8C51-577B39C1EE9C","renderContextTable":{"__isSmartRef__":true,"id":11512},"eventHandler":{"__isSmartRef__":true,"id":11513},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11514},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11516},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11517},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11518},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11438":{"submorphs":[{"__isSmartRef__":true,"id":11439},{"__isSmartRef__":true,"id":11460}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11477},"derivationIds":[null],"id":"D54B1D2E-21B5-491F-B3DF-DD3BD57C4879","renderContextTable":{"__isSmartRef__":true,"id":11482},"eventHandler":{"__isSmartRef__":true,"id":11483},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11484},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"halosEnabled","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11439},"text":{"__isSmartRef__":true,"id":11460},"owner":{"__isSmartRef__":true,"id":11437},"_Position":{"__isSmartRef__":true,"id":11485},"priorExtent":{"__isSmartRef__":true,"id":11486},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11487},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11439":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11440},"derivationIds":[null],"id":"3FE96FE2-C697-4820-A9EB-31E4E83A1720","renderContextTable":{"__isSmartRef__":true,"id":11446},"eventHandler":{"__isSmartRef__":true,"id":11447},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11448},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11438},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11449},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11440":{"_Position":{"__isSmartRef__":true,"id":11441},"renderContextTable":{"__isSmartRef__":true,"id":11442},"_Extent":{"__isSmartRef__":true,"id":11443},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11444},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11445},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11441":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11442":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11443":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11444":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11445":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11446":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11447":{"morph":{"__isSmartRef__":true,"id":11439},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11448":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11449":{"toggle":{"__isSmartRef__":true,"id":11450},"toggleExpansion":{"__isSmartRef__":true,"id":11457}},"11450":{"varMapping":{"__isSmartRef__":true,"id":11451},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11451":{"this":{"__isSmartRef__":true,"id":11439},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11452}},"11452":{"$super":{"__isSmartRef__":true,"id":11453}},"11453":{"varMapping":{"__isSmartRef__":true,"id":11454},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11454":{"obj":{"__isSmartRef__":true,"id":11439},"name":"toggle"},"11455":{},"11456":{},"11457":{"varMapping":{"__isSmartRef__":true,"id":11458},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11458":{"this":{"__isSmartRef__":true,"id":11439}},"11459":{},"11460":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11461},"derivationIds":[null],"id":"8965A984-F663-43A0-8526-8973EB1BF1E5","renderContextTable":{"__isSmartRef__":true,"id":11465},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11466},{"__isSmartRef__":true,"id":11468}],"eventHandler":{"__isSmartRef__":true,"id":11470},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11471},"priorExtent":{"__isSmartRef__":true,"id":11472},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11438},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11473},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11461":{"_Position":{"__isSmartRef__":true,"id":11462},"renderContextTable":{"__isSmartRef__":true,"id":11463},"_Extent":{"__isSmartRef__":true,"id":11464},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11462":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11463":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11464":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11465":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11466":{"style":{"__isSmartRef__":true,"id":11467},"chunkOwner":{"__isSmartRef__":true,"id":11460},"storedString":"halosEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11467":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11468":{"style":{"__isSmartRef__":true,"id":11469},"chunkOwner":{"__isSmartRef__":true,"id":11460},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11469":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11470":{"morph":{"__isSmartRef__":true,"id":11460},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11471":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11472":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11473":{"layoutText":{"__isSmartRef__":true,"id":11474}},"11474":{"varMapping":{"__isSmartRef__":true,"id":11475},"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":11476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11475":{"this":{"__isSmartRef__":true,"id":11460}},"11476":{},"11477":{"_Position":{"__isSmartRef__":true,"id":11478},"renderContextTable":{"__isSmartRef__":true,"id":11479},"_Extent":{"__isSmartRef__":true,"id":11480},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11481},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11478":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11479":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11480":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11481":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11482":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11483":{"morph":{"__isSmartRef__":true,"id":11438},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11484":{"resizeWidth":true},"11485":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11486":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11487":{"updateExpanderColor":{"__isSmartRef__":true,"id":11488},"onMouseDown":{"__isSmartRef__":true,"id":11491},"isRoot":{"__isSmartRef__":true,"id":11498},"displayValue":{"__isSmartRef__":true,"id":11501},"update":{"__isSmartRef__":true,"id":11504}},"11488":{"varMapping":{"__isSmartRef__":true,"id":11489},"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":11490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11489":{"this":{"__isSmartRef__":true,"id":11438}},"11490":{},"11491":{"varMapping":{"__isSmartRef__":true,"id":11492},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11492":{"this":{"__isSmartRef__":true,"id":11438},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11493}},"11493":{"$super":{"__isSmartRef__":true,"id":11494}},"11494":{"varMapping":{"__isSmartRef__":true,"id":11495},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11495":{"obj":{"__isSmartRef__":true,"id":11438},"name":"onMouseDown"},"11496":{},"11497":{},"11498":{"varMapping":{"__isSmartRef__":true,"id":11499},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11499":{"this":{"__isSmartRef__":true,"id":11438}},"11500":{},"11501":{"varMapping":{"__isSmartRef__":true,"id":11502},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11502":{"this":{"__isSmartRef__":true,"id":11438}},"11503":{},"11504":{"varMapping":{"__isSmartRef__":true,"id":11505},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11505":{"this":{"__isSmartRef__":true,"id":11438}},"11506":{},"11507":{"_Position":{"__isSmartRef__":true,"id":11508},"renderContextTable":{"__isSmartRef__":true,"id":11509},"_Extent":{"__isSmartRef__":true,"id":11510},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11511},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11508":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11509":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11510":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11511":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11512":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11513":{"morph":{"__isSmartRef__":true,"id":11437},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11514":{"layouter":{"__isSmartRef__":true,"id":11515},"resizeWidth":true},"11515":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11437},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11516":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11517":{"x":0,"y":560,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11518":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11519}},"11519":{"varMapping":{"__isSmartRef__":true,"id":11520},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11520":{"this":{"__isSmartRef__":true,"id":11437},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11521}},"11521":{"$super":{"__isSmartRef__":true,"id":11522}},"11522":{"varMapping":{"__isSmartRef__":true,"id":11523},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11523":{"obj":{"__isSmartRef__":true,"id":11437},"name":"getLayoutableSubmorphs"},"11524":{},"11525":{},"11526":{"submorphs":[{"__isSmartRef__":true,"id":11527}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11596},"derivationIds":[null],"id":"816FA585-19D8-475C-A7C6-AD1E63EA2B09","renderContextTable":{"__isSmartRef__":true,"id":11601},"eventHandler":{"__isSmartRef__":true,"id":11602},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11603},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11605},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11606},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11607},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11527":{"submorphs":[{"__isSmartRef__":true,"id":11528},{"__isSmartRef__":true,"id":11549}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11566},"derivationIds":[null],"id":"D29C941C-7306-4F03-BD3B-DE19D6084E97","renderContextTable":{"__isSmartRef__":true,"id":11571},"eventHandler":{"__isSmartRef__":true,"id":11572},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11573},"grabbingEnabled":false,"draggingEnabled":false,"data":"3B34C230-D44E-438D-BF06-B005E3D953B7","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":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"id","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11528},"text":{"__isSmartRef__":true,"id":11549},"owner":{"__isSmartRef__":true,"id":11526},"_Position":{"__isSmartRef__":true,"id":11574},"priorExtent":{"__isSmartRef__":true,"id":11575},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11576},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11528":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11529},"derivationIds":[null],"id":"0F853F60-F992-495C-A944-6FA4F8D453FE","renderContextTable":{"__isSmartRef__":true,"id":11535},"eventHandler":{"__isSmartRef__":true,"id":11536},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11537},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11538},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11529":{"_Position":{"__isSmartRef__":true,"id":11530},"renderContextTable":{"__isSmartRef__":true,"id":11531},"_Extent":{"__isSmartRef__":true,"id":11532},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11533},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11534},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11530":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11531":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11532":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11533":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11534":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11535":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11536":{"morph":{"__isSmartRef__":true,"id":11528},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11537":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11538":{"toggle":{"__isSmartRef__":true,"id":11539},"toggleExpansion":{"__isSmartRef__":true,"id":11546}},"11539":{"varMapping":{"__isSmartRef__":true,"id":11540},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11540":{"this":{"__isSmartRef__":true,"id":11528},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11541}},"11541":{"$super":{"__isSmartRef__":true,"id":11542}},"11542":{"varMapping":{"__isSmartRef__":true,"id":11543},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11543":{"obj":{"__isSmartRef__":true,"id":11528},"name":"toggle"},"11544":{},"11545":{},"11546":{"varMapping":{"__isSmartRef__":true,"id":11547},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11547":{"this":{"__isSmartRef__":true,"id":11528}},"11548":{},"11549":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11550},"derivationIds":[null],"id":"1A725078-E0EA-4205-8F80-56255DBBCA4A","renderContextTable":{"__isSmartRef__":true,"id":11554},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11555},{"__isSmartRef__":true,"id":11557}],"eventHandler":{"__isSmartRef__":true,"id":11559},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11560},"priorExtent":{"__isSmartRef__":true,"id":11561},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11562},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11550":{"_Position":{"__isSmartRef__":true,"id":11551},"renderContextTable":{"__isSmartRef__":true,"id":11552},"_Extent":{"__isSmartRef__":true,"id":11553},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11551":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11552":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11553":{"x":308,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11554":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11555":{"style":{"__isSmartRef__":true,"id":11556},"chunkOwner":{"__isSmartRef__":true,"id":11549},"storedString":"id","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11556":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11557":{"style":{"__isSmartRef__":true,"id":11558},"chunkOwner":{"__isSmartRef__":true,"id":11549},"storedString":": 3B34C230-D44E-438D-BF06-B005E3D953B7","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11558":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11559":{"morph":{"__isSmartRef__":true,"id":11549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11560":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11561":{"x":300,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11562":{"layoutText":{"__isSmartRef__":true,"id":11563}},"11563":{"varMapping":{"__isSmartRef__":true,"id":11564},"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":11565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11564":{"this":{"__isSmartRef__":true,"id":11549}},"11565":{},"11566":{"_Position":{"__isSmartRef__":true,"id":11567},"renderContextTable":{"__isSmartRef__":true,"id":11568},"_Extent":{"__isSmartRef__":true,"id":11569},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11570},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11567":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11568":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11569":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11570":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11571":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11572":{"morph":{"__isSmartRef__":true,"id":11527},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11573":{"resizeWidth":true},"11574":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11575":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11576":{"updateExpanderColor":{"__isSmartRef__":true,"id":11577},"onMouseDown":{"__isSmartRef__":true,"id":11580},"isRoot":{"__isSmartRef__":true,"id":11587},"displayValue":{"__isSmartRef__":true,"id":11590},"update":{"__isSmartRef__":true,"id":11593}},"11577":{"varMapping":{"__isSmartRef__":true,"id":11578},"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":11579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11578":{"this":{"__isSmartRef__":true,"id":11527}},"11579":{},"11580":{"varMapping":{"__isSmartRef__":true,"id":11581},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11581":{"this":{"__isSmartRef__":true,"id":11527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11582}},"11582":{"$super":{"__isSmartRef__":true,"id":11583}},"11583":{"varMapping":{"__isSmartRef__":true,"id":11584},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11584":{"obj":{"__isSmartRef__":true,"id":11527},"name":"onMouseDown"},"11585":{},"11586":{},"11587":{"varMapping":{"__isSmartRef__":true,"id":11588},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11588":{"this":{"__isSmartRef__":true,"id":11527}},"11589":{},"11590":{"varMapping":{"__isSmartRef__":true,"id":11591},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11591":{"this":{"__isSmartRef__":true,"id":11527}},"11592":{},"11593":{"varMapping":{"__isSmartRef__":true,"id":11594},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11594":{"this":{"__isSmartRef__":true,"id":11527}},"11595":{},"11596":{"_Position":{"__isSmartRef__":true,"id":11597},"renderContextTable":{"__isSmartRef__":true,"id":11598},"_Extent":{"__isSmartRef__":true,"id":11599},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11600},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11597":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11598":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11599":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11600":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11601":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11602":{"morph":{"__isSmartRef__":true,"id":11526},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11603":{"layouter":{"__isSmartRef__":true,"id":11604},"resizeWidth":true},"11604":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11526},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11605":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11606":{"x":0,"y":580,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11607":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11608}},"11608":{"varMapping":{"__isSmartRef__":true,"id":11609},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11609":{"this":{"__isSmartRef__":true,"id":11526},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11610}},"11610":{"$super":{"__isSmartRef__":true,"id":11611}},"11611":{"varMapping":{"__isSmartRef__":true,"id":11612},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11612":{"obj":{"__isSmartRef__":true,"id":11526},"name":"getLayoutableSubmorphs"},"11613":{},"11614":{},"11615":{"submorphs":[{"__isSmartRef__":true,"id":11616}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11685},"derivationIds":[null],"id":"CAE53A5F-2CCB-4674-832A-25BAF814AA8B","renderContextTable":{"__isSmartRef__":true,"id":11690},"eventHandler":{"__isSmartRef__":true,"id":11691},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11692},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11694},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11695},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11696},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11616":{"submorphs":[{"__isSmartRef__":true,"id":11617},{"__isSmartRef__":true,"id":11638}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11655},"derivationIds":[null],"id":"96C178C4-4ACC-4189-8E6A-7AFE9D8446E2","renderContextTable":{"__isSmartRef__":true,"id":11660},"eventHandler":{"__isSmartRef__":true,"id":11661},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11662},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"isBeingDragged","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11617},"text":{"__isSmartRef__":true,"id":11638},"owner":{"__isSmartRef__":true,"id":11615},"_Position":{"__isSmartRef__":true,"id":11663},"priorExtent":{"__isSmartRef__":true,"id":11664},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11665},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11617":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11618},"derivationIds":[null],"id":"D470CE8B-09AF-4D0A-ACBF-1207945F0A98","renderContextTable":{"__isSmartRef__":true,"id":11624},"eventHandler":{"__isSmartRef__":true,"id":11625},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11626},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11616},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11627},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11618":{"_Position":{"__isSmartRef__":true,"id":11619},"renderContextTable":{"__isSmartRef__":true,"id":11620},"_Extent":{"__isSmartRef__":true,"id":11621},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11622},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11623},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11619":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11620":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11621":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11622":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11623":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11624":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11625":{"morph":{"__isSmartRef__":true,"id":11617},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11626":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11627":{"toggle":{"__isSmartRef__":true,"id":11628},"toggleExpansion":{"__isSmartRef__":true,"id":11635}},"11628":{"varMapping":{"__isSmartRef__":true,"id":11629},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11629":{"this":{"__isSmartRef__":true,"id":11617},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11630}},"11630":{"$super":{"__isSmartRef__":true,"id":11631}},"11631":{"varMapping":{"__isSmartRef__":true,"id":11632},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11632":{"obj":{"__isSmartRef__":true,"id":11617},"name":"toggle"},"11633":{},"11634":{},"11635":{"varMapping":{"__isSmartRef__":true,"id":11636},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11636":{"this":{"__isSmartRef__":true,"id":11617}},"11637":{},"11638":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11639},"derivationIds":[null],"id":"A274E781-65FC-457A-B29A-0AA8B48B0E76","renderContextTable":{"__isSmartRef__":true,"id":11643},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11644},{"__isSmartRef__":true,"id":11646}],"eventHandler":{"__isSmartRef__":true,"id":11648},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11649},"priorExtent":{"__isSmartRef__":true,"id":11650},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11616},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11651},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11639":{"_Position":{"__isSmartRef__":true,"id":11640},"renderContextTable":{"__isSmartRef__":true,"id":11641},"_Extent":{"__isSmartRef__":true,"id":11642},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11640":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11641":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11642":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11643":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11644":{"style":{"__isSmartRef__":true,"id":11645},"chunkOwner":{"__isSmartRef__":true,"id":11638},"storedString":"isBeingDragged","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11645":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11646":{"style":{"__isSmartRef__":true,"id":11647},"chunkOwner":{"__isSmartRef__":true,"id":11638},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11647":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11648":{"morph":{"__isSmartRef__":true,"id":11638},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11649":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11650":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11651":{"layoutText":{"__isSmartRef__":true,"id":11652}},"11652":{"varMapping":{"__isSmartRef__":true,"id":11653},"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":11654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11653":{"this":{"__isSmartRef__":true,"id":11638}},"11654":{},"11655":{"_Position":{"__isSmartRef__":true,"id":11656},"renderContextTable":{"__isSmartRef__":true,"id":11657},"_Extent":{"__isSmartRef__":true,"id":11658},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11656":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11657":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11658":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11659":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__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","adjustOrigin":"adjustOriginHTML","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":11616},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11662":{"resizeWidth":true},"11663":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11664":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11665":{"updateExpanderColor":{"__isSmartRef__":true,"id":11666},"onMouseDown":{"__isSmartRef__":true,"id":11669},"isRoot":{"__isSmartRef__":true,"id":11676},"displayValue":{"__isSmartRef__":true,"id":11679},"update":{"__isSmartRef__":true,"id":11682}},"11666":{"varMapping":{"__isSmartRef__":true,"id":11667},"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":11668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11667":{"this":{"__isSmartRef__":true,"id":11616}},"11668":{},"11669":{"varMapping":{"__isSmartRef__":true,"id":11670},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11670":{"this":{"__isSmartRef__":true,"id":11616},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11671}},"11671":{"$super":{"__isSmartRef__":true,"id":11672}},"11672":{"varMapping":{"__isSmartRef__":true,"id":11673},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11673":{"obj":{"__isSmartRef__":true,"id":11616},"name":"onMouseDown"},"11674":{},"11675":{},"11676":{"varMapping":{"__isSmartRef__":true,"id":11677},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11677":{"this":{"__isSmartRef__":true,"id":11616}},"11678":{},"11679":{"varMapping":{"__isSmartRef__":true,"id":11680},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11680":{"this":{"__isSmartRef__":true,"id":11616}},"11681":{},"11682":{"varMapping":{"__isSmartRef__":true,"id":11683},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11683":{"this":{"__isSmartRef__":true,"id":11616}},"11684":{},"11685":{"_Position":{"__isSmartRef__":true,"id":11686},"renderContextTable":{"__isSmartRef__":true,"id":11687},"_Extent":{"__isSmartRef__":true,"id":11688},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11689},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11686":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11687":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11688":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11689":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11690":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11691":{"morph":{"__isSmartRef__":true,"id":11615},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11692":{"layouter":{"__isSmartRef__":true,"id":11693},"resizeWidth":true},"11693":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11615},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11694":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11695":{"x":0,"y":600,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11696":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11697}},"11697":{"varMapping":{"__isSmartRef__":true,"id":11698},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11698":{"this":{"__isSmartRef__":true,"id":11615},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11699}},"11699":{"$super":{"__isSmartRef__":true,"id":11700}},"11700":{"varMapping":{"__isSmartRef__":true,"id":11701},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11701":{"obj":{"__isSmartRef__":true,"id":11615},"name":"getLayoutableSubmorphs"},"11702":{},"11703":{},"11704":{"submorphs":[{"__isSmartRef__":true,"id":11705}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11774},"derivationIds":[null],"id":"BBCA8702-2FEC-45D0-B652-ACCC3ED3668A","renderContextTable":{"__isSmartRef__":true,"id":11779},"eventHandler":{"__isSmartRef__":true,"id":11780},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11781},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11783},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11784},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11785},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11705":{"submorphs":[{"__isSmartRef__":true,"id":11706},{"__isSmartRef__":true,"id":11727}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11744},"derivationIds":[null],"id":"919AEE3A-052C-44D3-9130-64D13D4EACCE","renderContextTable":{"__isSmartRef__":true,"id":11749},"eventHandler":{"__isSmartRef__":true,"id":11750},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11751},"grabbingEnabled":false,"draggingEnabled":false,"data":11,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"lastFindLoc","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11706},"text":{"__isSmartRef__":true,"id":11727},"owner":{"__isSmartRef__":true,"id":11704},"_Position":{"__isSmartRef__":true,"id":11752},"priorExtent":{"__isSmartRef__":true,"id":11753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11754},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11706":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11707},"derivationIds":[null],"id":"9103078E-A1A7-432D-8E30-92CA8D1FBEA5","renderContextTable":{"__isSmartRef__":true,"id":11713},"eventHandler":{"__isSmartRef__":true,"id":11714},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11715},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11705},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11716},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11707":{"_Position":{"__isSmartRef__":true,"id":11708},"renderContextTable":{"__isSmartRef__":true,"id":11709},"_Extent":{"__isSmartRef__":true,"id":11710},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11711},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11712},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11708":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11709":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11710":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11711":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11712":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11713":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11714":{"morph":{"__isSmartRef__":true,"id":11706},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11715":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11716":{"toggle":{"__isSmartRef__":true,"id":11717},"toggleExpansion":{"__isSmartRef__":true,"id":11724}},"11717":{"varMapping":{"__isSmartRef__":true,"id":11718},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11718":{"this":{"__isSmartRef__":true,"id":11706},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11719}},"11719":{"$super":{"__isSmartRef__":true,"id":11720}},"11720":{"varMapping":{"__isSmartRef__":true,"id":11721},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11721":{"obj":{"__isSmartRef__":true,"id":11706},"name":"toggle"},"11722":{},"11723":{},"11724":{"varMapping":{"__isSmartRef__":true,"id":11725},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11725":{"this":{"__isSmartRef__":true,"id":11706}},"11726":{},"11727":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11728},"derivationIds":[null],"id":"C46561BF-D773-4B81-8B3F-B12C0BE62029","renderContextTable":{"__isSmartRef__":true,"id":11732},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11733},{"__isSmartRef__":true,"id":11735}],"eventHandler":{"__isSmartRef__":true,"id":11737},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11738},"priorExtent":{"__isSmartRef__":true,"id":11739},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11705},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11740},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11728":{"_Position":{"__isSmartRef__":true,"id":11729},"renderContextTable":{"__isSmartRef__":true,"id":11730},"_Extent":{"__isSmartRef__":true,"id":11731},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11729":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11730":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11731":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11732":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11733":{"style":{"__isSmartRef__":true,"id":11734},"chunkOwner":{"__isSmartRef__":true,"id":11727},"storedString":"lastFindLoc","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11734":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11735":{"style":{"__isSmartRef__":true,"id":11736},"chunkOwner":{"__isSmartRef__":true,"id":11727},"storedString":": 11","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11736":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11737":{"morph":{"__isSmartRef__":true,"id":11727},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11738":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11739":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11740":{"layoutText":{"__isSmartRef__":true,"id":11741}},"11741":{"varMapping":{"__isSmartRef__":true,"id":11742},"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":11743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11742":{"this":{"__isSmartRef__":true,"id":11727}},"11743":{},"11744":{"_Position":{"__isSmartRef__":true,"id":11745},"renderContextTable":{"__isSmartRef__":true,"id":11746},"_Extent":{"__isSmartRef__":true,"id":11747},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11748},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11745":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11746":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11747":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11748":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11749":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11750":{"morph":{"__isSmartRef__":true,"id":11705},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11751":{"resizeWidth":true},"11752":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11753":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11754":{"updateExpanderColor":{"__isSmartRef__":true,"id":11755},"onMouseDown":{"__isSmartRef__":true,"id":11758},"isRoot":{"__isSmartRef__":true,"id":11765},"displayValue":{"__isSmartRef__":true,"id":11768},"update":{"__isSmartRef__":true,"id":11771}},"11755":{"varMapping":{"__isSmartRef__":true,"id":11756},"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":11757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11756":{"this":{"__isSmartRef__":true,"id":11705}},"11757":{},"11758":{"varMapping":{"__isSmartRef__":true,"id":11759},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11759":{"this":{"__isSmartRef__":true,"id":11705},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11760}},"11760":{"$super":{"__isSmartRef__":true,"id":11761}},"11761":{"varMapping":{"__isSmartRef__":true,"id":11762},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11762":{"obj":{"__isSmartRef__":true,"id":11705},"name":"onMouseDown"},"11763":{},"11764":{},"11765":{"varMapping":{"__isSmartRef__":true,"id":11766},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11766":{"this":{"__isSmartRef__":true,"id":11705}},"11767":{},"11768":{"varMapping":{"__isSmartRef__":true,"id":11769},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11769":{"this":{"__isSmartRef__":true,"id":11705}},"11770":{},"11771":{"varMapping":{"__isSmartRef__":true,"id":11772},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11772":{"this":{"__isSmartRef__":true,"id":11705}},"11773":{},"11774":{"_Position":{"__isSmartRef__":true,"id":11775},"renderContextTable":{"__isSmartRef__":true,"id":11776},"_Extent":{"__isSmartRef__":true,"id":11777},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11778},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11775":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11776":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11777":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11778":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11779":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11780":{"morph":{"__isSmartRef__":true,"id":11704},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11781":{"layouter":{"__isSmartRef__":true,"id":11782},"resizeWidth":true},"11782":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11704},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11783":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11784":{"x":0,"y":620,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11785":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11786}},"11786":{"varMapping":{"__isSmartRef__":true,"id":11787},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11787":{"this":{"__isSmartRef__":true,"id":11704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11788}},"11788":{"$super":{"__isSmartRef__":true,"id":11789}},"11789":{"varMapping":{"__isSmartRef__":true,"id":11790},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11790":{"obj":{"__isSmartRef__":true,"id":11704},"name":"getLayoutableSubmorphs"},"11791":{},"11792":{},"11793":{"submorphs":[{"__isSmartRef__":true,"id":11794}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11863},"derivationIds":[null],"id":"C5BF52C7-AD37-4E67-8614-7BCA2399A012","renderContextTable":{"__isSmartRef__":true,"id":11868},"eventHandler":{"__isSmartRef__":true,"id":11869},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11870},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11872},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11873},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11874},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11794":{"submorphs":[{"__isSmartRef__":true,"id":11795},{"__isSmartRef__":true,"id":11816}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11833},"derivationIds":[null],"id":"C555EC37-D356-4864-B037-54D6F2818C5E","renderContextTable":{"__isSmartRef__":true,"id":11838},"eventHandler":{"__isSmartRef__":true,"id":11839},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11840},"grabbingEnabled":false,"draggingEnabled":false,"data":"[2;1]","propertyList":["0","1","2","3","4"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"name","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11795},"text":{"__isSmartRef__":true,"id":11816},"owner":{"__isSmartRef__":true,"id":11793},"_Position":{"__isSmartRef__":true,"id":11841},"priorExtent":{"__isSmartRef__":true,"id":11842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11795":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11796},"derivationIds":[null],"id":"71695D85-3A01-4B28-9BFC-E2BC4424FA4F","renderContextTable":{"__isSmartRef__":true,"id":11802},"eventHandler":{"__isSmartRef__":true,"id":11803},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11804},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11794},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11805},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11796":{"_Position":{"__isSmartRef__":true,"id":11797},"renderContextTable":{"__isSmartRef__":true,"id":11798},"_Extent":{"__isSmartRef__":true,"id":11799},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11800},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11801},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11797":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11798":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11799":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11800":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11801":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11802":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11803":{"morph":{"__isSmartRef__":true,"id":11795},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11804":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11805":{"toggle":{"__isSmartRef__":true,"id":11806},"toggleExpansion":{"__isSmartRef__":true,"id":11813}},"11806":{"varMapping":{"__isSmartRef__":true,"id":11807},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11807":{"this":{"__isSmartRef__":true,"id":11795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11808}},"11808":{"$super":{"__isSmartRef__":true,"id":11809}},"11809":{"varMapping":{"__isSmartRef__":true,"id":11810},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11810":{"obj":{"__isSmartRef__":true,"id":11795},"name":"toggle"},"11811":{},"11812":{},"11813":{"varMapping":{"__isSmartRef__":true,"id":11814},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11814":{"this":{"__isSmartRef__":true,"id":11795}},"11815":{},"11816":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11817},"derivationIds":[null],"id":"49C75714-6A56-400C-9B26-85A358AEBF9D","renderContextTable":{"__isSmartRef__":true,"id":11821},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11822},{"__isSmartRef__":true,"id":11824}],"eventHandler":{"__isSmartRef__":true,"id":11826},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11827},"priorExtent":{"__isSmartRef__":true,"id":11828},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11794},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11829},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11817":{"_Position":{"__isSmartRef__":true,"id":11818},"renderContextTable":{"__isSmartRef__":true,"id":11819},"_Extent":{"__isSmartRef__":true,"id":11820},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11818":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11819":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11820":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11821":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11822":{"style":{"__isSmartRef__":true,"id":11823},"chunkOwner":{"__isSmartRef__":true,"id":11816},"storedString":"name","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11823":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11824":{"style":{"__isSmartRef__":true,"id":11825},"chunkOwner":{"__isSmartRef__":true,"id":11816},"storedString":": [2;1]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11825":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11826":{"morph":{"__isSmartRef__":true,"id":11816},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11827":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11828":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11829":{"layoutText":{"__isSmartRef__":true,"id":11830}},"11830":{"varMapping":{"__isSmartRef__":true,"id":11831},"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":11832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11831":{"this":{"__isSmartRef__":true,"id":11816}},"11832":{},"11833":{"_Position":{"__isSmartRef__":true,"id":11834},"renderContextTable":{"__isSmartRef__":true,"id":11835},"_Extent":{"__isSmartRef__":true,"id":11836},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11837},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11834":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11835":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11836":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11837":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11838":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11839":{"morph":{"__isSmartRef__":true,"id":11794},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11840":{"resizeWidth":true},"11841":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11842":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11843":{"updateExpanderColor":{"__isSmartRef__":true,"id":11844},"onMouseDown":{"__isSmartRef__":true,"id":11847},"isRoot":{"__isSmartRef__":true,"id":11854},"displayValue":{"__isSmartRef__":true,"id":11857},"update":{"__isSmartRef__":true,"id":11860}},"11844":{"varMapping":{"__isSmartRef__":true,"id":11845},"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":11846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11845":{"this":{"__isSmartRef__":true,"id":11794}},"11846":{},"11847":{"varMapping":{"__isSmartRef__":true,"id":11848},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11848":{"this":{"__isSmartRef__":true,"id":11794},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11849}},"11849":{"$super":{"__isSmartRef__":true,"id":11850}},"11850":{"varMapping":{"__isSmartRef__":true,"id":11851},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11851":{"obj":{"__isSmartRef__":true,"id":11794},"name":"onMouseDown"},"11852":{},"11853":{},"11854":{"varMapping":{"__isSmartRef__":true,"id":11855},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11855":{"this":{"__isSmartRef__":true,"id":11794}},"11856":{},"11857":{"varMapping":{"__isSmartRef__":true,"id":11858},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11858":{"this":{"__isSmartRef__":true,"id":11794}},"11859":{},"11860":{"varMapping":{"__isSmartRef__":true,"id":11861},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11861":{"this":{"__isSmartRef__":true,"id":11794}},"11862":{},"11863":{"_Position":{"__isSmartRef__":true,"id":11864},"renderContextTable":{"__isSmartRef__":true,"id":11865},"_Extent":{"__isSmartRef__":true,"id":11866},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11867},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11864":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11865":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11866":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11867":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11868":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11869":{"morph":{"__isSmartRef__":true,"id":11793},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11870":{"layouter":{"__isSmartRef__":true,"id":11871},"resizeWidth":true},"11871":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11793},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11872":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11873":{"x":0,"y":640,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11874":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11875}},"11875":{"varMapping":{"__isSmartRef__":true,"id":11876},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11876":{"this":{"__isSmartRef__":true,"id":11793},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11877}},"11877":{"$super":{"__isSmartRef__":true,"id":11878}},"11878":{"varMapping":{"__isSmartRef__":true,"id":11879},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11879":{"obj":{"__isSmartRef__":true,"id":11793},"name":"getLayoutableSubmorphs"},"11880":{},"11881":{},"11882":{"submorphs":[{"__isSmartRef__":true,"id":11883}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11951},"derivationIds":[null],"id":"69A56718-E07B-4978-94F0-05D5DEFB58ED","renderContextTable":{"__isSmartRef__":true,"id":11956},"eventHandler":{"__isSmartRef__":true,"id":11957},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11958},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":11960},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":11961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11962},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11883":{"submorphs":[{"__isSmartRef__":true,"id":11884},{"__isSmartRef__":true,"id":11904}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11921},"derivationIds":[null],"id":"8B3A6DAD-2E24-4A4D-A88A-209E794484C3","renderContextTable":{"__isSmartRef__":true,"id":11926},"eventHandler":{"__isSmartRef__":true,"id":11927},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":11928},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":17},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","_renderContext","eventHandler","droppingEnabled","halosEnabled","defaultCellHeight","defaultCellWidth","borderSize","colNames","numCols","numRows","activeCellContent","rows","dataModel","priorExtent","colHeads","layout","isInLayoutCycle","owner","showsHalos","halos","_Position","distanceToDragEvent","attributeConnections","doNotSerialize","doNotCopyProperties","$$activeCell","activeCell"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"owner","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11884},"text":{"__isSmartRef__":true,"id":11904},"owner":{"__isSmartRef__":true,"id":11882},"_Position":{"__isSmartRef__":true,"id":11929},"priorExtent":{"__isSmartRef__":true,"id":11930},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11931},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11884":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11885},"derivationIds":[null],"id":"3EDC8A71-1069-45EF-9CA9-ABD25BD41868","renderContextTable":{"__isSmartRef__":true,"id":11890},"eventHandler":{"__isSmartRef__":true,"id":11891},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11892},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11883},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11893},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11885":{"_Position":{"__isSmartRef__":true,"id":11886},"renderContextTable":{"__isSmartRef__":true,"id":11887},"_Extent":{"__isSmartRef__":true,"id":11888},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11889},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":5754},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11886":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11887":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11888":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11889":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11890":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11891":{"morph":{"__isSmartRef__":true,"id":11884},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11892":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11893":{"toggle":{"__isSmartRef__":true,"id":11894},"toggleExpansion":{"__isSmartRef__":true,"id":11901}},"11894":{"varMapping":{"__isSmartRef__":true,"id":11895},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11895":{"this":{"__isSmartRef__":true,"id":11884},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11896}},"11896":{"$super":{"__isSmartRef__":true,"id":11897}},"11897":{"varMapping":{"__isSmartRef__":true,"id":11898},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11898":{"obj":{"__isSmartRef__":true,"id":11884},"name":"toggle"},"11899":{},"11900":{},"11901":{"varMapping":{"__isSmartRef__":true,"id":11902},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11902":{"this":{"__isSmartRef__":true,"id":11884}},"11903":{},"11904":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11905},"derivationIds":[null],"id":"31FEA9F6-6D83-4AA5-8A08-6681C4BA5520","renderContextTable":{"__isSmartRef__":true,"id":11909},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11910},{"__isSmartRef__":true,"id":11912}],"eventHandler":{"__isSmartRef__":true,"id":11914},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":11915},"priorExtent":{"__isSmartRef__":true,"id":11916},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11883},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11917},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11905":{"_Position":{"__isSmartRef__":true,"id":11906},"renderContextTable":{"__isSmartRef__":true,"id":11907},"_Extent":{"__isSmartRef__":true,"id":11908},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11906":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11907":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11908":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11909":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11910":{"style":{"__isSmartRef__":true,"id":11911},"chunkOwner":{"__isSmartRef__":true,"id":11904},"storedString":"owner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11911":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11912":{"style":{"__isSmartRef__":true,"id":11913},"chunkOwner":{"__isSmartRef__":true,"id":11904},"storedString":": DataGrid","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11913":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11914":{"morph":{"__isSmartRef__":true,"id":11904},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11915":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11916":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11917":{"layoutText":{"__isSmartRef__":true,"id":11918}},"11918":{"varMapping":{"__isSmartRef__":true,"id":11919},"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":11920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11919":{"this":{"__isSmartRef__":true,"id":11904}},"11920":{},"11921":{"_Position":{"__isSmartRef__":true,"id":11922},"renderContextTable":{"__isSmartRef__":true,"id":11923},"_Extent":{"__isSmartRef__":true,"id":11924},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11925},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11922":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11923":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11924":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11925":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11926":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11927":{"morph":{"__isSmartRef__":true,"id":11883},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11928":{"resizeWidth":true},"11929":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11930":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11931":{"updateExpanderColor":{"__isSmartRef__":true,"id":11932},"onMouseDown":{"__isSmartRef__":true,"id":11935},"isRoot":{"__isSmartRef__":true,"id":11942},"displayValue":{"__isSmartRef__":true,"id":11945},"update":{"__isSmartRef__":true,"id":11948}},"11932":{"varMapping":{"__isSmartRef__":true,"id":11933},"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":11934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11933":{"this":{"__isSmartRef__":true,"id":11883}},"11934":{},"11935":{"varMapping":{"__isSmartRef__":true,"id":11936},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":11941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11936":{"this":{"__isSmartRef__":true,"id":11883},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11937}},"11937":{"$super":{"__isSmartRef__":true,"id":11938}},"11938":{"varMapping":{"__isSmartRef__":true,"id":11939},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11939":{"obj":{"__isSmartRef__":true,"id":11883},"name":"onMouseDown"},"11940":{},"11941":{},"11942":{"varMapping":{"__isSmartRef__":true,"id":11943},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":11944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11943":{"this":{"__isSmartRef__":true,"id":11883}},"11944":{},"11945":{"varMapping":{"__isSmartRef__":true,"id":11946},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":11947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11946":{"this":{"__isSmartRef__":true,"id":11883}},"11947":{},"11948":{"varMapping":{"__isSmartRef__":true,"id":11949},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11949":{"this":{"__isSmartRef__":true,"id":11883}},"11950":{},"11951":{"_Position":{"__isSmartRef__":true,"id":11952},"renderContextTable":{"__isSmartRef__":true,"id":11953},"_Extent":{"__isSmartRef__":true,"id":11954},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11955},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11952":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11953":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11954":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11955":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11956":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11957":{"morph":{"__isSmartRef__":true,"id":11882},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11958":{"layouter":{"__isSmartRef__":true,"id":11959},"resizeWidth":true},"11959":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11882},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"11960":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11961":{"x":0,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11962":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":11963}},"11963":{"varMapping":{"__isSmartRef__":true,"id":11964},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":11969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11964":{"this":{"__isSmartRef__":true,"id":11882},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11965}},"11965":{"$super":{"__isSmartRef__":true,"id":11966}},"11966":{"varMapping":{"__isSmartRef__":true,"id":11967},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11967":{"obj":{"__isSmartRef__":true,"id":11882},"name":"getLayoutableSubmorphs"},"11968":{},"11969":{},"11970":{"submorphs":[{"__isSmartRef__":true,"id":11971}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12040},"derivationIds":[null],"id":"F85026FA-C1C2-4E54-8254-4FE919D0BD5F","renderContextTable":{"__isSmartRef__":true,"id":12045},"eventHandler":{"__isSmartRef__":true,"id":12046},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12047},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12049},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12050},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12051},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11971":{"submorphs":[{"__isSmartRef__":true,"id":11972},{"__isSmartRef__":true,"id":11993}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12010},"derivationIds":[null],"id":"74C1FB27-F537-40DC-A174-0CEDA67BB784","renderContextTable":{"__isSmartRef__":true,"id":12015},"eventHandler":{"__isSmartRef__":true,"id":12016},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12017},"grabbingEnabled":false,"draggingEnabled":false,"data":[11,11],"propertyList":["0","1"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"previousSelection","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":11972},"text":{"__isSmartRef__":true,"id":11993},"owner":{"__isSmartRef__":true,"id":11970},"_Position":{"__isSmartRef__":true,"id":12018},"priorExtent":{"__isSmartRef__":true,"id":12019},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12020},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"11972":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11973},"derivationIds":[null],"id":"CCEE422C-15E2-4065-BB95-C466F2F5A1AA","renderContextTable":{"__isSmartRef__":true,"id":11979},"eventHandler":{"__isSmartRef__":true,"id":11980},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11981},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":11971},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11982},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"11973":{"_Position":{"__isSmartRef__":true,"id":11974},"renderContextTable":{"__isSmartRef__":true,"id":11975},"_Extent":{"__isSmartRef__":true,"id":11976},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":11977},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":11978},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11974":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11975":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11976":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11977":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"11978":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"11979":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11980":{"morph":{"__isSmartRef__":true,"id":11972},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11981":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11982":{"toggle":{"__isSmartRef__":true,"id":11983},"toggleExpansion":{"__isSmartRef__":true,"id":11990}},"11983":{"varMapping":{"__isSmartRef__":true,"id":11984},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":11989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11984":{"this":{"__isSmartRef__":true,"id":11972},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11985}},"11985":{"$super":{"__isSmartRef__":true,"id":11986}},"11986":{"varMapping":{"__isSmartRef__":true,"id":11987},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11987":{"obj":{"__isSmartRef__":true,"id":11972},"name":"toggle"},"11988":{},"11989":{},"11990":{"varMapping":{"__isSmartRef__":true,"id":11991},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":11992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"11991":{"this":{"__isSmartRef__":true,"id":11972}},"11992":{},"11993":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11994},"derivationIds":[null],"id":"ABB820C4-1C89-4D07-A620-9B0B000FD214","renderContextTable":{"__isSmartRef__":true,"id":11998},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":11999},{"__isSmartRef__":true,"id":12001}],"eventHandler":{"__isSmartRef__":true,"id":12003},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12004},"priorExtent":{"__isSmartRef__":true,"id":12005},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11971},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12006},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11994":{"_Position":{"__isSmartRef__":true,"id":11995},"renderContextTable":{"__isSmartRef__":true,"id":11996},"_Extent":{"__isSmartRef__":true,"id":11997},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"11995":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11996":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"11997":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"11998":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"11999":{"style":{"__isSmartRef__":true,"id":12000},"chunkOwner":{"__isSmartRef__":true,"id":11993},"storedString":"previousSelection","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12000":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12001":{"style":{"__isSmartRef__":true,"id":12002},"chunkOwner":{"__isSmartRef__":true,"id":11993},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12002":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12003":{"morph":{"__isSmartRef__":true,"id":11993},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12004":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12005":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12006":{"layoutText":{"__isSmartRef__":true,"id":12007}},"12007":{"varMapping":{"__isSmartRef__":true,"id":12008},"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":12009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12008":{"this":{"__isSmartRef__":true,"id":11993}},"12009":{},"12010":{"_Position":{"__isSmartRef__":true,"id":12011},"renderContextTable":{"__isSmartRef__":true,"id":12012},"_Extent":{"__isSmartRef__":true,"id":12013},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12014},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12011":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12012":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12013":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12014":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12015":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12016":{"morph":{"__isSmartRef__":true,"id":11971},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12017":{"resizeWidth":true},"12018":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12019":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12020":{"updateExpanderColor":{"__isSmartRef__":true,"id":12021},"onMouseDown":{"__isSmartRef__":true,"id":12024},"isRoot":{"__isSmartRef__":true,"id":12031},"displayValue":{"__isSmartRef__":true,"id":12034},"update":{"__isSmartRef__":true,"id":12037}},"12021":{"varMapping":{"__isSmartRef__":true,"id":12022},"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":12023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12022":{"this":{"__isSmartRef__":true,"id":11971}},"12023":{},"12024":{"varMapping":{"__isSmartRef__":true,"id":12025},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12025":{"this":{"__isSmartRef__":true,"id":11971},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12026}},"12026":{"$super":{"__isSmartRef__":true,"id":12027}},"12027":{"varMapping":{"__isSmartRef__":true,"id":12028},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12028":{"obj":{"__isSmartRef__":true,"id":11971},"name":"onMouseDown"},"12029":{},"12030":{},"12031":{"varMapping":{"__isSmartRef__":true,"id":12032},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12032":{"this":{"__isSmartRef__":true,"id":11971}},"12033":{},"12034":{"varMapping":{"__isSmartRef__":true,"id":12035},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12035":{"this":{"__isSmartRef__":true,"id":11971}},"12036":{},"12037":{"varMapping":{"__isSmartRef__":true,"id":12038},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12038":{"this":{"__isSmartRef__":true,"id":11971}},"12039":{},"12040":{"_Position":{"__isSmartRef__":true,"id":12041},"renderContextTable":{"__isSmartRef__":true,"id":12042},"_Extent":{"__isSmartRef__":true,"id":12043},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12044},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12041":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12042":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12043":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12044":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12045":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12046":{"morph":{"__isSmartRef__":true,"id":11970},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12047":{"layouter":{"__isSmartRef__":true,"id":12048},"resizeWidth":true},"12048":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":11970},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12049":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12050":{"x":0,"y":680,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12051":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12052}},"12052":{"varMapping":{"__isSmartRef__":true,"id":12053},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12053":{"this":{"__isSmartRef__":true,"id":11970},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12054}},"12054":{"$super":{"__isSmartRef__":true,"id":12055}},"12055":{"varMapping":{"__isSmartRef__":true,"id":12056},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12056":{"obj":{"__isSmartRef__":true,"id":11970},"name":"getLayoutableSubmorphs"},"12057":{},"12058":{},"12059":{"submorphs":[{"__isSmartRef__":true,"id":12060}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12129},"derivationIds":[null],"id":"794999E2-F057-4009-A801-24B1DC783E7B","renderContextTable":{"__isSmartRef__":true,"id":12134},"eventHandler":{"__isSmartRef__":true,"id":12135},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12136},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12138},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12139},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12140},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12060":{"submorphs":[{"__isSmartRef__":true,"id":12061},{"__isSmartRef__":true,"id":12082}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12099},"derivationIds":[null],"id":"036FE51B-FCEE-467B-8DCE-DD9492D5D875","renderContextTable":{"__isSmartRef__":true,"id":12104},"eventHandler":{"__isSmartRef__":true,"id":12105},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12106},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":317},"propertyList":["x","y"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"priorExtent","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":12061},"text":{"__isSmartRef__":true,"id":12082},"owner":{"__isSmartRef__":true,"id":12059},"_Position":{"__isSmartRef__":true,"id":12107},"priorExtent":{"__isSmartRef__":true,"id":12108},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12109},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12061":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12062},"derivationIds":[null],"id":"518935D9-8DB0-4B05-BD68-E71082F551BC","renderContextTable":{"__isSmartRef__":true,"id":12068},"eventHandler":{"__isSmartRef__":true,"id":12069},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12070},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12060},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12071},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12062":{"_Position":{"__isSmartRef__":true,"id":12063},"renderContextTable":{"__isSmartRef__":true,"id":12064},"_Extent":{"__isSmartRef__":true,"id":12065},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12066},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":12067},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12063":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12064":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12065":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12066":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12067":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12068":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12069":{"morph":{"__isSmartRef__":true,"id":12061},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12070":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12071":{"toggle":{"__isSmartRef__":true,"id":12072},"toggleExpansion":{"__isSmartRef__":true,"id":12079}},"12072":{"varMapping":{"__isSmartRef__":true,"id":12073},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12073":{"this":{"__isSmartRef__":true,"id":12061},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12074}},"12074":{"$super":{"__isSmartRef__":true,"id":12075}},"12075":{"varMapping":{"__isSmartRef__":true,"id":12076},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12076":{"obj":{"__isSmartRef__":true,"id":12061},"name":"toggle"},"12077":{},"12078":{},"12079":{"varMapping":{"__isSmartRef__":true,"id":12080},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12080":{"this":{"__isSmartRef__":true,"id":12061}},"12081":{},"12082":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12083},"derivationIds":[null],"id":"F316BD5A-28A8-436F-B17D-8B203E830C5E","renderContextTable":{"__isSmartRef__":true,"id":12087},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12088},{"__isSmartRef__":true,"id":12090}],"eventHandler":{"__isSmartRef__":true,"id":12092},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12093},"priorExtent":{"__isSmartRef__":true,"id":12094},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12060},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12095},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12083":{"_Position":{"__isSmartRef__":true,"id":12084},"renderContextTable":{"__isSmartRef__":true,"id":12085},"_Extent":{"__isSmartRef__":true,"id":12086},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12084":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12085":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12086":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12087":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12088":{"style":{"__isSmartRef__":true,"id":12089},"chunkOwner":{"__isSmartRef__":true,"id":12082},"storedString":"priorExtent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12089":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12090":{"style":{"__isSmartRef__":true,"id":12091},"chunkOwner":{"__isSmartRef__":true,"id":12082},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12091":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12092":{"morph":{"__isSmartRef__":true,"id":12082},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12093":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12094":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12095":{"layoutText":{"__isSmartRef__":true,"id":12096}},"12096":{"varMapping":{"__isSmartRef__":true,"id":12097},"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":12098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12097":{"this":{"__isSmartRef__":true,"id":12082}},"12098":{},"12099":{"_Position":{"__isSmartRef__":true,"id":12100},"renderContextTable":{"__isSmartRef__":true,"id":12101},"_Extent":{"__isSmartRef__":true,"id":12102},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12103},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12100":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12101":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12102":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12103":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12104":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12105":{"morph":{"__isSmartRef__":true,"id":12060},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12106":{"resizeWidth":true},"12107":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12108":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12109":{"updateExpanderColor":{"__isSmartRef__":true,"id":12110},"onMouseDown":{"__isSmartRef__":true,"id":12113},"isRoot":{"__isSmartRef__":true,"id":12120},"displayValue":{"__isSmartRef__":true,"id":12123},"update":{"__isSmartRef__":true,"id":12126}},"12110":{"varMapping":{"__isSmartRef__":true,"id":12111},"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":12112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12111":{"this":{"__isSmartRef__":true,"id":12060}},"12112":{},"12113":{"varMapping":{"__isSmartRef__":true,"id":12114},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12114":{"this":{"__isSmartRef__":true,"id":12060},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12115}},"12115":{"$super":{"__isSmartRef__":true,"id":12116}},"12116":{"varMapping":{"__isSmartRef__":true,"id":12117},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12117":{"obj":{"__isSmartRef__":true,"id":12060},"name":"onMouseDown"},"12118":{},"12119":{},"12120":{"varMapping":{"__isSmartRef__":true,"id":12121},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12121":{"this":{"__isSmartRef__":true,"id":12060}},"12122":{},"12123":{"varMapping":{"__isSmartRef__":true,"id":12124},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12124":{"this":{"__isSmartRef__":true,"id":12060}},"12125":{},"12126":{"varMapping":{"__isSmartRef__":true,"id":12127},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12127":{"this":{"__isSmartRef__":true,"id":12060}},"12128":{},"12129":{"_Position":{"__isSmartRef__":true,"id":12130},"renderContextTable":{"__isSmartRef__":true,"id":12131},"_Extent":{"__isSmartRef__":true,"id":12132},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12133},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12130":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12131":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12132":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12133":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12134":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12135":{"morph":{"__isSmartRef__":true,"id":12059},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12136":{"layouter":{"__isSmartRef__":true,"id":12137},"resizeWidth":true},"12137":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12059},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12138":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12139":{"x":0,"y":700,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12140":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12141}},"12141":{"varMapping":{"__isSmartRef__":true,"id":12142},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12142":{"this":{"__isSmartRef__":true,"id":12059},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12143}},"12143":{"$super":{"__isSmartRef__":true,"id":12144}},"12144":{"varMapping":{"__isSmartRef__":true,"id":12145},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12145":{"obj":{"__isSmartRef__":true,"id":12059},"name":"getLayoutableSubmorphs"},"12146":{},"12147":{},"12148":{"submorphs":[{"__isSmartRef__":true,"id":12149}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12218},"derivationIds":[null],"id":"47A1FFAD-32BB-4719-A3A8-29135EA0E36B","renderContextTable":{"__isSmartRef__":true,"id":12223},"eventHandler":{"__isSmartRef__":true,"id":12224},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12225},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12227},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12228},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12229},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12149":{"submorphs":[{"__isSmartRef__":true,"id":12150},{"__isSmartRef__":true,"id":12171}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12188},"derivationIds":[null],"id":"66D58207-EB3A-42A4-B52B-5B24EF361600","renderContextTable":{"__isSmartRef__":true,"id":12193},"eventHandler":{"__isSmartRef__":true,"id":12194},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12195},"grabbingEnabled":false,"draggingEnabled":false,"data":[5,5],"propertyList":["0","1"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"priorSelectionRange","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":12150},"text":{"__isSmartRef__":true,"id":12171},"owner":{"__isSmartRef__":true,"id":12148},"_Position":{"__isSmartRef__":true,"id":12196},"priorExtent":{"__isSmartRef__":true,"id":12197},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12198},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12150":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12151},"derivationIds":[null],"id":"5B6643DF-0A5E-4208-AD70-1E95629B8AFB","renderContextTable":{"__isSmartRef__":true,"id":12157},"eventHandler":{"__isSmartRef__":true,"id":12158},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12159},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12149},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12160},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12151":{"_Position":{"__isSmartRef__":true,"id":12152},"renderContextTable":{"__isSmartRef__":true,"id":12153},"_Extent":{"__isSmartRef__":true,"id":12154},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12155},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":12156},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12152":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12153":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12154":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12155":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12156":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12157":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12158":{"morph":{"__isSmartRef__":true,"id":12150},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12159":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12160":{"toggle":{"__isSmartRef__":true,"id":12161},"toggleExpansion":{"__isSmartRef__":true,"id":12168}},"12161":{"varMapping":{"__isSmartRef__":true,"id":12162},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12162":{"this":{"__isSmartRef__":true,"id":12150},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12163}},"12163":{"$super":{"__isSmartRef__":true,"id":12164}},"12164":{"varMapping":{"__isSmartRef__":true,"id":12165},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12165":{"obj":{"__isSmartRef__":true,"id":12150},"name":"toggle"},"12166":{},"12167":{},"12168":{"varMapping":{"__isSmartRef__":true,"id":12169},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12169":{"this":{"__isSmartRef__":true,"id":12150}},"12170":{},"12171":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12172},"derivationIds":[null],"id":"0EA8CBFE-53BC-4369-9DAA-44F899D2F3D4","renderContextTable":{"__isSmartRef__":true,"id":12176},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12177},{"__isSmartRef__":true,"id":12179}],"eventHandler":{"__isSmartRef__":true,"id":12181},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12182},"priorExtent":{"__isSmartRef__":true,"id":12183},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12149},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12184},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12172":{"_Position":{"__isSmartRef__":true,"id":12173},"renderContextTable":{"__isSmartRef__":true,"id":12174},"_Extent":{"__isSmartRef__":true,"id":12175},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12173":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12174":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12175":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12176":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12177":{"style":{"__isSmartRef__":true,"id":12178},"chunkOwner":{"__isSmartRef__":true,"id":12171},"storedString":"priorSelectionRange","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12178":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12179":{"style":{"__isSmartRef__":true,"id":12180},"chunkOwner":{"__isSmartRef__":true,"id":12171},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12180":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12181":{"morph":{"__isSmartRef__":true,"id":12171},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12182":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12183":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12184":{"layoutText":{"__isSmartRef__":true,"id":12185}},"12185":{"varMapping":{"__isSmartRef__":true,"id":12186},"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":12187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12186":{"this":{"__isSmartRef__":true,"id":12171}},"12187":{},"12188":{"_Position":{"__isSmartRef__":true,"id":12189},"renderContextTable":{"__isSmartRef__":true,"id":12190},"_Extent":{"__isSmartRef__":true,"id":12191},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12192},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12189":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12190":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12191":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12192":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12193":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12194":{"morph":{"__isSmartRef__":true,"id":12149},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12195":{"resizeWidth":true},"12196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12197":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12198":{"updateExpanderColor":{"__isSmartRef__":true,"id":12199},"onMouseDown":{"__isSmartRef__":true,"id":12202},"isRoot":{"__isSmartRef__":true,"id":12209},"displayValue":{"__isSmartRef__":true,"id":12212},"update":{"__isSmartRef__":true,"id":12215}},"12199":{"varMapping":{"__isSmartRef__":true,"id":12200},"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":12201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12200":{"this":{"__isSmartRef__":true,"id":12149}},"12201":{},"12202":{"varMapping":{"__isSmartRef__":true,"id":12203},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12203":{"this":{"__isSmartRef__":true,"id":12149},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12204}},"12204":{"$super":{"__isSmartRef__":true,"id":12205}},"12205":{"varMapping":{"__isSmartRef__":true,"id":12206},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12206":{"obj":{"__isSmartRef__":true,"id":12149},"name":"onMouseDown"},"12207":{},"12208":{},"12209":{"varMapping":{"__isSmartRef__":true,"id":12210},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12210":{"this":{"__isSmartRef__":true,"id":12149}},"12211":{},"12212":{"varMapping":{"__isSmartRef__":true,"id":12213},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12213":{"this":{"__isSmartRef__":true,"id":12149}},"12214":{},"12215":{"varMapping":{"__isSmartRef__":true,"id":12216},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12216":{"this":{"__isSmartRef__":true,"id":12149}},"12217":{},"12218":{"_Position":{"__isSmartRef__":true,"id":12219},"renderContextTable":{"__isSmartRef__":true,"id":12220},"_Extent":{"__isSmartRef__":true,"id":12221},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12222},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12219":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12220":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12221":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12222":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12223":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12224":{"morph":{"__isSmartRef__":true,"id":12148},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12225":{"layouter":{"__isSmartRef__":true,"id":12226},"resizeWidth":true},"12226":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12148},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12227":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12228":{"x":0,"y":720,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12229":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12230}},"12230":{"varMapping":{"__isSmartRef__":true,"id":12231},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12231":{"this":{"__isSmartRef__":true,"id":12148},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12232}},"12232":{"$super":{"__isSmartRef__":true,"id":12233}},"12233":{"varMapping":{"__isSmartRef__":true,"id":12234},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12234":{"obj":{"__isSmartRef__":true,"id":12148},"name":"getLayoutableSubmorphs"},"12235":{},"12236":{},"12237":{"submorphs":[{"__isSmartRef__":true,"id":12238}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12307},"derivationIds":[null],"id":"740902E5-9D48-4AB8-984A-DCEF22EA7C29","renderContextTable":{"__isSmartRef__":true,"id":12312},"eventHandler":{"__isSmartRef__":true,"id":12313},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12314},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12316},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12317},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12318},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12238":{"submorphs":[{"__isSmartRef__":true,"id":12239},{"__isSmartRef__":true,"id":12260}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12277},"derivationIds":[null],"id":"060B009D-6577-4863-AC33-E33A12D0A101","renderContextTable":{"__isSmartRef__":true,"id":12282},"eventHandler":{"__isSmartRef__":true,"id":12283},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12284},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":313},"propertyList":["replaceRenderContext","init","append","remove","triggerEvent","setTransform","setPosition","setRotation","setExtent","setScale","setVisible","adjustOrigin","setPivotPoint","setClipMode","showsVerticalScrollBar","showsHorizontalScrollBar","getScrollBarExtent","setHandStyle","setPointerEvents","setToolTip","focus","blur","setFocusable","updateText","setTextExtent","setMaxTextWidth","setMaxTextHeight","setMinTextWidth","setMinTextHeight","getTextExtent","getTextString","ignoreTextEvents","unignoreTextEvents","enableTextEvents","setFontFamily","setFontSize","setTextColor","setPadding","setAlign","setVerticalAlign","setDisplay","setWhiteSpaceHandling","focusMorph"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"renderContextTable","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":12239},"text":{"__isSmartRef__":true,"id":12260},"owner":{"__isSmartRef__":true,"id":12237},"_Position":{"__isSmartRef__":true,"id":12285},"priorExtent":{"__isSmartRef__":true,"id":12286},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12287},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12239":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12240},"derivationIds":[null],"id":"963D02DF-C0EA-4A64-A5A7-882FAC382318","renderContextTable":{"__isSmartRef__":true,"id":12246},"eventHandler":{"__isSmartRef__":true,"id":12247},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12248},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12238},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12249},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12240":{"_Position":{"__isSmartRef__":true,"id":12241},"renderContextTable":{"__isSmartRef__":true,"id":12242},"_Extent":{"__isSmartRef__":true,"id":12243},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12244},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":12245},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12241":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12242":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12243":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12244":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12245":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12246":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12247":{"morph":{"__isSmartRef__":true,"id":12239},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12248":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12249":{"toggle":{"__isSmartRef__":true,"id":12250},"toggleExpansion":{"__isSmartRef__":true,"id":12257}},"12250":{"varMapping":{"__isSmartRef__":true,"id":12251},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12251":{"this":{"__isSmartRef__":true,"id":12239},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12252}},"12252":{"$super":{"__isSmartRef__":true,"id":12253}},"12253":{"varMapping":{"__isSmartRef__":true,"id":12254},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12254":{"obj":{"__isSmartRef__":true,"id":12239},"name":"toggle"},"12255":{},"12256":{},"12257":{"varMapping":{"__isSmartRef__":true,"id":12258},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12258":{"this":{"__isSmartRef__":true,"id":12239}},"12259":{},"12260":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12261},"derivationIds":[null],"id":"53217465-AEA4-404A-9E2A-1CE1B365336B","renderContextTable":{"__isSmartRef__":true,"id":12265},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12266},{"__isSmartRef__":true,"id":12268}],"eventHandler":{"__isSmartRef__":true,"id":12270},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12271},"priorExtent":{"__isSmartRef__":true,"id":12272},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12238},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12273},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12261":{"_Position":{"__isSmartRef__":true,"id":12262},"renderContextTable":{"__isSmartRef__":true,"id":12263},"_Extent":{"__isSmartRef__":true,"id":12264},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12262":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12263":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12264":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12265":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12266":{"style":{"__isSmartRef__":true,"id":12267},"chunkOwner":{"__isSmartRef__":true,"id":12260},"storedString":"renderContextTable","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12267":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12268":{"style":{"__isSmartRef__":true,"id":12269},"chunkOwner":{"__isSmartRef__":true,"id":12260},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12269":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12270":{"morph":{"__isSmartRef__":true,"id":12260},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12271":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12272":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12273":{"layoutText":{"__isSmartRef__":true,"id":12274}},"12274":{"varMapping":{"__isSmartRef__":true,"id":12275},"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":12276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12275":{"this":{"__isSmartRef__":true,"id":12260}},"12276":{},"12277":{"_Position":{"__isSmartRef__":true,"id":12278},"renderContextTable":{"__isSmartRef__":true,"id":12279},"_Extent":{"__isSmartRef__":true,"id":12280},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12281},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12278":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12279":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12280":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12281":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12282":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12283":{"morph":{"__isSmartRef__":true,"id":12238},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12284":{"resizeWidth":true},"12285":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12286":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12287":{"updateExpanderColor":{"__isSmartRef__":true,"id":12288},"onMouseDown":{"__isSmartRef__":true,"id":12291},"isRoot":{"__isSmartRef__":true,"id":12298},"displayValue":{"__isSmartRef__":true,"id":12301},"update":{"__isSmartRef__":true,"id":12304}},"12288":{"varMapping":{"__isSmartRef__":true,"id":12289},"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":12290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12289":{"this":{"__isSmartRef__":true,"id":12238}},"12290":{},"12291":{"varMapping":{"__isSmartRef__":true,"id":12292},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12292":{"this":{"__isSmartRef__":true,"id":12238},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12293}},"12293":{"$super":{"__isSmartRef__":true,"id":12294}},"12294":{"varMapping":{"__isSmartRef__":true,"id":12295},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12295":{"obj":{"__isSmartRef__":true,"id":12238},"name":"onMouseDown"},"12296":{},"12297":{},"12298":{"varMapping":{"__isSmartRef__":true,"id":12299},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12299":{"this":{"__isSmartRef__":true,"id":12238}},"12300":{},"12301":{"varMapping":{"__isSmartRef__":true,"id":12302},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12302":{"this":{"__isSmartRef__":true,"id":12238}},"12303":{},"12304":{"varMapping":{"__isSmartRef__":true,"id":12305},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12305":{"this":{"__isSmartRef__":true,"id":12238}},"12306":{},"12307":{"_Position":{"__isSmartRef__":true,"id":12308},"renderContextTable":{"__isSmartRef__":true,"id":12309},"_Extent":{"__isSmartRef__":true,"id":12310},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12311},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12308":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12309":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12310":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12311":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12312":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12313":{"morph":{"__isSmartRef__":true,"id":12237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12314":{"layouter":{"__isSmartRef__":true,"id":12315},"resizeWidth":true},"12315":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12237},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12316":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12317":{"x":0,"y":740,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12318":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12319}},"12319":{"varMapping":{"__isSmartRef__":true,"id":12320},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12320":{"this":{"__isSmartRef__":true,"id":12237},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12321}},"12321":{"$super":{"__isSmartRef__":true,"id":12322}},"12322":{"varMapping":{"__isSmartRef__":true,"id":12323},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12323":{"obj":{"__isSmartRef__":true,"id":12237},"name":"getLayoutableSubmorphs"},"12324":{},"12325":{},"12326":{"submorphs":[{"__isSmartRef__":true,"id":12327}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12396},"derivationIds":[null],"id":"AF9F2D9B-1E45-4BE8-9977-D18202119B94","renderContextTable":{"__isSmartRef__":true,"id":12401},"eventHandler":{"__isSmartRef__":true,"id":12402},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12403},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12405},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12406},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12407},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12327":{"submorphs":[{"__isSmartRef__":true,"id":12328},{"__isSmartRef__":true,"id":12349}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12366},"derivationIds":[null],"id":"4D0D0EBB-C17B-40F0-B472-DB3898719CA3","renderContextTable":{"__isSmartRef__":true,"id":12371},"eventHandler":{"__isSmartRef__":true,"id":12372},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12373},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"scripts","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":12328},"text":{"__isSmartRef__":true,"id":12349},"owner":{"__isSmartRef__":true,"id":12326},"_Position":{"__isSmartRef__":true,"id":12374},"priorExtent":{"__isSmartRef__":true,"id":12375},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12376},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12328":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12329},"derivationIds":[null],"id":"83E62351-B8F9-4AD9-95EC-34CF46427390","renderContextTable":{"__isSmartRef__":true,"id":12335},"eventHandler":{"__isSmartRef__":true,"id":12336},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12337},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12327},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12338},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12329":{"_Position":{"__isSmartRef__":true,"id":12330},"renderContextTable":{"__isSmartRef__":true,"id":12331},"_Extent":{"__isSmartRef__":true,"id":12332},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12333},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":12334},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12330":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12331":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12332":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12333":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12334":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12335":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12336":{"morph":{"__isSmartRef__":true,"id":12328},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12337":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12338":{"toggle":{"__isSmartRef__":true,"id":12339},"toggleExpansion":{"__isSmartRef__":true,"id":12346}},"12339":{"varMapping":{"__isSmartRef__":true,"id":12340},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12340":{"this":{"__isSmartRef__":true,"id":12328},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12341}},"12341":{"$super":{"__isSmartRef__":true,"id":12342}},"12342":{"varMapping":{"__isSmartRef__":true,"id":12343},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12343":{"obj":{"__isSmartRef__":true,"id":12328},"name":"toggle"},"12344":{},"12345":{},"12346":{"varMapping":{"__isSmartRef__":true,"id":12347},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12347":{"this":{"__isSmartRef__":true,"id":12328}},"12348":{},"12349":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12350},"derivationIds":[null],"id":"53CF5AAF-5A9A-41E3-AA99-A98DFA8D1F64","renderContextTable":{"__isSmartRef__":true,"id":12354},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12355},{"__isSmartRef__":true,"id":12357}],"eventHandler":{"__isSmartRef__":true,"id":12359},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12360},"priorExtent":{"__isSmartRef__":true,"id":12361},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12327},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12362},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12350":{"_Position":{"__isSmartRef__":true,"id":12351},"renderContextTable":{"__isSmartRef__":true,"id":12352},"_Extent":{"__isSmartRef__":true,"id":12353},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12351":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12352":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12353":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12354":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12355":{"style":{"__isSmartRef__":true,"id":12356},"chunkOwner":{"__isSmartRef__":true,"id":12349},"storedString":"scripts","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12356":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12357":{"style":{"__isSmartRef__":true,"id":12358},"chunkOwner":{"__isSmartRef__":true,"id":12349},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12358":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12359":{"morph":{"__isSmartRef__":true,"id":12349},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12360":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12361":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12362":{"layoutText":{"__isSmartRef__":true,"id":12363}},"12363":{"varMapping":{"__isSmartRef__":true,"id":12364},"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":12365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12364":{"this":{"__isSmartRef__":true,"id":12349}},"12365":{},"12366":{"_Position":{"__isSmartRef__":true,"id":12367},"renderContextTable":{"__isSmartRef__":true,"id":12368},"_Extent":{"__isSmartRef__":true,"id":12369},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12370},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12367":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12368":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12369":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12370":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12371":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12372":{"morph":{"__isSmartRef__":true,"id":12327},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12373":{"resizeWidth":true},"12374":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12375":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12376":{"updateExpanderColor":{"__isSmartRef__":true,"id":12377},"onMouseDown":{"__isSmartRef__":true,"id":12380},"isRoot":{"__isSmartRef__":true,"id":12387},"displayValue":{"__isSmartRef__":true,"id":12390},"update":{"__isSmartRef__":true,"id":12393}},"12377":{"varMapping":{"__isSmartRef__":true,"id":12378},"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":12379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12378":{"this":{"__isSmartRef__":true,"id":12327}},"12379":{},"12380":{"varMapping":{"__isSmartRef__":true,"id":12381},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12381":{"this":{"__isSmartRef__":true,"id":12327},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12382}},"12382":{"$super":{"__isSmartRef__":true,"id":12383}},"12383":{"varMapping":{"__isSmartRef__":true,"id":12384},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12384":{"obj":{"__isSmartRef__":true,"id":12327},"name":"onMouseDown"},"12385":{},"12386":{},"12387":{"varMapping":{"__isSmartRef__":true,"id":12388},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12388":{"this":{"__isSmartRef__":true,"id":12327}},"12389":{},"12390":{"varMapping":{"__isSmartRef__":true,"id":12391},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12391":{"this":{"__isSmartRef__":true,"id":12327}},"12392":{},"12393":{"varMapping":{"__isSmartRef__":true,"id":12394},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12394":{"this":{"__isSmartRef__":true,"id":12327}},"12395":{},"12396":{"_Position":{"__isSmartRef__":true,"id":12397},"renderContextTable":{"__isSmartRef__":true,"id":12398},"_Extent":{"__isSmartRef__":true,"id":12399},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12400},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12397":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12398":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12399":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12400":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12401":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12402":{"morph":{"__isSmartRef__":true,"id":12326},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12403":{"layouter":{"__isSmartRef__":true,"id":12404},"resizeWidth":true},"12404":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12326},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12405":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12406":{"x":0,"y":760,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12407":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12408}},"12408":{"varMapping":{"__isSmartRef__":true,"id":12409},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12409":{"this":{"__isSmartRef__":true,"id":12326},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12410}},"12410":{"$super":{"__isSmartRef__":true,"id":12411}},"12411":{"varMapping":{"__isSmartRef__":true,"id":12412},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12412":{"obj":{"__isSmartRef__":true,"id":12326},"name":"getLayoutableSubmorphs"},"12413":{},"12414":{},"12415":{"submorphs":[{"__isSmartRef__":true,"id":12416}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12485},"derivationIds":[null],"id":"2771FDBA-585F-47CA-ABDE-BFD2E533DF90","renderContextTable":{"__isSmartRef__":true,"id":12490},"eventHandler":{"__isSmartRef__":true,"id":12491},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12492},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12494},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12495},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12496},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12416":{"submorphs":[{"__isSmartRef__":true,"id":12417},{"__isSmartRef__":true,"id":12438}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12455},"derivationIds":[null],"id":"C5E52ED0-6410-476C-A3D1-D2DD4FB14D1F","renderContextTable":{"__isSmartRef__":true,"id":12460},"eventHandler":{"__isSmartRef__":true,"id":12461},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12462},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":307},"propertyList":["_Position","renderContextTable","_renderContext","_Extent","_ClipMode","_Padding","_BorderWidth","_BorderColor","_Fill"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"shape","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":12417},"text":{"__isSmartRef__":true,"id":12438},"owner":{"__isSmartRef__":true,"id":12415},"_Position":{"__isSmartRef__":true,"id":12463},"priorExtent":{"__isSmartRef__":true,"id":12464},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12465},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12417":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12418},"derivationIds":[null],"id":"272505BB-2581-4A60-8C99-C842F8572867","renderContextTable":{"__isSmartRef__":true,"id":12424},"eventHandler":{"__isSmartRef__":true,"id":12425},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12426},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12416},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12427},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12418":{"_Position":{"__isSmartRef__":true,"id":12419},"renderContextTable":{"__isSmartRef__":true,"id":12420},"_Extent":{"__isSmartRef__":true,"id":12421},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12422},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":12423},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12419":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12420":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12421":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12422":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12423":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12424":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12425":{"morph":{"__isSmartRef__":true,"id":12417},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12426":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12427":{"toggle":{"__isSmartRef__":true,"id":12428},"toggleExpansion":{"__isSmartRef__":true,"id":12435}},"12428":{"varMapping":{"__isSmartRef__":true,"id":12429},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12429":{"this":{"__isSmartRef__":true,"id":12417},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12430}},"12430":{"$super":{"__isSmartRef__":true,"id":12431}},"12431":{"varMapping":{"__isSmartRef__":true,"id":12432},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12432":{"obj":{"__isSmartRef__":true,"id":12417},"name":"toggle"},"12433":{},"12434":{},"12435":{"varMapping":{"__isSmartRef__":true,"id":12436},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12436":{"this":{"__isSmartRef__":true,"id":12417}},"12437":{},"12438":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12439},"derivationIds":[null],"id":"8B2E64EB-4DE3-48E4-AF80-AC3618D1EB13","renderContextTable":{"__isSmartRef__":true,"id":12443},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12444},{"__isSmartRef__":true,"id":12446}],"eventHandler":{"__isSmartRef__":true,"id":12448},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12449},"priorExtent":{"__isSmartRef__":true,"id":12450},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12416},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12451},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12439":{"_Position":{"__isSmartRef__":true,"id":12440},"renderContextTable":{"__isSmartRef__":true,"id":12441},"_Extent":{"__isSmartRef__":true,"id":12442},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12440":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12441":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12442":{"x":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12443":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12444":{"style":{"__isSmartRef__":true,"id":12445},"chunkOwner":{"__isSmartRef__":true,"id":12438},"storedString":"shape","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12445":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12446":{"style":{"__isSmartRef__":true,"id":12447},"chunkOwner":{"__isSmartRef__":true,"id":12438},"storedString":": Rectangle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12447":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12448":{"morph":{"__isSmartRef__":true,"id":12438},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12449":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12450":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12451":{"layoutText":{"__isSmartRef__":true,"id":12452}},"12452":{"varMapping":{"__isSmartRef__":true,"id":12453},"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":12454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12453":{"this":{"__isSmartRef__":true,"id":12438}},"12454":{},"12455":{"_Position":{"__isSmartRef__":true,"id":12456},"renderContextTable":{"__isSmartRef__":true,"id":12457},"_Extent":{"__isSmartRef__":true,"id":12458},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12459},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12456":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12457":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12458":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12459":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__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","adjustOrigin":"adjustOriginHTML","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":12416},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12462":{"resizeWidth":true},"12463":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12464":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12465":{"updateExpanderColor":{"__isSmartRef__":true,"id":12466},"onMouseDown":{"__isSmartRef__":true,"id":12469},"isRoot":{"__isSmartRef__":true,"id":12476},"displayValue":{"__isSmartRef__":true,"id":12479},"update":{"__isSmartRef__":true,"id":12482}},"12466":{"varMapping":{"__isSmartRef__":true,"id":12467},"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":12468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12467":{"this":{"__isSmartRef__":true,"id":12416}},"12468":{},"12469":{"varMapping":{"__isSmartRef__":true,"id":12470},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12470":{"this":{"__isSmartRef__":true,"id":12416},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12471}},"12471":{"$super":{"__isSmartRef__":true,"id":12472}},"12472":{"varMapping":{"__isSmartRef__":true,"id":12473},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12473":{"obj":{"__isSmartRef__":true,"id":12416},"name":"onMouseDown"},"12474":{},"12475":{},"12476":{"varMapping":{"__isSmartRef__":true,"id":12477},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12477":{"this":{"__isSmartRef__":true,"id":12416}},"12478":{},"12479":{"varMapping":{"__isSmartRef__":true,"id":12480},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12480":{"this":{"__isSmartRef__":true,"id":12416}},"12481":{},"12482":{"varMapping":{"__isSmartRef__":true,"id":12483},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12483":{"this":{"__isSmartRef__":true,"id":12416}},"12484":{},"12485":{"_Position":{"__isSmartRef__":true,"id":12486},"renderContextTable":{"__isSmartRef__":true,"id":12487},"_Extent":{"__isSmartRef__":true,"id":12488},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12489},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12486":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12487":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12488":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12489":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12490":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12491":{"morph":{"__isSmartRef__":true,"id":12415},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12492":{"layouter":{"__isSmartRef__":true,"id":12493},"resizeWidth":true},"12493":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12415},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12494":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12495":{"x":0,"y":780,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12496":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12497}},"12497":{"varMapping":{"__isSmartRef__":true,"id":12498},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12498":{"this":{"__isSmartRef__":true,"id":12415},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12499}},"12499":{"$super":{"__isSmartRef__":true,"id":12500}},"12500":{"varMapping":{"__isSmartRef__":true,"id":12501},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12501":{"obj":{"__isSmartRef__":true,"id":12415},"name":"getLayoutableSubmorphs"},"12502":{},"12503":{},"12504":{"submorphs":[{"__isSmartRef__":true,"id":12505}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12574},"derivationIds":[null],"id":"B6380393-3697-4023-AB7A-EA887262C804","renderContextTable":{"__isSmartRef__":true,"id":12579},"eventHandler":{"__isSmartRef__":true,"id":12580},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12581},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12583},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12584},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12585},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12505":{"submorphs":[{"__isSmartRef__":true,"id":12506},{"__isSmartRef__":true,"id":12527}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12544},"derivationIds":[null],"id":"FAC42FBA-DE08-4429-8DA8-100769B047A5","renderContextTable":{"__isSmartRef__":true,"id":12549},"eventHandler":{"__isSmartRef__":true,"id":12550},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12551},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"showsHalos","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":12506},"text":{"__isSmartRef__":true,"id":12527},"owner":{"__isSmartRef__":true,"id":12504},"_Position":{"__isSmartRef__":true,"id":12552},"priorExtent":{"__isSmartRef__":true,"id":12553},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12554},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12506":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12507},"derivationIds":[null],"id":"2488D561-CE82-4352-99C5-A5EC6CD3F545","renderContextTable":{"__isSmartRef__":true,"id":12513},"eventHandler":{"__isSmartRef__":true,"id":12514},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12515},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12505},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12516},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12507":{"_Position":{"__isSmartRef__":true,"id":12508},"renderContextTable":{"__isSmartRef__":true,"id":12509},"_Extent":{"__isSmartRef__":true,"id":12510},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12511},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":12512},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12508":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12509":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12510":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12511":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12512":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12513":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12514":{"morph":{"__isSmartRef__":true,"id":12506},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12515":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12516":{"toggle":{"__isSmartRef__":true,"id":12517},"toggleExpansion":{"__isSmartRef__":true,"id":12524}},"12517":{"varMapping":{"__isSmartRef__":true,"id":12518},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12518":{"this":{"__isSmartRef__":true,"id":12506},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12519}},"12519":{"$super":{"__isSmartRef__":true,"id":12520}},"12520":{"varMapping":{"__isSmartRef__":true,"id":12521},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12521":{"obj":{"__isSmartRef__":true,"id":12506},"name":"toggle"},"12522":{},"12523":{},"12524":{"varMapping":{"__isSmartRef__":true,"id":12525},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12525":{"this":{"__isSmartRef__":true,"id":12506}},"12526":{},"12527":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12528},"derivationIds":[null],"id":"AC15B045-9FEC-4BF8-9B55-D224803E1CF2","renderContextTable":{"__isSmartRef__":true,"id":12532},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12533},{"__isSmartRef__":true,"id":12535}],"eventHandler":{"__isSmartRef__":true,"id":12537},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12538},"priorExtent":{"__isSmartRef__":true,"id":12539},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12505},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12540},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12528":{"_Position":{"__isSmartRef__":true,"id":12529},"renderContextTable":{"__isSmartRef__":true,"id":12530},"_Extent":{"__isSmartRef__":true,"id":12531},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12529":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12530":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12531":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12532":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12533":{"style":{"__isSmartRef__":true,"id":12534},"chunkOwner":{"__isSmartRef__":true,"id":12527},"storedString":"showsHalos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12534":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12535":{"style":{"__isSmartRef__":true,"id":12536},"chunkOwner":{"__isSmartRef__":true,"id":12527},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12536":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12537":{"morph":{"__isSmartRef__":true,"id":12527},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12538":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12539":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12540":{"layoutText":{"__isSmartRef__":true,"id":12541}},"12541":{"varMapping":{"__isSmartRef__":true,"id":12542},"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":12543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12542":{"this":{"__isSmartRef__":true,"id":12527}},"12543":{},"12544":{"_Position":{"__isSmartRef__":true,"id":12545},"renderContextTable":{"__isSmartRef__":true,"id":12546},"_Extent":{"__isSmartRef__":true,"id":12547},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12548},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12545":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12546":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12547":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12548":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12549":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12550":{"morph":{"__isSmartRef__":true,"id":12505},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12551":{"resizeWidth":true},"12552":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12553":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12554":{"updateExpanderColor":{"__isSmartRef__":true,"id":12555},"onMouseDown":{"__isSmartRef__":true,"id":12558},"isRoot":{"__isSmartRef__":true,"id":12565},"displayValue":{"__isSmartRef__":true,"id":12568},"update":{"__isSmartRef__":true,"id":12571}},"12555":{"varMapping":{"__isSmartRef__":true,"id":12556},"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":12557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12556":{"this":{"__isSmartRef__":true,"id":12505}},"12557":{},"12558":{"varMapping":{"__isSmartRef__":true,"id":12559},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12559":{"this":{"__isSmartRef__":true,"id":12505},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12560}},"12560":{"$super":{"__isSmartRef__":true,"id":12561}},"12561":{"varMapping":{"__isSmartRef__":true,"id":12562},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12562":{"obj":{"__isSmartRef__":true,"id":12505},"name":"onMouseDown"},"12563":{},"12564":{},"12565":{"varMapping":{"__isSmartRef__":true,"id":12566},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12566":{"this":{"__isSmartRef__":true,"id":12505}},"12567":{},"12568":{"varMapping":{"__isSmartRef__":true,"id":12569},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12569":{"this":{"__isSmartRef__":true,"id":12505}},"12570":{},"12571":{"varMapping":{"__isSmartRef__":true,"id":12572},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12572":{"this":{"__isSmartRef__":true,"id":12505}},"12573":{},"12574":{"_Position":{"__isSmartRef__":true,"id":12575},"renderContextTable":{"__isSmartRef__":true,"id":12576},"_Extent":{"__isSmartRef__":true,"id":12577},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12578},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12575":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12576":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12577":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12578":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12579":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12580":{"morph":{"__isSmartRef__":true,"id":12504},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12581":{"layouter":{"__isSmartRef__":true,"id":12582},"resizeWidth":true},"12582":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12504},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12583":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12584":{"x":0,"y":800,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12585":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12586}},"12586":{"varMapping":{"__isSmartRef__":true,"id":12587},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12587":{"this":{"__isSmartRef__":true,"id":12504},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12588}},"12588":{"$super":{"__isSmartRef__":true,"id":12589}},"12589":{"varMapping":{"__isSmartRef__":true,"id":12590},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12590":{"obj":{"__isSmartRef__":true,"id":12504},"name":"getLayoutableSubmorphs"},"12591":{},"12592":{},"12593":{"submorphs":[{"__isSmartRef__":true,"id":12594}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12663},"derivationIds":[null],"id":"C931182B-41A8-4F81-B2CD-80D35818D958","renderContextTable":{"__isSmartRef__":true,"id":12668},"eventHandler":{"__isSmartRef__":true,"id":12669},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12670},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12672},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12673},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12674},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12594":{"submorphs":[{"__isSmartRef__":true,"id":12595},{"__isSmartRef__":true,"id":12616}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12633},"derivationIds":[null],"id":"C387C9AB-209D-4EF7-B3D9-A4B9D9456F94","renderContextTable":{"__isSmartRef__":true,"id":12638},"eventHandler":{"__isSmartRef__":true,"id":12639},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12640},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"submorphs","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":12595},"text":{"__isSmartRef__":true,"id":12616},"owner":{"__isSmartRef__":true,"id":12593},"_Position":{"__isSmartRef__":true,"id":12641},"priorExtent":{"__isSmartRef__":true,"id":12642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12643},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12595":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12596},"derivationIds":[null],"id":"F27EE5E3-0537-4288-A331-78C075BEAC2D","renderContextTable":{"__isSmartRef__":true,"id":12602},"eventHandler":{"__isSmartRef__":true,"id":12603},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12604},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12605},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12596":{"_Position":{"__isSmartRef__":true,"id":12597},"renderContextTable":{"__isSmartRef__":true,"id":12598},"_Extent":{"__isSmartRef__":true,"id":12599},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12600},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":12601},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12597":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12598":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12599":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12600":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12601":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12602":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12603":{"morph":{"__isSmartRef__":true,"id":12595},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12604":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12605":{"toggle":{"__isSmartRef__":true,"id":12606},"toggleExpansion":{"__isSmartRef__":true,"id":12613}},"12606":{"varMapping":{"__isSmartRef__":true,"id":12607},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12607":{"this":{"__isSmartRef__":true,"id":12595},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12608}},"12608":{"$super":{"__isSmartRef__":true,"id":12609}},"12609":{"varMapping":{"__isSmartRef__":true,"id":12610},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12610":{"obj":{"__isSmartRef__":true,"id":12595},"name":"toggle"},"12611":{},"12612":{},"12613":{"varMapping":{"__isSmartRef__":true,"id":12614},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12614":{"this":{"__isSmartRef__":true,"id":12595}},"12615":{},"12616":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12617},"derivationIds":[null],"id":"3E48C8B9-60D4-4AFC-A76A-0AD356A09DDE","renderContextTable":{"__isSmartRef__":true,"id":12621},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12622},{"__isSmartRef__":true,"id":12624}],"eventHandler":{"__isSmartRef__":true,"id":12626},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12627},"priorExtent":{"__isSmartRef__":true,"id":12628},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12629},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12617":{"_Position":{"__isSmartRef__":true,"id":12618},"renderContextTable":{"__isSmartRef__":true,"id":12619},"_Extent":{"__isSmartRef__":true,"id":12620},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12618":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12619":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12620":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12621":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12622":{"style":{"__isSmartRef__":true,"id":12623},"chunkOwner":{"__isSmartRef__":true,"id":12616},"storedString":"submorphs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12623":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12624":{"style":{"__isSmartRef__":true,"id":12625},"chunkOwner":{"__isSmartRef__":true,"id":12616},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12625":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12626":{"morph":{"__isSmartRef__":true,"id":12616},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12627":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12628":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12629":{"layoutText":{"__isSmartRef__":true,"id":12630}},"12630":{"varMapping":{"__isSmartRef__":true,"id":12631},"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":12632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12631":{"this":{"__isSmartRef__":true,"id":12616}},"12632":{},"12633":{"_Position":{"__isSmartRef__":true,"id":12634},"renderContextTable":{"__isSmartRef__":true,"id":12635},"_Extent":{"__isSmartRef__":true,"id":12636},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12637},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12634":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12635":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12636":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12637":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12638":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12639":{"morph":{"__isSmartRef__":true,"id":12594},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12640":{"resizeWidth":true},"12641":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12642":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12643":{"updateExpanderColor":{"__isSmartRef__":true,"id":12644},"onMouseDown":{"__isSmartRef__":true,"id":12647},"isRoot":{"__isSmartRef__":true,"id":12654},"displayValue":{"__isSmartRef__":true,"id":12657},"update":{"__isSmartRef__":true,"id":12660}},"12644":{"varMapping":{"__isSmartRef__":true,"id":12645},"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":12646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12645":{"this":{"__isSmartRef__":true,"id":12594}},"12646":{},"12647":{"varMapping":{"__isSmartRef__":true,"id":12648},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12648":{"this":{"__isSmartRef__":true,"id":12594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12649}},"12649":{"$super":{"__isSmartRef__":true,"id":12650}},"12650":{"varMapping":{"__isSmartRef__":true,"id":12651},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12651":{"obj":{"__isSmartRef__":true,"id":12594},"name":"onMouseDown"},"12652":{},"12653":{},"12654":{"varMapping":{"__isSmartRef__":true,"id":12655},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12655":{"this":{"__isSmartRef__":true,"id":12594}},"12656":{},"12657":{"varMapping":{"__isSmartRef__":true,"id":12658},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12658":{"this":{"__isSmartRef__":true,"id":12594}},"12659":{},"12660":{"varMapping":{"__isSmartRef__":true,"id":12661},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12661":{"this":{"__isSmartRef__":true,"id":12594}},"12662":{},"12663":{"_Position":{"__isSmartRef__":true,"id":12664},"renderContextTable":{"__isSmartRef__":true,"id":12665},"_Extent":{"__isSmartRef__":true,"id":12666},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12667},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12664":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12665":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12666":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12667":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12668":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12669":{"morph":{"__isSmartRef__":true,"id":12593},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12670":{"layouter":{"__isSmartRef__":true,"id":12671},"resizeWidth":true},"12671":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12593},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12672":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12673":{"x":0,"y":820,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12674":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12675}},"12675":{"varMapping":{"__isSmartRef__":true,"id":12676},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12676":{"this":{"__isSmartRef__":true,"id":12593},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12677}},"12677":{"$super":{"__isSmartRef__":true,"id":12678}},"12678":{"varMapping":{"__isSmartRef__":true,"id":12679},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12679":{"obj":{"__isSmartRef__":true,"id":12593},"name":"getLayoutableSubmorphs"},"12680":{},"12681":{},"12682":{"submorphs":[{"__isSmartRef__":true,"id":12683}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12754},"derivationIds":[null],"id":"F740AA68-2C9A-43FC-8DE3-F35D4B827264","renderContextTable":{"__isSmartRef__":true,"id":12759},"eventHandler":{"__isSmartRef__":true,"id":12760},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12761},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12763},"owner":{"__isSmartRef__":true,"id":9013},"_Position":{"__isSmartRef__":true,"id":12764},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12765},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12683":{"submorphs":[{"__isSmartRef__":true,"id":12684},{"__isSmartRef__":true,"id":12705}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12722},"derivationIds":[null],"id":"804E22F5-3AFA-4188-A1F3-0EAD1389906D","renderContextTable":{"__isSmartRef__":true,"id":12727},"eventHandler":{"__isSmartRef__":true,"id":12728},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12729},"grabbingEnabled":false,"draggingEnabled":false,"data":[{"__isSmartRef__":true,"id":12730}],"propertyList":["0"],"level":2,"treeView":{"__isSmartRef__":true,"id":5696},"label":"textChunks","children":[],"parent":{"__isSmartRef__":true,"id":8909},"expander":{"__isSmartRef__":true,"id":12684},"text":{"__isSmartRef__":true,"id":12705},"owner":{"__isSmartRef__":true,"id":12682},"_Position":{"__isSmartRef__":true,"id":12732},"priorExtent":{"__isSmartRef__":true,"id":12733},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12734},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12684":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12685},"derivationIds":[null],"id":"47B99223-75B0-4762-8852-8ECBE1B7E6DD","renderContextTable":{"__isSmartRef__":true,"id":12691},"eventHandler":{"__isSmartRef__":true,"id":12692},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12693},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":12683},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12694},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"12685":{"_Position":{"__isSmartRef__":true,"id":12686},"renderContextTable":{"__isSmartRef__":true,"id":12687},"_Extent":{"__isSmartRef__":true,"id":12688},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12689},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5706},"_Fill":{"__isSmartRef__":true,"id":12690},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12686":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12687":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12688":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12689":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12690":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12691":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12692":{"morph":{"__isSmartRef__":true,"id":12684},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12693":{"x":28,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12694":{"toggle":{"__isSmartRef__":true,"id":12695},"toggleExpansion":{"__isSmartRef__":true,"id":12702}},"12695":{"varMapping":{"__isSmartRef__":true,"id":12696},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":12701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12696":{"this":{"__isSmartRef__":true,"id":12684},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12697}},"12697":{"$super":{"__isSmartRef__":true,"id":12698}},"12698":{"varMapping":{"__isSmartRef__":true,"id":12699},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12699":{"obj":{"__isSmartRef__":true,"id":12684},"name":"toggle"},"12700":{},"12701":{},"12702":{"varMapping":{"__isSmartRef__":true,"id":12703},"source":"function toggleExpansion() {\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 var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":12704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12703":{"this":{"__isSmartRef__":true,"id":12684}},"12704":{},"12705":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12706},"derivationIds":[null],"id":"FB93BB14-C768-468D-BA62-6B3DC6877166","renderContextTable":{"__isSmartRef__":true,"id":12710},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":12711},{"__isSmartRef__":true,"id":12713}],"eventHandler":{"__isSmartRef__":true,"id":12715},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":12716},"priorExtent":{"__isSmartRef__":true,"id":12717},"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12683},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12718},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12706":{"_Position":{"__isSmartRef__":true,"id":12707},"renderContextTable":{"__isSmartRef__":true,"id":12708},"_Extent":{"__isSmartRef__":true,"id":12709},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12707":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12708":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12709":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12710":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12711":{"style":{"__isSmartRef__":true,"id":12712},"chunkOwner":{"__isSmartRef__":true,"id":12705},"storedString":"textChunks","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12712":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12713":{"style":{"__isSmartRef__":true,"id":12714},"chunkOwner":{"__isSmartRef__":true,"id":12705},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12714":{"color":{"__isSmartRef__":true,"id":5731},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12715":{"morph":{"__isSmartRef__":true,"id":12705},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12716":{"x":38,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12717":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12718":{"layoutText":{"__isSmartRef__":true,"id":12719}},"12719":{"varMapping":{"__isSmartRef__":true,"id":12720},"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":12721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12720":{"this":{"__isSmartRef__":true,"id":12705}},"12721":{},"12722":{"_Position":{"__isSmartRef__":true,"id":12723},"renderContextTable":{"__isSmartRef__":true,"id":12724},"_Extent":{"__isSmartRef__":true,"id":12725},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12726},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12723":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12724":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12725":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12726":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12727":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12728":{"morph":{"__isSmartRef__":true,"id":12683},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12729":{"resizeWidth":true},"12730":{"style":{"__isSmartRef__":true,"id":12731},"chunkOwner":{"__isSmartRef__":true,"id":306},"__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12731":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12732":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12733":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12734":{"updateExpanderColor":{"__isSmartRef__":true,"id":12735},"onMouseDown":{"__isSmartRef__":true,"id":12738},"isRoot":{"__isSmartRef__":true,"id":12745},"displayValue":{"__isSmartRef__":true,"id":12748},"update":{"__isSmartRef__":true,"id":12751}},"12735":{"varMapping":{"__isSmartRef__":true,"id":12736},"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":12737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12736":{"this":{"__isSmartRef__":true,"id":12683}},"12737":{},"12738":{"varMapping":{"__isSmartRef__":true,"id":12739},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12739":{"this":{"__isSmartRef__":true,"id":12683},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12740}},"12740":{"$super":{"__isSmartRef__":true,"id":12741}},"12741":{"varMapping":{"__isSmartRef__":true,"id":12742},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12742":{"obj":{"__isSmartRef__":true,"id":12683},"name":"onMouseDown"},"12743":{},"12744":{},"12745":{"varMapping":{"__isSmartRef__":true,"id":12746},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12746":{"this":{"__isSmartRef__":true,"id":12683}},"12747":{},"12748":{"varMapping":{"__isSmartRef__":true,"id":12749},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12749":{"this":{"__isSmartRef__":true,"id":12683}},"12750":{},"12751":{"varMapping":{"__isSmartRef__":true,"id":12752},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12752":{"this":{"__isSmartRef__":true,"id":12683}},"12753":{},"12754":{"_Position":{"__isSmartRef__":true,"id":12755},"renderContextTable":{"__isSmartRef__":true,"id":12756},"_Extent":{"__isSmartRef__":true,"id":12757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12758},"__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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12758":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12759":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12760":{"morph":{"__isSmartRef__":true,"id":12682},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12761":{"layouter":{"__isSmartRef__":true,"id":12762},"resizeWidth":true},"12762":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12682},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12763":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12764":{"x":0,"y":840,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12765":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12766}},"12766":{"varMapping":{"__isSmartRef__":true,"id":12767},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12767":{"this":{"__isSmartRef__":true,"id":12682},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12768}},"12768":{"$super":{"__isSmartRef__":true,"id":12769}},"12769":{"varMapping":{"__isSmartRef__":true,"id":12770},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12770":{"obj":{"__isSmartRef__":true,"id":12682},"name":"getLayoutableSubmorphs"},"12771":{},"12772":{},"12773":{"_Position":{"__isSmartRef__":true,"id":12774},"renderContextTable":{"__isSmartRef__":true,"id":12775},"_Extent":{"__isSmartRef__":true,"id":12776},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12777},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12774":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12775":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12776":{"x":100,"y":860,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12777":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12778":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12779":{"morph":{"__isSmartRef__":true,"id":9013},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12780":{"layouter":{"__isSmartRef__":true,"id":12781},"resizeWidth":true},"12781":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":9013},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12782":{"submorphs":[{"__isSmartRef__":true,"id":8909},{"__isSmartRef__":true,"id":9013}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12783},"derivationIds":[null],"id":"3640E192-16BA-4799-8DF6-E4150DFCAAEE","renderContextTable":{"__isSmartRef__":true,"id":12788},"eventHandler":{"__isSmartRef__":true,"id":12789},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":12790},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":12792},"owner":null,"_Position":{"__isSmartRef__":true,"id":12793},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12794},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"12783":{"_Position":{"__isSmartRef__":true,"id":12784},"renderContextTable":{"__isSmartRef__":true,"id":12785},"_Extent":{"__isSmartRef__":true,"id":12786},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12787},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"12784":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12785":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12786":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12787":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"12788":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12789":{"morph":{"__isSmartRef__":true,"id":12782},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12790":{"layouter":{"__isSmartRef__":true,"id":12791},"resizeWidth":true},"12791":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":12782},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"12792":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12793":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12794":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12795}},"12795":{"varMapping":{"__isSmartRef__":true,"id":12796},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12796":{"this":{"__isSmartRef__":true,"id":12782},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12797}},"12797":{"$super":{"__isSmartRef__":true,"id":12798}},"12798":{"varMapping":{"__isSmartRef__":true,"id":12799},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12799":{"obj":{"__isSmartRef__":true,"id":12782},"name":"getLayoutableSubmorphs"},"12800":{},"12801":{},"12802":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12803":{"x":100,"y":860,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12804":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12805},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":12812}},"12805":{"varMapping":{"__isSmartRef__":true,"id":12806},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12806":{"this":{"__isSmartRef__":true,"id":9013},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12807}},"12807":{"$super":{"__isSmartRef__":true,"id":12808}},"12808":{"varMapping":{"__isSmartRef__":true,"id":12809},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12809":{"obj":{"__isSmartRef__":true,"id":9013},"name":"getLayoutableSubmorphs"},"12810":{},"12811":{},"12812":{"varMapping":{"__isSmartRef__":true,"id":12813},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (treeNode.treeView.getTypeOf(treeNode.data) !== 'array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12813":{"this":{"__isSmartRef__":true,"id":9013}},"12814":{},"12815":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12816":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":12817}},"12817":{"varMapping":{"__isSmartRef__":true,"id":12818},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":12823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12818":{"this":{"__isSmartRef__":true,"id":9002},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12819}},"12819":{"$super":{"__isSmartRef__":true,"id":12820}},"12820":{"varMapping":{"__isSmartRef__":true,"id":12821},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12821":{"obj":{"__isSmartRef__":true,"id":9002},"name":"getLayoutableSubmorphs"},"12822":{},"12823":{},"12824":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12825":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12826":{"updateExpanderColor":{"__isSmartRef__":true,"id":12827},"onMouseDown":{"__isSmartRef__":true,"id":12830},"isRoot":{"__isSmartRef__":true,"id":12837},"displayValue":{"__isSmartRef__":true,"id":12840},"update":{"__isSmartRef__":true,"id":12843}},"12827":{"varMapping":{"__isSmartRef__":true,"id":12828},"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":12829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12828":{"this":{"__isSmartRef__":true,"id":8955}},"12829":{},"12830":{"varMapping":{"__isSmartRef__":true,"id":12831},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12831":{"this":{"__isSmartRef__":true,"id":8955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12832}},"12832":{"$super":{"__isSmartRef__":true,"id":12833}},"12833":{"varMapping":{"__isSmartRef__":true,"id":12834},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12834":{"obj":{"__isSmartRef__":true,"id":8955},"name":"onMouseDown"},"12835":{},"12836":{},"12837":{"varMapping":{"__isSmartRef__":true,"id":12838},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12838":{"this":{"__isSmartRef__":true,"id":8955}},"12839":{},"12840":{"varMapping":{"__isSmartRef__":true,"id":12841},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12841":{"this":{"__isSmartRef__":true,"id":8955}},"12842":{},"12843":{"varMapping":{"__isSmartRef__":true,"id":12844},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12844":{"this":{"__isSmartRef__":true,"id":8955}},"12845":{},"12846":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12847":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12848":{"updateExpanderColor":{"__isSmartRef__":true,"id":12849},"onMouseDown":{"__isSmartRef__":true,"id":12852},"isRoot":{"__isSmartRef__":true,"id":12859},"displayValue":{"__isSmartRef__":true,"id":12862},"update":{"__isSmartRef__":true,"id":12865}},"12849":{"varMapping":{"__isSmartRef__":true,"id":12850},"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":12851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12850":{"this":{"__isSmartRef__":true,"id":8909}},"12851":{},"12852":{"varMapping":{"__isSmartRef__":true,"id":12853},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":12858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12853":{"this":{"__isSmartRef__":true,"id":8909},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12854}},"12854":{"$super":{"__isSmartRef__":true,"id":12855}},"12855":{"varMapping":{"__isSmartRef__":true,"id":12856},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12856":{"obj":{"__isSmartRef__":true,"id":8909},"name":"onMouseDown"},"12857":{},"12858":{},"12859":{"varMapping":{"__isSmartRef__":true,"id":12860},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":12861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12860":{"this":{"__isSmartRef__":true,"id":8909}},"12861":{},"12862":{"varMapping":{"__isSmartRef__":true,"id":12863},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":12864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12863":{"this":{"__isSmartRef__":true,"id":8909}},"12864":{},"12865":{"varMapping":{"__isSmartRef__":true,"id":12866},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (this.treeView.getTypeOf(this.data) === 'string') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (this.treeView.containsValues(this.data)) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"12866":{"this":{"__isSmartRef__":true,"id":8909}},"12867":{},"12868":{"reset":{"__isSmartRef__":true,"id":12869},"moveFocusTo":{"__isSmartRef__":true,"id":12873},"explore":{"__isSmartRef__":true,"id":12877},"toggleAll":{"__isSmartRef__":true,"id":12881}},"12869":{"varMapping":{"__isSmartRef__":true,"id":12870},"source":"function reset() {\n this.workspace.reset();\n this.treeView.reset();\n this.focusedNode = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12871},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12870":{"this":{"__isSmartRef__":true,"id":5695}},"12871":{"timestamp":{"__isSmartRef__":true,"id":12872},"user":"lauritz","tags":[]},"12872":{"isSerializedDate":true,"string":"Tue Sep 20 2011 16:48:08 GMT-0700 (PDT)"},"12873":{"varMapping":{"__isSmartRef__":true,"id":12874},"source":"function moveFocusTo(focusedNode) {\n\n // set workspace context\n var previouslyFocusedNode = this.focusedNode;\n this.focusedNode = focusedNode;\n this.workspace.doitContext = this.focusedNode.data;\n\n // display focus\n if (previouslyFocusedNode && previouslyFocusedNode.setFill) \n previouslyFocusedNode.text.setFill(null);\n this.focusedNode.text.setFill(this.focusedNode.treeView.colors.focusedText);\n this.focusedNode.expander.toggle();\n}","funcProperties":{"__isSmartRef__":true,"id":12875},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12874":{"this":{"__isSmartRef__":true,"id":5695}},"12875":{"timestamp":{"__isSmartRef__":true,"id":12876},"user":"lauritz","tags":[]},"12876":{"isSerializedDate":true,"string":"Tue Dec 13 2011 14:21:02 GMT-0800 (PST)"},"12877":{"varMapping":{"__isSmartRef__":true,"id":12878},"source":"function explore(object) {\n this.reset();\n this.treeView.renderTree(object);\n\n this.moveFocusTo(this.treeView.rootNode);\n this.workspace.setTextString(\"this\");\n}","funcProperties":{"__isSmartRef__":true,"id":12879},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12878":{"this":{"__isSmartRef__":true,"id":5695}},"12879":{"timestamp":{"__isSmartRef__":true,"id":12880},"user":"lauritz","tags":[]},"12880":{"isSerializedDate":true,"string":"Tue Dec 13 2011 14:21:07 GMT-0800 (PST)"},"12881":{"varMapping":{"__isSmartRef__":true,"id":12882},"source":"function toggleAll() {\n this.treeView.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":12883},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12882":{"this":{"__isSmartRef__":true,"id":5695}},"12883":{"timestamp":{"__isSmartRef__":true,"id":12884},"user":"lauritz","tags":[]},"12884":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:40:54 GMT-0800 (PST)"},"12885":{"submorphs":[],"scripts":[],"id":"0BF38AC7-A468-4BB8-A877-4F24DBD02AE4","shape":{"__isSmartRef__":true,"id":12886},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":12893},"showsHalos":false,"name":"ResizeCorner3","partsBinMetaInfo":{"__isSmartRef__":true,"id":12894},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":12895},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":12896},"eventHandler":{"__isSmartRef__":true,"id":12897},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":5694},"priorExtent":{"__isSmartRef__":true,"id":12898},"distanceToDragEvent":{"__isSmartRef__":true,"id":12899},"derivationIds":[373,"EE44AF79-9BA3-4128-9A82-23CA02A35CBA","2DF62558-574F-4341-A678-C082E7B62474","0B40BDFA-37E3-4097-9157-BE8CCF94B0A1","3600D2AA-3070-493B-839E-BF41427E5A08"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12900},"__LivelyClassName__":"lively.morphic.Box"},"12886":{"position":{"__isSmartRef__":true,"id":12887},"_Extent":{"__isSmartRef__":true,"id":12888},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12889},"_Fill":{"__isSmartRef__":true,"id":12890},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":12891},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12892},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12887":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12888":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12889":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12890":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"12891":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12892":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"12893":{"x":592.4967289451413,"y":533.9213818423029,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12894":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12895":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12896":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12897":{"morph":{"__isSmartRef__":true,"id":12885},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12898":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12899":{"x":29.503271054858715,"y":-15.921381842302935,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12900":{"onDrag":{"__isSmartRef__":true,"id":12901},"onDragEnd":{"__isSmartRef__":true,"id":12908},"onDragStart":{"__isSmartRef__":true,"id":12915}},"12901":{"varMapping":{"__isSmartRef__":true,"id":12902},"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":12907},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12902":{"this":{"__isSmartRef__":true,"id":12885},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12903}},"12903":{"$super":{"__isSmartRef__":true,"id":12904}},"12904":{"varMapping":{"__isSmartRef__":true,"id":12905},"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":12906},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12905":{"obj":{"__isSmartRef__":true,"id":12885},"name":"onDrag"},"12906":{},"12907":{},"12908":{"varMapping":{"__isSmartRef__":true,"id":12909},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12914},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12909":{"this":{"__isSmartRef__":true,"id":12885},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12910}},"12910":{"$super":{"__isSmartRef__":true,"id":12911}},"12911":{"varMapping":{"__isSmartRef__":true,"id":12912},"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":12913},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12912":{"obj":{"__isSmartRef__":true,"id":12885},"name":"onDragEnd"},"12913":{},"12914":{},"12915":{"varMapping":{"__isSmartRef__":true,"id":12916},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":12921},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12916":{"this":{"__isSmartRef__":true,"id":12885},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12917}},"12917":{"$super":{"__isSmartRef__":true,"id":12918}},"12918":{"varMapping":{"__isSmartRef__":true,"id":12919},"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":12920},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"12919":{"obj":{"__isSmartRef__":true,"id":12885},"name":"onDragStart"},"12920":{},"12921":{},"12922":{"submorphs":[{"__isSmartRef__":true,"id":12923},{"__isSmartRef__":true,"id":12937},{"__isSmartRef__":true,"id":12984},{"__isSmartRef__":true,"id":13019}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13055},"id":"7AADD08A-F01C-4C1C-8494-A4154F47D799","renderContextTable":{"__isSmartRef__":true,"id":13061},"eventHandler":{"__isSmartRef__":true,"id":13062},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13063},"_Position":{"__isSmartRef__":true,"id":13064},"windowMorph":{"__isSmartRef__":true,"id":5694},"label":{"__isSmartRef__":true,"id":12923},"closeButton":{"__isSmartRef__":true,"id":12937},"menuButton":{"__isSmartRef__":true,"id":12984},"collapseButton":{"__isSmartRef__":true,"id":13019},"priorExtent":{"__isSmartRef__":true,"id":13065},"owner":{"__isSmartRef__":true,"id":5694},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[374,"CFE848EF-BE01-4E69-BBD0-796826FDBA2C","27B1F973-A4A1-49ED-8194-15A2125092E5","1AAC1E25-BFD3-4949-82B7-CA49C7FE30CC","AAFC6ADC-565B-42D5-B95A-49BB4FAE6F07"],"__LivelyClassName__":"lively.morphic.TitleBar"},"12923":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12924},"id":"E6517DA1-1567-45C6-B015-3B96D100ECD8","renderContextTable":{"__isSmartRef__":true,"id":12930},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":12931}],"eventHandler":{"__isSmartRef__":true,"id":12933},"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":12934},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12922},"priorExtent":{"__isSmartRef__":true,"id":12935},"_MaxTextWidth":546.4967289451413,"_MinTextWidth":546.4967289451413,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":12936},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[375,"73673BCB-A91C-4ECA-A36D-D85A24B4F4A3","2EE1A4B9-842D-4C63-ABEA-21DC74163CEE","3F973521-D5D9-4B44-BCF8-822B923644E8","F50BD739-1DA1-4EB3-9653-7B3145EA8817"],"__LivelyClassName__":"lively.morphic.Text"},"12924":{"_Position":{"__isSmartRef__":true,"id":12925},"renderContextTable":{"__isSmartRef__":true,"id":12926},"_Extent":{"__isSmartRef__":true,"id":12927},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":12928},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12929},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12925":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12926":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12927":{"x":546.4967289451413,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12928":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"12929":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12930":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12931":{"style":{"__isSmartRef__":true,"id":12932},"chunkOwner":{"__isSmartRef__":true,"id":12923},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Explorer","__LivelyClassName__":"lively.morphic.TextChunk"},"12932":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"12933":{"morph":{"__isSmartRef__":true,"id":12923},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12934":{"resizeWidth":true},"12935":{"x":546.4967289451413,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12936":{"x":20,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12937":{"submorphs":[{"__isSmartRef__":true,"id":12938}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12950},"id":"048BB14D-659B-4F28-BF64-5BE8AEFD5409","renderContextTable":{"__isSmartRef__":true,"id":12966},"eventHandler":{"__isSmartRef__":true,"id":12967},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":12968},"priorExtent":{"__isSmartRef__":true,"id":12969},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12956},"lighterFill":{"__isSmartRef__":true,"id":12970},"label":{"__isSmartRef__":true,"id":12938},"owner":{"__isSmartRef__":true,"id":12922},"layout":{"__isSmartRef__":true,"id":12979},"attributeConnections":[{"__isSmartRef__":true,"id":12980},{"__isSmartRef__":true,"id":12982}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[376,"C3AC01F3-7977-4D0A-A42C-700DE29F8F8E","A9533421-3987-49B1-B8FE-11D3B48B77B3","EC79C6DC-0809-4378-8061-032B4DD2D496","4DB70E9E-760D-401A-9BAD-25367B78CF72"],"__LivelyClassName__":"lively.morphic.WindowControl"},"12938":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12939},"id":"92DC118C-48B1-4EA8-A691-725106CC3116","renderContextTable":{"__isSmartRef__":true,"id":12944},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":12945}],"eventHandler":{"__isSmartRef__":true,"id":12947},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":12948},"priorExtent":{"__isSmartRef__":true,"id":12949},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12937},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[377,"C621D837-4DB4-4C83-A8C9-1C995944A45D","BCB8C9A6-BD1A-49F5-8BDD-7C6C8BFB840C","9AA4F44C-9D66-4990-B0E2-2998FC750C65","E136552C-1013-430B-8229-122AA2720D75"],"__LivelyClassName__":"lively.morphic.Text"},"12939":{"_Position":{"__isSmartRef__":true,"id":12940},"renderContextTable":{"__isSmartRef__":true,"id":12941},"_Extent":{"__isSmartRef__":true,"id":12942},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":12943},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12929},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12940":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12941":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12942":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12943":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"12944":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12945":{"style":{"__isSmartRef__":true,"id":12946},"chunkOwner":{"__isSmartRef__":true,"id":12938},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"12946":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"12947":{"morph":{"__isSmartRef__":true,"id":12938},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12948":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12949":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12950":{"_Position":{"__isSmartRef__":true,"id":12951},"renderContextTable":{"__isSmartRef__":true,"id":12952},"_Extent":{"__isSmartRef__":true,"id":12953},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":12954},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12955},"_Fill":{"__isSmartRef__":true,"id":12956},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12951":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12952":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12953":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12954":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"12955":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12956":{"stops":[{"__isSmartRef__":true,"id":12957},{"__isSmartRef__":true,"id":12959},{"__isSmartRef__":true,"id":12961},{"__isSmartRef__":true,"id":12963}],"vector":{"__isSmartRef__":true,"id":12965},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"12957":{"offset":0,"color":{"__isSmartRef__":true,"id":12958}},"12958":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12959":{"offset":0.4,"color":{"__isSmartRef__":true,"id":12960}},"12960":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12961":{"offset":0.6,"color":{"__isSmartRef__":true,"id":12962}},"12962":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12963":{"offset":1,"color":{"__isSmartRef__":true,"id":12964}},"12964":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12965":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"12966":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"12967":{"morph":{"__isSmartRef__":true,"id":12937},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12968":{"x":585.4967289451413,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12969":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12970":{"stops":[{"__isSmartRef__":true,"id":12971},{"__isSmartRef__":true,"id":12973},{"__isSmartRef__":true,"id":12975},{"__isSmartRef__":true,"id":12977}],"vector":{"__isSmartRef__":true,"id":12965},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"12971":{"offset":0,"color":{"__isSmartRef__":true,"id":12972}},"12972":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12973":{"offset":0.4,"color":{"__isSmartRef__":true,"id":12974}},"12974":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12975":{"offset":0.6,"color":{"__isSmartRef__":true,"id":12976}},"12976":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12977":{"offset":1,"color":{"__isSmartRef__":true,"id":12978}},"12978":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12979":{"moveHorizontal":true},"12980":{"sourceObj":{"__isSmartRef__":true,"id":12937},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5694},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12981},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"12981":{"source":{"__isSmartRef__":true,"id":12937},"target":{"__isSmartRef__":true,"id":5694}},"12982":{"sourceObj":{"__isSmartRef__":true,"id":12937},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5694},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":12983},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"12983":{"source":{"__isSmartRef__":true,"id":12937},"target":{"__isSmartRef__":true,"id":5694}},"12984":{"submorphs":[{"__isSmartRef__":true,"id":12985}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12997},"id":"09DBBDBB-6F9B-4A3C-B492-4578C20D6097","renderContextTable":{"__isSmartRef__":true,"id":13002},"eventHandler":{"__isSmartRef__":true,"id":13003},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":13004},"priorExtent":{"__isSmartRef__":true,"id":13005},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12956},"lighterFill":{"__isSmartRef__":true,"id":13006},"label":{"__isSmartRef__":true,"id":12985},"owner":{"__isSmartRef__":true,"id":12922},"attributeConnections":[{"__isSmartRef__":true,"id":13015},{"__isSmartRef__":true,"id":13017}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","prevScroll":[0,0],"derivationIds":[378,"FF4FE4CA-DFFC-40C6-A1E8-32667E37F3EC","A8A6A338-D618-4672-AFA8-914FD7C2A19E","85D2A7A2-F0B5-45CD-BB83-E6F60E8B681C","535E0653-E19D-4F22-952A-34C8EDED44E9"],"__LivelyClassName__":"lively.morphic.WindowControl"},"12985":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12986},"id":"53C0C046-2D8F-49FE-989E-3B4443A289C8","renderContextTable":{"__isSmartRef__":true,"id":12991},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":12992}],"eventHandler":{"__isSmartRef__":true,"id":12994},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":12995},"priorExtent":{"__isSmartRef__":true,"id":12996},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":12984},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[379,"9C08820E-6B60-44C2-9150-BD546391671F","36F5662C-375A-4549-B94E-F150DCBCE3F8","030ACD5E-7567-45E7-928D-24821846DBD3","B1DB7B8C-99F5-44D9-8312-ADD58545154E"],"__LivelyClassName__":"lively.morphic.Text"},"12986":{"_Position":{"__isSmartRef__":true,"id":12987},"renderContextTable":{"__isSmartRef__":true,"id":12988},"_Extent":{"__isSmartRef__":true,"id":12989},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":12990},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12929},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12987":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12988":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"12989":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12990":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"12991":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"12992":{"style":{"__isSmartRef__":true,"id":12993},"chunkOwner":{"__isSmartRef__":true,"id":12985},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"12993":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"12994":{"morph":{"__isSmartRef__":true,"id":12985},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12995":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12996":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12997":{"_Position":{"__isSmartRef__":true,"id":12998},"renderContextTable":{"__isSmartRef__":true,"id":12999},"_Extent":{"__isSmartRef__":true,"id":13000},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13001},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12955},"_Fill":{"__isSmartRef__":true,"id":12956},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12998":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"12999":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13000":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13001":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13002":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13003":{"morph":{"__isSmartRef__":true,"id":12984},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13004":{"x":3,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13005":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13006":{"stops":[{"__isSmartRef__":true,"id":13007},{"__isSmartRef__":true,"id":13009},{"__isSmartRef__":true,"id":13011},{"__isSmartRef__":true,"id":13013}],"vector":{"__isSmartRef__":true,"id":12965},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"13007":{"offset":0,"color":{"__isSmartRef__":true,"id":13008}},"13008":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13009":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13010}},"13010":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13011":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13012}},"13012":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13013":{"offset":1,"color":{"__isSmartRef__":true,"id":13014}},"13014":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13015":{"sourceObj":{"__isSmartRef__":true,"id":12984},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5694},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13016},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"13016":{"source":{"__isSmartRef__":true,"id":12984},"target":{"__isSmartRef__":true,"id":5694}},"13017":{"sourceObj":{"__isSmartRef__":true,"id":12984},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5694},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13018},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"13018":{"source":{"__isSmartRef__":true,"id":12984},"target":{"__isSmartRef__":true,"id":5694}},"13019":{"submorphs":[{"__isSmartRef__":true,"id":13020}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13032},"id":"453B1109-32B0-4ECE-B70E-AE4A4C360701","renderContextTable":{"__isSmartRef__":true,"id":13037},"eventHandler":{"__isSmartRef__":true,"id":13038},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":13039},"priorExtent":{"__isSmartRef__":true,"id":13040},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":12956},"lighterFill":{"__isSmartRef__":true,"id":13041},"label":{"__isSmartRef__":true,"id":13020},"owner":{"__isSmartRef__":true,"id":12922},"layout":{"__isSmartRef__":true,"id":13050},"attributeConnections":[{"__isSmartRef__":true,"id":13051},{"__isSmartRef__":true,"id":13053}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[380,"B603C6F6-E6E9-4618-BF46-1521ADDE21FE","7D67707D-A36A-46C7-AF4E-DBA063259CD8","0CE8DB38-9500-4B3D-BA30-191E72ABDE7C","9C2B6C81-CB1C-4AD9-941A-5307CCDA74CC"],"__LivelyClassName__":"lively.morphic.WindowControl"},"13020":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13021},"id":"19A61991-2845-46FC-BC2F-DDBB9E2A2114","renderContextTable":{"__isSmartRef__":true,"id":13026},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13027}],"eventHandler":{"__isSmartRef__":true,"id":13029},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":13030},"priorExtent":{"__isSmartRef__":true,"id":13031},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13019},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[381,"B48F0AA9-A9AE-4316-865F-D969FFFD4C87","3CE2E949-41E5-4680-ADB0-8AF865F87CA7","C865C749-7005-416E-B5A2-0FB224AB308E","CAED6589-594E-438B-ADB7-264F9B9D92B0"],"__LivelyClassName__":"lively.morphic.Text"},"13021":{"_Position":{"__isSmartRef__":true,"id":13022},"renderContextTable":{"__isSmartRef__":true,"id":13023},"_Extent":{"__isSmartRef__":true,"id":13024},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13025},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12929},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13022":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13023":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13024":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13025":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13026":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13027":{"style":{"__isSmartRef__":true,"id":13028},"chunkOwner":{"__isSmartRef__":true,"id":13020},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"13028":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"13029":{"morph":{"__isSmartRef__":true,"id":13020},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13030":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13031":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13032":{"_Position":{"__isSmartRef__":true,"id":13033},"renderContextTable":{"__isSmartRef__":true,"id":13034},"_Extent":{"__isSmartRef__":true,"id":13035},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13036},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":12955},"_Fill":{"__isSmartRef__":true,"id":12956},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13033":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"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":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13036":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","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":13019},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13039":{"x":566.4967289451413,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13040":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13041":{"stops":[{"__isSmartRef__":true,"id":13042},{"__isSmartRef__":true,"id":13044},{"__isSmartRef__":true,"id":13046},{"__isSmartRef__":true,"id":13048}],"vector":{"__isSmartRef__":true,"id":12965},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"13042":{"offset":0,"color":{"__isSmartRef__":true,"id":13043}},"13043":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13044":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13045}},"13045":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13046":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13047}},"13047":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13048":{"offset":1,"color":{"__isSmartRef__":true,"id":13049}},"13049":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13050":{"moveHorizontal":true},"13051":{"sourceObj":{"__isSmartRef__":true,"id":13019},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5694},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13052},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"13052":{"source":{"__isSmartRef__":true,"id":13019},"target":{"__isSmartRef__":true,"id":5694}},"13053":{"sourceObj":{"__isSmartRef__":true,"id":13019},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5694},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13054},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"13054":{"source":{"__isSmartRef__":true,"id":13019},"target":{"__isSmartRef__":true,"id":5694}},"13055":{"_Position":{"__isSmartRef__":true,"id":13056},"renderContextTable":{"__isSmartRef__":true,"id":13057},"_Extent":{"__isSmartRef__":true,"id":13058},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13059},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13060},"_Fill":{"__isSmartRef__":true,"id":5616},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","_Opacity":1,"_BorderStyle":"solid","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13056":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13058":{"x":605.4967289451413,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13059":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13060":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"13061":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13062":{"morph":{"__isSmartRef__":true,"id":12922},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13063":{"resizeWidth":true,"adjustForNewBounds":true},"13064":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13065":{"x":605.4967289451413,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13066":{"renderContextTable":{"__isSmartRef__":true,"id":13067},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13068},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":13069},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"13067":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13068":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13069":{"x":605.4967289451413,"y":548.9213818423029,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13070":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13071":{"morph":{"__isSmartRef__":true,"id":5694},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"13072":{"adjustForNewBounds":true},"13073":{"x":538.2419960853151,"y":259.1341177034619,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13074":{"x":605.4967289451413,"y":548.9213818423029,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13075":{"x":0,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13076":{"x":275,"y":263,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13077":{"x":178,"y":269,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"13078":{"explore":{"__isSmartRef__":true,"id":13079},"reset":{"__isSmartRef__":true,"id":13083},"inspect":{"__isSmartRef__":true,"id":13087},"toggleAll":{"__isSmartRef__":true,"id":13091}},"13079":{"varMapping":{"__isSmartRef__":true,"id":13080},"source":"function explore(object) {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":13081},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13080":{"this":{"__isSmartRef__":true,"id":5694}},"13081":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":13082}},"13082":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:25:04 GMT-0700 (PDT)"},"13083":{"varMapping":{"__isSmartRef__":true,"id":13084},"source":"function reset() {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":13085},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13084":{"this":{"__isSmartRef__":true,"id":5694}},"13085":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":13086}},"13086":{"isSerializedDate":true,"string":"Wed Sep 21 2011 10:25:04 GMT-0700 (PDT)"},"13087":{"varMapping":{"__isSmartRef__":true,"id":13088},"source":"function inspect(object) {\n // alias for explore\n this.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":13089},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13088":{"this":{"__isSmartRef__":true,"id":5694}},"13089":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":13090}},"13090":{"isSerializedDate":true,"string":"Tue Nov 15 2011 14:04:54 GMT-0800 (PST)"},"13091":{"varMapping":{"__isSmartRef__":true,"id":13092},"source":"function toggleAll() {\n this.explorer.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":13093},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"13092":{"this":{"__isSmartRef__":true,"id":5694}},"13093":{"timestamp":{"__isSmartRef__":true,"id":13094},"user":"lauritz","tags":[]},"13094":{"isSerializedDate":true,"string":"Thu Jan 05 2012 13:40:45 GMT-0800 (PST)"},"13095":{"submorphs":[{"__isSmartRef__":true,"id":13096},{"__isSmartRef__":true,"id":13125}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13265},"derivationIds":[null],"id":"32D8BEA2-7FFC-4CB3-BE02-1ADABE058336","renderContextTable":{"__isSmartRef__":true,"id":13269},"eventHandler":{"__isSmartRef__":true,"id":13270},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":13271},"LK2":true,"_Position":{"__isSmartRef__":true,"id":13272},"priorExtent":{"__isSmartRef__":true,"id":13273},"targetMorph":{"__isSmartRef__":true,"id":13096},"titleBar":{"__isSmartRef__":true,"id":13125},"contentOffset":{"__isSmartRef__":true,"id":13121},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":0},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":13274},"isBeingDragged":false,"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"13096":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13097},"derivationIds":[null],"id":"63B7F1AC-D4C3-41FA-93A7-88BB2E4D1E2B","renderContextTable":{"__isSmartRef__":true,"id":13103},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13104},{"__isSmartRef__":true,"id":13106},{"__isSmartRef__":true,"id":13109},{"__isSmartRef__":true,"id":13111},{"__isSmartRef__":true,"id":13114},{"__isSmartRef__":true,"id":13116},{"__isSmartRef__":true,"id":13118}],"eventHandler":{"__isSmartRef__":true,"id":13120},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13121},"priorExtent":{"__isSmartRef__":true,"id":13122},"_MaxTextWidth":490,"_MinTextWidth":490,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13095},"layout":{"__isSmartRef__":true,"id":13123},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":13124}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"textString":"t = new lively.morphic.DataGrid(10,10)\n\nt.openInWorld()","lastSyntaxHighlightTime":1326841087340,"accessibleInInactiveWindow":true,"previousSelection":[23,31],"priorSelectionRange":[19,19],"charsReplaced":"","lastFindLoc":40,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13097":{"_Position":{"__isSmartRef__":true,"id":13098},"renderContextTable":{"__isSmartRef__":true,"id":13099},"_Extent":{"__isSmartRef__":true,"id":13100},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13101},"_Fill":{"__isSmartRef__":true,"id":13102},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13098":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13099":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13100":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13101":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13102":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13103":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13104":{"style":{"__isSmartRef__":true,"id":13105},"chunkOwner":{"__isSmartRef__":true,"id":13096},"storedString":"t = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13105":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13106":{"style":{"__isSmartRef__":true,"id":13107},"chunkOwner":{"__isSmartRef__":true,"id":13096},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13107":{"color":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13108":{"r":0,"g":0,"b":0.5450980392156862,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13109":{"style":{"__isSmartRef__":true,"id":13110},"chunkOwner":{"__isSmartRef__":true,"id":13096},"storedString":" lively.morphic.DataGrid(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13110":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13111":{"style":{"__isSmartRef__":true,"id":13112},"chunkOwner":{"__isSmartRef__":true,"id":13096},"storedString":"10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13112":{"color":{"__isSmartRef__":true,"id":13113},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13113":{"r":0,"g":0,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13114":{"style":{"__isSmartRef__":true,"id":13115},"chunkOwner":{"__isSmartRef__":true,"id":13096},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13115":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13116":{"style":{"__isSmartRef__":true,"id":13117},"chunkOwner":{"__isSmartRef__":true,"id":13096},"storedString":"10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13117":{"color":{"__isSmartRef__":true,"id":13113},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13118":{"style":{"__isSmartRef__":true,"id":13119},"chunkOwner":{"__isSmartRef__":true,"id":13096},"storedString":")\n\nt.openInWorld()","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13119":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13120":{"morph":{"__isSmartRef__":true,"id":13096},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13121":{"x":0,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13122":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13123":{"resizeWidth":true,"resizeHeight":true},"13124":{"sourceObj":{"__isSmartRef__":true,"id":13096},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":13096},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13125":{"submorphs":[{"__isSmartRef__":true,"id":13126},{"__isSmartRef__":true,"id":13139},{"__isSmartRef__":true,"id":13185},{"__isSmartRef__":true,"id":13219}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13254},"derivationIds":[null],"id":"6D7476ED-FCF3-4273-9036-1AE2C9E59444","renderContextTable":{"__isSmartRef__":true,"id":13260},"eventHandler":{"__isSmartRef__":true,"id":13261},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":13262},"_Position":{"__isSmartRef__":true,"id":13263},"windowMorph":{"__isSmartRef__":true,"id":13095},"label":{"__isSmartRef__":true,"id":13126},"closeButton":{"__isSmartRef__":true,"id":13139},"menuButton":{"__isSmartRef__":true,"id":13185},"collapseButton":{"__isSmartRef__":true,"id":13219},"priorExtent":{"__isSmartRef__":true,"id":13264},"owner":{"__isSmartRef__":true,"id":13095},"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13126":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13127},"derivationIds":[null],"id":"BD5A25B6-FDAB-49CC-8074-C13CE10289CC","renderContextTable":{"__isSmartRef__":true,"id":13132},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13133}],"eventHandler":{"__isSmartRef__":true,"id":13135},"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":13136},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":13125},"priorExtent":{"__isSmartRef__":true,"id":13137},"_MaxTextWidth":441,"_MinTextWidth":441,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":13138},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13127":{"_Position":{"__isSmartRef__":true,"id":13128},"renderContextTable":{"__isSmartRef__":true,"id":13129},"_Extent":{"__isSmartRef__":true,"id":13130},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13131},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"_BorderRadius":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13128":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13129":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13130":{"x":441,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13131":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13132":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13133":{"style":{"__isSmartRef__":true,"id":13134},"chunkOwner":{"__isSmartRef__":true,"id":13126},"storedString":"Workspace","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13134":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13135":{"morph":{"__isSmartRef__":true,"id":13126},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13136":{"resizeWidth":true},"13137":{"x":0,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13138":{"x":20,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13139":{"submorphs":[{"__isSmartRef__":true,"id":13140}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13152},"derivationIds":[null],"id":"4D70A092-B3BB-43A6-AB7B-FA98DA1CD244","renderContextTable":{"__isSmartRef__":true,"id":13167},"eventHandler":{"__isSmartRef__":true,"id":13168},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":13169},"priorExtent":{"__isSmartRef__":true,"id":13170},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13171},"label":{"__isSmartRef__":true,"id":13140},"owner":{"__isSmartRef__":true,"id":13125},"layout":{"__isSmartRef__":true,"id":13180},"attributeConnections":[{"__isSmartRef__":true,"id":13181},{"__isSmartRef__":true,"id":13183}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13140":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13141},"derivationIds":[null],"id":"8881593A-92C0-4F27-A899-C35CD7A505F8","renderContextTable":{"__isSmartRef__":true,"id":13146},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13147}],"eventHandler":{"__isSmartRef__":true,"id":13149},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":13150},"priorExtent":{"__isSmartRef__":true,"id":13151},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13139},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13141":{"_Position":{"__isSmartRef__":true,"id":13142},"renderContextTable":{"__isSmartRef__":true,"id":13143},"_Extent":{"__isSmartRef__":true,"id":13144},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13145},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13142":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13143":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13144":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13145":{"x":0,"y":3,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13146":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13147":{"style":{"__isSmartRef__":true,"id":13148},"chunkOwner":{"__isSmartRef__":true,"id":13140},"storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13148":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13149":{"morph":{"__isSmartRef__":true,"id":13140},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13150":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13151":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13152":{"_Position":{"__isSmartRef__":true,"id":13153},"renderContextTable":{"__isSmartRef__":true,"id":13154},"_Extent":{"__isSmartRef__":true,"id":13155},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13156},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_StrokeOpacity":0,"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13153":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13154":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13155":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13156":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13157":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13158":{"stops":[{"__isSmartRef__":true,"id":13159},{"__isSmartRef__":true,"id":13161},{"__isSmartRef__":true,"id":13163},{"__isSmartRef__":true,"id":13165}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13159":{"offset":0,"color":{"__isSmartRef__":true,"id":13160}},"13160":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13161":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13162}},"13162":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13163":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13164}},"13164":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13165":{"offset":1,"color":{"__isSmartRef__":true,"id":13166}},"13166":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13167":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13168":{"morph":{"__isSmartRef__":true,"id":13139},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13169":{"x":480,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13170":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13171":{"stops":[{"__isSmartRef__":true,"id":13172},{"__isSmartRef__":true,"id":13174},{"__isSmartRef__":true,"id":13176},{"__isSmartRef__":true,"id":13178}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13172":{"offset":0,"color":{"__isSmartRef__":true,"id":13173}},"13173":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13174":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13175}},"13175":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13176":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13177}},"13177":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13178":{"offset":1,"color":{"__isSmartRef__":true,"id":13179}},"13179":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13180":{"moveHorizontal":true},"13181":{"sourceObj":{"__isSmartRef__":true,"id":13139},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13095},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13182},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13182":{"source":{"__isSmartRef__":true,"id":13139},"target":{"__isSmartRef__":true,"id":13095}},"13183":{"sourceObj":{"__isSmartRef__":true,"id":13139},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13095},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13184},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13184":{"source":{"__isSmartRef__":true,"id":13139},"target":{"__isSmartRef__":true,"id":13095}},"13185":{"submorphs":[{"__isSmartRef__":true,"id":13186}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13197},"derivationIds":[null],"id":"CCA7B8D5-23A6-4302-9522-75BE704C7E2B","renderContextTable":{"__isSmartRef__":true,"id":13202},"eventHandler":{"__isSmartRef__":true,"id":13203},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":13204},"priorExtent":{"__isSmartRef__":true,"id":13205},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13206},"label":{"__isSmartRef__":true,"id":13186},"owner":{"__isSmartRef__":true,"id":13125},"attributeConnections":[{"__isSmartRef__":true,"id":13215},{"__isSmartRef__":true,"id":13217}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13186":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13187},"derivationIds":[null],"id":"BED8AB64-1724-4324-BF1E-16908F6658B7","renderContextTable":{"__isSmartRef__":true,"id":13191},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13192}],"eventHandler":{"__isSmartRef__":true,"id":13194},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":13195},"priorExtent":{"__isSmartRef__":true,"id":13196},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13185},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13187":{"_Position":{"__isSmartRef__":true,"id":13188},"renderContextTable":{"__isSmartRef__":true,"id":13189},"_Extent":{"__isSmartRef__":true,"id":13190},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13145},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13188":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13189":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13190":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13191":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13192":{"style":{"__isSmartRef__":true,"id":13193},"chunkOwner":{"__isSmartRef__":true,"id":13186},"storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13193":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13194":{"morph":{"__isSmartRef__":true,"id":13186},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13195":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13196":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13197":{"_Position":{"__isSmartRef__":true,"id":13198},"renderContextTable":{"__isSmartRef__":true,"id":13199},"_Extent":{"__isSmartRef__":true,"id":13200},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13201},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_StrokeOpacity":0,"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13198":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13199":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13200":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13201":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13202":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13203":{"morph":{"__isSmartRef__":true,"id":13185},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13204":{"x":3,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13205":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13206":{"stops":[{"__isSmartRef__":true,"id":13207},{"__isSmartRef__":true,"id":13209},{"__isSmartRef__":true,"id":13211},{"__isSmartRef__":true,"id":13213}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13207":{"offset":0,"color":{"__isSmartRef__":true,"id":13208}},"13208":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13209":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13210}},"13210":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13211":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13212}},"13212":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13213":{"offset":1,"color":{"__isSmartRef__":true,"id":13214}},"13214":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13215":{"sourceObj":{"__isSmartRef__":true,"id":13185},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13095},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13216},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13216":{"source":{"__isSmartRef__":true,"id":13185},"target":{"__isSmartRef__":true,"id":13095}},"13217":{"sourceObj":{"__isSmartRef__":true,"id":13185},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13095},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13218},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13218":{"source":{"__isSmartRef__":true,"id":13185},"target":{"__isSmartRef__":true,"id":13095}},"13219":{"submorphs":[{"__isSmartRef__":true,"id":13220}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13231},"derivationIds":[null],"id":"A3905E3A-CF0E-40C8-9EDB-CDFB418A2214","renderContextTable":{"__isSmartRef__":true,"id":13236},"eventHandler":{"__isSmartRef__":true,"id":13237},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":13238},"priorExtent":{"__isSmartRef__":true,"id":13239},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13240},"label":{"__isSmartRef__":true,"id":13220},"owner":{"__isSmartRef__":true,"id":13125},"layout":{"__isSmartRef__":true,"id":13249},"attributeConnections":[{"__isSmartRef__":true,"id":13250},{"__isSmartRef__":true,"id":13252}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13220":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13221},"derivationIds":[null],"id":"5D78541F-EC2B-433A-AE99-962849A482D2","renderContextTable":{"__isSmartRef__":true,"id":13225},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13226}],"eventHandler":{"__isSmartRef__":true,"id":13228},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":13229},"priorExtent":{"__isSmartRef__":true,"id":13230},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13219},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13221":{"_Position":{"__isSmartRef__":true,"id":13222},"renderContextTable":{"__isSmartRef__":true,"id":13223},"_Extent":{"__isSmartRef__":true,"id":13224},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13145},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13222":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13223":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13224":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13225":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13226":{"style":{"__isSmartRef__":true,"id":13227},"chunkOwner":{"__isSmartRef__":true,"id":13220},"storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13227":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13228":{"morph":{"__isSmartRef__":true,"id":13220},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13229":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13230":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13231":{"_Position":{"__isSmartRef__":true,"id":13232},"renderContextTable":{"__isSmartRef__":true,"id":13233},"_Extent":{"__isSmartRef__":true,"id":13234},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13235},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_StrokeOpacity":0,"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13232":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13233":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13234":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13235":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13236":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13237":{"morph":{"__isSmartRef__":true,"id":13219},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13238":{"x":461,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13239":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13240":{"stops":[{"__isSmartRef__":true,"id":13241},{"__isSmartRef__":true,"id":13243},{"__isSmartRef__":true,"id":13245},{"__isSmartRef__":true,"id":13247}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13241":{"offset":0,"color":{"__isSmartRef__":true,"id":13242}},"13242":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13243":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13244}},"13244":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13245":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13246}},"13246":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13247":{"offset":1,"color":{"__isSmartRef__":true,"id":13248}},"13248":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13249":{"moveHorizontal":true},"13250":{"sourceObj":{"__isSmartRef__":true,"id":13219},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13095},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13251},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13251":{"source":{"__isSmartRef__":true,"id":13219},"target":{"__isSmartRef__":true,"id":13095}},"13252":{"sourceObj":{"__isSmartRef__":true,"id":13219},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13095},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13253},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13253":{"source":{"__isSmartRef__":true,"id":13219},"target":{"__isSmartRef__":true,"id":13095}},"13254":{"_Position":{"__isSmartRef__":true,"id":13255},"renderContextTable":{"__isSmartRef__":true,"id":13256},"_Extent":{"__isSmartRef__":true,"id":13257},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13258},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13259},"_Fill":{"__isSmartRef__":true,"id":5616},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13257":{"x":500,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13259":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13261":{"morph":{"__isSmartRef__":true,"id":13125},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13262":{"resizeWidth":true,"adjustForNewBounds":true},"13263":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13264":{"x":500,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13265":{"renderContextTable":{"__isSmartRef__":true,"id":13266},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13267},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":13268},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13266":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13267":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13268":{"x":500,"y":221,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13269":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13270":{"morph":{"__isSmartRef__":true,"id":13095},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13271":{"adjustForNewBounds":true},"13272":{"x":454,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13273":{"x":500,"y":221,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13274":{"x":515,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13275":{"submorphs":[{"__isSmartRef__":true,"id":13276},{"__isSmartRef__":true,"id":14211}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14338},"derivationIds":[null],"id":"4C652C80-2572-4E31-A73C-A79BD61F103F","renderContextTable":{"__isSmartRef__":true,"id":14342},"eventHandler":{"__isSmartRef__":true,"id":14343},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":14344},"LK2":true,"_Position":{"__isSmartRef__":true,"id":14345},"priorExtent":{"__isSmartRef__":true,"id":14346},"targetMorph":{"__isSmartRef__":true,"id":13276},"titleBar":{"__isSmartRef__":true,"id":14211},"contentOffset":{"__isSmartRef__":true,"id":14210},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":0},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":14347},"isBeingDragged":false,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"13276":{"submorphs":[{"__isSmartRef__":true,"id":13277},{"__isSmartRef__":true,"id":14123},{"__isSmartRef__":true,"id":14157},{"__isSmartRef__":true,"id":13547},{"__isSmartRef__":true,"id":13900},{"__isSmartRef__":true,"id":13968},{"__isSmartRef__":true,"id":14010},{"__isSmartRef__":true,"id":14191},{"__isSmartRef__":true,"id":14072},{"__isSmartRef__":true,"id":13292},{"__isSmartRef__":true,"id":13327},{"__isSmartRef__":true,"id":13362},{"__isSmartRef__":true,"id":13397},{"__isSmartRef__":true,"id":13432},{"__isSmartRef__":true,"id":13467},{"__isSmartRef__":true,"id":13505}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14201},"derivationIds":[null],"id":"152D3753-E18D-4D6F-9BFE-29DFC10A1EC6","renderContextTable":{"__isSmartRef__":true,"id":14207},"eventHandler":{"__isSmartRef__":true,"id":14208},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":14209},"_Position":{"__isSmartRef__":true,"id":14210},"locationPane":{"__isSmartRef__":true,"id":13277},"codeBaseDirBtn":{"__isSmartRef__":true,"id":14123},"localDirBtn":{"__isSmartRef__":true,"id":14157},"Pane1":{"__isSmartRef__":true,"id":13547},"Pane2":{"__isSmartRef__":true,"id":13900},"Pane3":{"__isSmartRef__":true,"id":13968},"Pane4":{"__isSmartRef__":true,"id":14010},"midResizer":{"__isSmartRef__":true,"id":14191},"sourcePane":{"__isSmartRef__":true,"id":14072},"ownerWidget":{"__isSmartRef__":true,"id":13290},"owner":{"__isSmartRef__":true,"id":13275},"ownerApp":{"__isSmartRef__":true,"id":13290},"targetURL":{"__isSmartRef__":true,"id":14121},"prevScroll":[0,0],"__LivelyClassName__":"lively.ide.BrowserPanel","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"13277":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13278},"derivationIds":[null],"id":"F9E350BB-7DAE-4206-BD7C-FAC1B7B77DF3","renderContextTable":{"__isSmartRef__":true,"id":13282},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13283}],"eventHandler":{"__isSmartRef__":true,"id":13285},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13286},"priorExtent":{"__isSmartRef__":true,"id":13287},"_MaxTextWidth":646,"_MinTextWidth":646,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13276},"isInputLine":true,"layout":{"__isSmartRef__":true,"id":13288},"noEval":true,"styleClass":["Browser_locationInput"],"attributeConnections":[{"__isSmartRef__":true,"id":13289}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13278":{"_Position":{"__isSmartRef__":true,"id":13279},"renderContextTable":{"__isSmartRef__":true,"id":13280},"_Extent":{"__isSmartRef__":true,"id":13281},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13279":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13280":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13281":{"x":656,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13282":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13283":{"style":{"__isSmartRef__":true,"id":13284},"chunkOwner":{"__isSmartRef__":true,"id":13277},"storedString":"http://lively-kernel.org/repository/webwerkstatt/core/lively/morphic/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13284":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13285":{"morph":{"__isSmartRef__":true,"id":13277},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13286":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13287":{"x":656,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13288":{"resizeWidth":true},"13289":{"sourceObj":{"__isSmartRef__":true,"id":13277},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"setTargetURL","converter":null,"converterString":"function (value) { return new URL(value) }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14122},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13290":{"buttonCommands":[{"__isSmartRef__":true,"id":13291},{"__isSmartRef__":true,"id":13326},{"__isSmartRef__":true,"id":13361},{"__isSmartRef__":true,"id":13396},{"__isSmartRef__":true,"id":13431},{"__isSmartRef__":true,"id":13466},{"__isSmartRef__":true,"id":13504}],"RootFilters":[{"__isSmartRef__":true,"id":13539},{"__isSmartRef__":true,"id":13540}],"Pane1Filters":[{"__isSmartRef__":true,"id":13541},{"__isSmartRef__":true,"id":13542},{"__isSmartRef__":true,"id":13540}],"Pane2Filters":[{"__isSmartRef__":true,"id":13543},{"__isSmartRef__":true,"id":13540}],"Pane3Filters":[{"__isSmartRef__":true,"id":13544},{"__isSmartRef__":true,"id":13540}],"Pane4Filters":[{"__isSmartRef__":true,"id":13545},{"__isSmartRef__":true,"id":13540}],"evaluate":true,"panel":{"__isSmartRef__":true,"id":13276},"attributeConnections":[{"__isSmartRef__":true,"id":13546},{"__isSmartRef__":true,"id":13899},{"__isSmartRef__":true,"id":13967},{"__isSmartRef__":true,"id":14009},{"__isSmartRef__":true,"id":14071},{"__isSmartRef__":true,"id":14116}],"SourceString":" initialize: function($super, arg) {\n $super(arg);\n this.evalExpression = undefined;\n },","sourceString":" initialize: function($super, arg) {\n $super(arg);\n this.evalExpression = undefined;\n },","doNotSerialize":["$$targetURL"],"doNotCopyProperties":["$$targetURL"],"targetURL":{"__isSmartRef__":true,"id":14121},"_rootNode":{"__isSmartRef__":true,"id":13558},"Pane1Selection":{"__isSmartRef__":true,"id":13562},"pane1Selection":{"__isSmartRef__":true,"id":13562},"Pane2Selection":{"__isSmartRef__":true,"id":13913},"pane2Selection":{"__isSmartRef__":true,"id":13913},"Pane3Selection":{"__isSmartRef__":true,"id":13977},"pane3Selection":{"__isSmartRef__":true,"id":13977},"Pane4Selection":{"__isSmartRef__":true,"id":14029},"pane4Selection":{"__isSmartRef__":true,"id":14029},"Pane4Content":[{"__isSmartRef__":true,"id":14018},{"__isSmartRef__":true,"id":14020},{"__isSmartRef__":true,"id":14022},{"__isSmartRef__":true,"id":14024},{"__isSmartRef__":true,"id":14026},{"__isSmartRef__":true,"id":14028},{"__isSmartRef__":true,"id":14030},{"__isSmartRef__":true,"id":14032},{"__isSmartRef__":true,"id":14034},{"__isSmartRef__":true,"id":14036},{"__isSmartRef__":true,"id":14038},{"__isSmartRef__":true,"id":14040}],"Pane3Content":[{"__isSmartRef__":true,"id":13976},{"__isSmartRef__":true,"id":13978}],"Pane2Content":[{"__isSmartRef__":true,"id":13908},{"__isSmartRef__":true,"id":13910},{"__isSmartRef__":true,"id":13912},{"__isSmartRef__":true,"id":13914},{"__isSmartRef__":true,"id":13916},{"__isSmartRef__":true,"id":13918},{"__isSmartRef__":true,"id":13920},{"__isSmartRef__":true,"id":13922},{"__isSmartRef__":true,"id":13924},{"__isSmartRef__":true,"id":13926},{"__isSmartRef__":true,"id":13928},{"__isSmartRef__":true,"id":13930},{"__isSmartRef__":true,"id":13932},{"__isSmartRef__":true,"id":13934},{"__isSmartRef__":true,"id":13936}],"Pane1Content":[{"__isSmartRef__":true,"id":13555},{"__isSmartRef__":true,"id":13834},{"__isSmartRef__":true,"id":13835},{"__isSmartRef__":true,"id":13836},{"__isSmartRef__":true,"id":13837},{"__isSmartRef__":true,"id":13838},{"__isSmartRef__":true,"id":13839},{"__isSmartRef__":true,"id":13840},{"__isSmartRef__":true,"id":13841},{"__isSmartRef__":true,"id":13842},{"__isSmartRef__":true,"id":13843},{"__isSmartRef__":true,"id":13844},{"__isSmartRef__":true,"id":13845},{"__isSmartRef__":true,"id":13846},{"__isSmartRef__":true,"id":13847},{"__isSmartRef__":true,"id":13848},{"__isSmartRef__":true,"id":13849},{"__isSmartRef__":true,"id":13850},{"__isSmartRef__":true,"id":13851},{"__isSmartRef__":true,"id":13852},{"__isSmartRef__":true,"id":13853},{"__isSmartRef__":true,"id":13854},{"__isSmartRef__":true,"id":13855},{"__isSmartRef__":true,"id":13856},{"__isSmartRef__":true,"id":13857},{"__isSmartRef__":true,"id":13858},{"__isSmartRef__":true,"id":13859},{"__isSmartRef__":true,"id":13860},{"__isSmartRef__":true,"id":13861},{"__isSmartRef__":true,"id":13862},{"__isSmartRef__":true,"id":13863},{"__isSmartRef__":true,"id":13864},{"__isSmartRef__":true,"id":13865},{"__isSmartRef__":true,"id":13866},{"__isSmartRef__":true,"id":13867},{"__isSmartRef__":true,"id":13868}],"view":{"__isSmartRef__":true,"id":13275},"Pane1Menu":[["Add to world requirements"],["remove"],["reparse"],["-------"],["open in text editor"],["show versions"],["diff versions"]],"Pane2Menu":[["references"],["add sibling below"],["remove"],["-------"],["view hierarchy"],["add class"],["add object extension"],["add layer"]],"Pane3Menu":[["add sibling below"],["remove"]],"currentModuleName":"lively.morphic.AdditionalMorphs","Pane4Menu":[["senders"],["implementors"],["add sibling below"],["remove"],["-------"],["add method"]],"__LivelyClassName__":"lively.ide.SystemBrowser","__SourceModuleName__":"Global.lively.ide.SystemCodeBrowser"},"13291":{"browser":{"__isSmartRef__":true,"id":13290},"button":{"__isSmartRef__":true,"id":13292},"__LivelyClassName__":"lively.ide.AddNewFileCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"13292":{"submorphs":[{"__isSmartRef__":true,"id":13293}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13305},"derivationIds":[null],"id":"BBF553AA-370B-4875-B10B-497AA50125B2","renderContextTable":{"__isSmartRef__":true,"id":13310},"eventHandler":{"__isSmartRef__":true,"id":13311},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13312},"priorExtent":{"__isSmartRef__":true,"id":13313},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13314},"label":{"__isSmartRef__":true,"id":13293},"command":{"__isSmartRef__":true,"id":13291},"attributeConnections":[{"__isSmartRef__":true,"id":13323},{"__isSmartRef__":true,"id":13324}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13293":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13294},"derivationIds":[null],"id":"FEC908BE-B942-47D9-988E-763F16E5D0E7","renderContextTable":{"__isSmartRef__":true,"id":13299},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13300}],"eventHandler":{"__isSmartRef__":true,"id":13302},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13303},"priorExtent":{"__isSmartRef__":true,"id":13304},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13292},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13294":{"_Position":{"__isSmartRef__":true,"id":13295},"renderContextTable":{"__isSmartRef__":true,"id":13296},"_Extent":{"__isSmartRef__":true,"id":13297},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13298},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13295":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13296":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13297":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13298":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13299":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13300":{"style":{"__isSmartRef__":true,"id":13301},"chunkOwner":{"__isSmartRef__":true,"id":13293},"storedString":"Add module","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13301":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13302":{"morph":{"__isSmartRef__":true,"id":13293},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13304":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13305":{"_Position":{"__isSmartRef__":true,"id":13306},"renderContextTable":{"__isSmartRef__":true,"id":13307},"_Extent":{"__isSmartRef__":true,"id":13308},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13309},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13306":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13307":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13308":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13309":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13310":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13311":{"morph":{"__isSmartRef__":true,"id":13292},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13312":{"x":0,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13313":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13314":{"stops":[{"__isSmartRef__":true,"id":13315},{"__isSmartRef__":true,"id":13317},{"__isSmartRef__":true,"id":13319},{"__isSmartRef__":true,"id":13321}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13315":{"offset":0,"color":{"__isSmartRef__":true,"id":13316}},"13316":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13317":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13318}},"13318":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13319":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13320}},"13320":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13321":{"offset":1,"color":{"__isSmartRef__":true,"id":13322}},"13322":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13323":{"sourceObj":{"__isSmartRef__":true,"id":13292},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13291},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13324":{"sourceObj":{"__isSmartRef__":true,"id":13292},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13292},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13325},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13325":{"source":{"__isSmartRef__":true,"id":13292},"target":{"__isSmartRef__":true,"id":13292}},"13326":{"browser":{"__isSmartRef__":true,"id":13290},"button":{"__isSmartRef__":true,"id":13327},"__LivelyClassName__":"lively.ide.AllModulesLoadCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"13327":{"submorphs":[{"__isSmartRef__":true,"id":13328}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13340},"derivationIds":[null],"id":"817BB836-E9E1-40BC-8A67-3CC9BB9CC170","renderContextTable":{"__isSmartRef__":true,"id":13345},"eventHandler":{"__isSmartRef__":true,"id":13346},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13347},"priorExtent":{"__isSmartRef__":true,"id":13348},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13349},"label":{"__isSmartRef__":true,"id":13328},"command":{"__isSmartRef__":true,"id":13326},"attributeConnections":[{"__isSmartRef__":true,"id":13358},{"__isSmartRef__":true,"id":13359}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13328":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13329},"derivationIds":[null],"id":"7BA4BD47-2037-4809-9DC3-A5AE9B5A0AC5","renderContextTable":{"__isSmartRef__":true,"id":13334},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13335}],"eventHandler":{"__isSmartRef__":true,"id":13337},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13338},"priorExtent":{"__isSmartRef__":true,"id":13339},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13327},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13329":{"_Position":{"__isSmartRef__":true,"id":13330},"renderContextTable":{"__isSmartRef__":true,"id":13331},"_Extent":{"__isSmartRef__":true,"id":13332},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13333},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13330":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13331":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13332":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13333":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13334":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13335":{"style":{"__isSmartRef__":true,"id":13336},"chunkOwner":{"__isSmartRef__":true,"id":13328},"storedString":"Load all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13336":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13337":{"morph":{"__isSmartRef__":true,"id":13328},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13338":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13339":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13340":{"_Position":{"__isSmartRef__":true,"id":13341},"renderContextTable":{"__isSmartRef__":true,"id":13342},"_Extent":{"__isSmartRef__":true,"id":13343},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13344},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13341":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13342":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13343":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13344":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13345":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13346":{"morph":{"__isSmartRef__":true,"id":13327},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13347":{"x":117.14285714285714,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13348":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13349":{"stops":[{"__isSmartRef__":true,"id":13350},{"__isSmartRef__":true,"id":13352},{"__isSmartRef__":true,"id":13354},{"__isSmartRef__":true,"id":13356}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13350":{"offset":0,"color":{"__isSmartRef__":true,"id":13351}},"13351":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13352":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13353}},"13353":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13354":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13355}},"13355":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13356":{"offset":1,"color":{"__isSmartRef__":true,"id":13357}},"13357":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13358":{"sourceObj":{"__isSmartRef__":true,"id":13327},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13326},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13359":{"sourceObj":{"__isSmartRef__":true,"id":13327},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13327},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13360},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13360":{"source":{"__isSmartRef__":true,"id":13327},"target":{"__isSmartRef__":true,"id":13327}},"13361":{"browser":{"__isSmartRef__":true,"id":13290},"button":{"__isSmartRef__":true,"id":13362},"__LivelyClassName__":"lively.ide.ShowLineNumbersCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"13362":{"submorphs":[{"__isSmartRef__":true,"id":13363}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13375},"derivationIds":[null],"id":"0EC5B9CF-FDC8-46E4-95AC-7CDF4449B4D7","renderContextTable":{"__isSmartRef__":true,"id":13380},"eventHandler":{"__isSmartRef__":true,"id":13381},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13382},"priorExtent":{"__isSmartRef__":true,"id":13383},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13384},"label":{"__isSmartRef__":true,"id":13363},"command":{"__isSmartRef__":true,"id":13361},"attributeConnections":[{"__isSmartRef__":true,"id":13393},{"__isSmartRef__":true,"id":13394}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13363":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13364},"derivationIds":[null],"id":"CF1AED2E-CD2C-46ED-B44B-64D0855FCEFD","renderContextTable":{"__isSmartRef__":true,"id":13369},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13370}],"eventHandler":{"__isSmartRef__":true,"id":13372},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13373},"priorExtent":{"__isSmartRef__":true,"id":13374},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13362},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13364":{"_Position":{"__isSmartRef__":true,"id":13365},"renderContextTable":{"__isSmartRef__":true,"id":13366},"_Extent":{"__isSmartRef__":true,"id":13367},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13368},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13365":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13366":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13367":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13368":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13369":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13370":{"style":{"__isSmartRef__":true,"id":13371},"chunkOwner":{"__isSmartRef__":true,"id":13363},"storedString":"LineNo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13371":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13372":{"morph":{"__isSmartRef__":true,"id":13363},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13373":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13374":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13375":{"_Position":{"__isSmartRef__":true,"id":13376},"renderContextTable":{"__isSmartRef__":true,"id":13377},"_Extent":{"__isSmartRef__":true,"id":13378},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13379},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13376":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13377":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13378":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13379":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13380":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13381":{"morph":{"__isSmartRef__":true,"id":13362},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13382":{"x":234.28571428571428,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13383":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13384":{"stops":[{"__isSmartRef__":true,"id":13385},{"__isSmartRef__":true,"id":13387},{"__isSmartRef__":true,"id":13389},{"__isSmartRef__":true,"id":13391}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13385":{"offset":0,"color":{"__isSmartRef__":true,"id":13386}},"13386":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13387":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13388}},"13388":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13389":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13390}},"13390":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13391":{"offset":1,"color":{"__isSmartRef__":true,"id":13392}},"13392":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13393":{"sourceObj":{"__isSmartRef__":true,"id":13362},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13361},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13394":{"sourceObj":{"__isSmartRef__":true,"id":13362},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13362},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13395},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13395":{"source":{"__isSmartRef__":true,"id":13362},"target":{"__isSmartRef__":true,"id":13362}},"13396":{"browser":{"__isSmartRef__":true,"id":13290},"button":{"__isSmartRef__":true,"id":13397},"__LivelyClassName__":"lively.ide.ParserDebugCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"13397":{"submorphs":[{"__isSmartRef__":true,"id":13398}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13410},"derivationIds":[null],"id":"7DD0AEC5-A1CA-4882-B924-1A19E81C3FF4","renderContextTable":{"__isSmartRef__":true,"id":13415},"eventHandler":{"__isSmartRef__":true,"id":13416},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13417},"priorExtent":{"__isSmartRef__":true,"id":13418},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13419},"label":{"__isSmartRef__":true,"id":13398},"command":{"__isSmartRef__":true,"id":13396},"attributeConnections":[{"__isSmartRef__":true,"id":13428},{"__isSmartRef__":true,"id":13429}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13398":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13399},"derivationIds":[null],"id":"52CA51B2-788F-4318-9218-6E2B7EA6C0AA","renderContextTable":{"__isSmartRef__":true,"id":13404},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13405}],"eventHandler":{"__isSmartRef__":true,"id":13407},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13408},"priorExtent":{"__isSmartRef__":true,"id":13409},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13397},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13399":{"_Position":{"__isSmartRef__":true,"id":13400},"renderContextTable":{"__isSmartRef__":true,"id":13401},"_Extent":{"__isSmartRef__":true,"id":13402},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13400":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13401":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13402":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13403":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13404":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13405":{"style":{"__isSmartRef__":true,"id":13406},"chunkOwner":{"__isSmartRef__":true,"id":13398},"storedString":"Dbg errors is off","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13406":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13407":{"morph":{"__isSmartRef__":true,"id":13398},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13408":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13409":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13410":{"_Position":{"__isSmartRef__":true,"id":13411},"renderContextTable":{"__isSmartRef__":true,"id":13412},"_Extent":{"__isSmartRef__":true,"id":13413},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13414},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13411":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13412":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13413":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13414":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13415":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13416":{"morph":{"__isSmartRef__":true,"id":13397},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13417":{"x":351.42857142857144,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13418":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13419":{"stops":[{"__isSmartRef__":true,"id":13420},{"__isSmartRef__":true,"id":13422},{"__isSmartRef__":true,"id":13424},{"__isSmartRef__":true,"id":13426}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13420":{"offset":0,"color":{"__isSmartRef__":true,"id":13421}},"13421":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13422":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13423}},"13423":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13424":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13425}},"13425":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13426":{"offset":1,"color":{"__isSmartRef__":true,"id":13427}},"13427":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13428":{"sourceObj":{"__isSmartRef__":true,"id":13397},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13396},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13429":{"sourceObj":{"__isSmartRef__":true,"id":13397},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13397},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13430},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13430":{"source":{"__isSmartRef__":true,"id":13397},"target":{"__isSmartRef__":true,"id":13397}},"13431":{"browser":{"__isSmartRef__":true,"id":13290},"button":{"__isSmartRef__":true,"id":13432},"__LivelyClassName__":"lively.ide.EvaluateCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"13432":{"submorphs":[{"__isSmartRef__":true,"id":13433}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13445},"derivationIds":[null],"id":"5A7ED0BC-E9D1-4571-98DB-BB125033E676","renderContextTable":{"__isSmartRef__":true,"id":13450},"eventHandler":{"__isSmartRef__":true,"id":13451},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13452},"priorExtent":{"__isSmartRef__":true,"id":13453},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13454},"label":{"__isSmartRef__":true,"id":13433},"command":{"__isSmartRef__":true,"id":13431},"attributeConnections":[{"__isSmartRef__":true,"id":13463},{"__isSmartRef__":true,"id":13464}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13433":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13434},"derivationIds":[null],"id":"F6D4114B-56ED-4148-A0FB-9A018CB281D2","renderContextTable":{"__isSmartRef__":true,"id":13439},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13440}],"eventHandler":{"__isSmartRef__":true,"id":13442},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13443},"priorExtent":{"__isSmartRef__":true,"id":13444},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13432},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13434":{"_Position":{"__isSmartRef__":true,"id":13435},"renderContextTable":{"__isSmartRef__":true,"id":13436},"_Extent":{"__isSmartRef__":true,"id":13437},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13438},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13435":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13436":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13437":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13438":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13439":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13440":{"style":{"__isSmartRef__":true,"id":13441},"chunkOwner":{"__isSmartRef__":true,"id":13433},"storedString":"Eval on","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13441":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13442":{"morph":{"__isSmartRef__":true,"id":13433},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13443":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13444":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13445":{"_Position":{"__isSmartRef__":true,"id":13446},"renderContextTable":{"__isSmartRef__":true,"id":13447},"_Extent":{"__isSmartRef__":true,"id":13448},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13449},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13446":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13447":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13448":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13449":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13450":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13451":{"morph":{"__isSmartRef__":true,"id":13432},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13452":{"x":468.57142857142856,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13453":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13454":{"stops":[{"__isSmartRef__":true,"id":13455},{"__isSmartRef__":true,"id":13457},{"__isSmartRef__":true,"id":13459},{"__isSmartRef__":true,"id":13461}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13455":{"offset":0,"color":{"__isSmartRef__":true,"id":13456}},"13456":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13457":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13458}},"13458":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13459":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13460}},"13460":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13461":{"offset":1,"color":{"__isSmartRef__":true,"id":13462}},"13462":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13463":{"sourceObj":{"__isSmartRef__":true,"id":13432},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13431},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13464":{"sourceObj":{"__isSmartRef__":true,"id":13432},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13432},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13465},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13465":{"source":{"__isSmartRef__":true,"id":13432},"target":{"__isSmartRef__":true,"id":13432}},"13466":{"browser":{"__isSmartRef__":true,"id":13290},"button":{"__isSmartRef__":true,"id":13467},"__LivelyClassName__":"lively.ide.SortCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"13467":{"submorphs":[{"__isSmartRef__":true,"id":13468}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13480},"derivationIds":[null],"id":"A6592672-6E54-4F36-BB2E-CF6FFD39FB9D","renderContextTable":{"__isSmartRef__":true,"id":13485},"eventHandler":{"__isSmartRef__":true,"id":13486},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13487},"priorExtent":{"__isSmartRef__":true,"id":13488},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13489},"label":{"__isSmartRef__":true,"id":13468},"command":{"__isSmartRef__":true,"id":13466},"attributeConnections":[{"__isSmartRef__":true,"id":13498},{"__isSmartRef__":true,"id":13499}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13468":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13469},"derivationIds":[null],"id":"8C6C7B2F-E3A8-4748-9395-8FC1F151482A","renderContextTable":{"__isSmartRef__":true,"id":13474},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13475}],"eventHandler":{"__isSmartRef__":true,"id":13477},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13478},"priorExtent":{"__isSmartRef__":true,"id":13479},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13467},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13469":{"_Position":{"__isSmartRef__":true,"id":13470},"renderContextTable":{"__isSmartRef__":true,"id":13471},"_Extent":{"__isSmartRef__":true,"id":13472},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13473},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13470":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13471":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13472":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13473":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13474":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13475":{"style":{"__isSmartRef__":true,"id":13476},"chunkOwner":{"__isSmartRef__":true,"id":13468},"storedString":"Unsort","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13476":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13477":{"morph":{"__isSmartRef__":true,"id":13468},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13478":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13479":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13480":{"_Position":{"__isSmartRef__":true,"id":13481},"renderContextTable":{"__isSmartRef__":true,"id":13482},"_Extent":{"__isSmartRef__":true,"id":13483},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13484},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13481":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13482":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13483":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13484":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13485":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13486":{"morph":{"__isSmartRef__":true,"id":13467},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13487":{"x":585.7142857142857,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13488":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13489":{"stops":[{"__isSmartRef__":true,"id":13490},{"__isSmartRef__":true,"id":13492},{"__isSmartRef__":true,"id":13494},{"__isSmartRef__":true,"id":13496}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13490":{"offset":0,"color":{"__isSmartRef__":true,"id":13491}},"13491":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13492":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13493}},"13493":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13494":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13495}},"13495":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13496":{"offset":1,"color":{"__isSmartRef__":true,"id":13497}},"13497":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13498":{"sourceObj":{"__isSmartRef__":true,"id":13467},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13466},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13499":{"sourceObj":{"__isSmartRef__":true,"id":13467},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13467},"targetMethodName":"setLabel","converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13500},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13501},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13500":{"source":{"__isSmartRef__":true,"id":13467},"target":{"__isSmartRef__":true,"id":13467}},"13501":{"converter":{"__isSmartRef__":true,"id":13502}},"13502":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":13500},"source":"function () { return this.getSourceObj().command.asString() }","funcProperties":{"__isSmartRef__":true,"id":13503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13503":{},"13504":{"browser":{"__isSmartRef__":true,"id":13290},"button":{"__isSmartRef__":true,"id":13505},"__LivelyClassName__":"lively.ide.ViewSourceCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"13505":{"submorphs":[{"__isSmartRef__":true,"id":13506}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13518},"derivationIds":[null],"id":"8EBFE106-F4E2-4758-B123-BFA2237934FE","renderContextTable":{"__isSmartRef__":true,"id":13523},"eventHandler":{"__isSmartRef__":true,"id":13524},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":13525},"priorExtent":{"__isSmartRef__":true,"id":13526},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":13527},"label":{"__isSmartRef__":true,"id":13506},"command":{"__isSmartRef__":true,"id":13504},"attributeConnections":[{"__isSmartRef__":true,"id":13536},{"__isSmartRef__":true,"id":13537}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"13506":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13507},"derivationIds":[null],"id":"11B9AAA8-B7D6-42C0-BDA8-91E3DCFAF114","renderContextTable":{"__isSmartRef__":true,"id":13512},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":13513}],"eventHandler":{"__isSmartRef__":true,"id":13515},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13516},"priorExtent":{"__isSmartRef__":true,"id":13517},"_MaxTextWidth":117.14285714285714,"_MinTextWidth":117.14285714285714,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13505},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13507":{"_Position":{"__isSmartRef__":true,"id":13508},"renderContextTable":{"__isSmartRef__":true,"id":13509},"_Extent":{"__isSmartRef__":true,"id":13510},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13511},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13508":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13509":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13510":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13511":{"x":0,"y":4,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13512":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13513":{"style":{"__isSmartRef__":true,"id":13514},"chunkOwner":{"__isSmartRef__":true,"id":13506},"storedString":"View as...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13514":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13515":{"morph":{"__isSmartRef__":true,"id":13506},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13516":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13517":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13518":{"_Position":{"__isSmartRef__":true,"id":13519},"renderContextTable":{"__isSmartRef__":true,"id":13520},"_Extent":{"__isSmartRef__":true,"id":13521},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":13522},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13519":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13520":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13521":{"x":117.14285714285714,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13522":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13523":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"13524":{"morph":{"__isSmartRef__":true,"id":13505},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13525":{"x":702.8571428571429,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13526":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13527":{"stops":[{"__isSmartRef__":true,"id":13528},{"__isSmartRef__":true,"id":13530},{"__isSmartRef__":true,"id":13532},{"__isSmartRef__":true,"id":13534}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13528":{"offset":0,"color":{"__isSmartRef__":true,"id":13529}},"13529":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13530":{"offset":0.4,"color":{"__isSmartRef__":true,"id":13531}},"13531":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13532":{"offset":0.6,"color":{"__isSmartRef__":true,"id":13533}},"13533":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13534":{"offset":1,"color":{"__isSmartRef__":true,"id":13535}},"13535":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13536":{"sourceObj":{"__isSmartRef__":true,"id":13505},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13504},"targetMethodName":"trigger","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13537":{"sourceObj":{"__isSmartRef__":true,"id":13505},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13505},"targetMethodName":"setLabel","converter":null,"converterString":"function () { return this.getSourceObj().command.asString() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13538},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13538":{"source":{"__isSmartRef__":true,"id":13505},"target":{"__isSmartRef__":true,"id":13505}},"13539":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"13540":{"__LivelyClassName__":"lively.ide.SortFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"13541":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"13542":{"attributes":["isClassNode","isGrammarNode","isChangeNode","isFunctionNode","isObjectNode"],"__LivelyClassName__":"lively.ide.NodeTypeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"13543":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"13544":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"13545":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"13546":{"sourceObj":{"__isSmartRef__":true,"id":13290},"sourceAttrName":"setPane1Content","targetObj":{"__isSmartRef__":true,"id":13547},"targetMethodName":"updateList","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13898},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13547":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13548},"derivationIds":[null],"id":"E23040DE-1FBD-4360-8860-F7BAAA3F233F","renderContextTable":{"__isSmartRef__":true,"id":13554},"itemList":[{"__isSmartRef__":true,"id":13555},{"__isSmartRef__":true,"id":13834},{"__isSmartRef__":true,"id":13835},{"__isSmartRef__":true,"id":13836},{"__isSmartRef__":true,"id":13837},{"__isSmartRef__":true,"id":13838},{"__isSmartRef__":true,"id":13839},{"__isSmartRef__":true,"id":13840},{"__isSmartRef__":true,"id":13841},{"__isSmartRef__":true,"id":13842},{"__isSmartRef__":true,"id":13843},{"__isSmartRef__":true,"id":13844},{"__isSmartRef__":true,"id":13845},{"__isSmartRef__":true,"id":13846},{"__isSmartRef__":true,"id":13847},{"__isSmartRef__":true,"id":13848},{"__isSmartRef__":true,"id":13849},{"__isSmartRef__":true,"id":13850},{"__isSmartRef__":true,"id":13851},{"__isSmartRef__":true,"id":13852},{"__isSmartRef__":true,"id":13853},{"__isSmartRef__":true,"id":13854},{"__isSmartRef__":true,"id":13855},{"__isSmartRef__":true,"id":13856},{"__isSmartRef__":true,"id":13857},{"__isSmartRef__":true,"id":13858},{"__isSmartRef__":true,"id":13859},{"__isSmartRef__":true,"id":13860},{"__isSmartRef__":true,"id":13861},{"__isSmartRef__":true,"id":13862},{"__isSmartRef__":true,"id":13863},{"__isSmartRef__":true,"id":13864},{"__isSmartRef__":true,"id":13865},{"__isSmartRef__":true,"id":13866},{"__isSmartRef__":true,"id":13867},{"__isSmartRef__":true,"id":13868}],"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":13869},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13870},"selectedLineNo":3,"selectOnMove":false,"owner":{"__isSmartRef__":true,"id":13276},"attributeConnections":[{"__isSmartRef__":true,"id":13871},{"__isSmartRef__":true,"id":13876},{"__isSmartRef__":true,"id":13878},{"__isSmartRef__":true,"id":13880}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":{"__isSmartRef__":true,"id":13882},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13883},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core"},"13548":{"_Position":{"__isSmartRef__":true,"id":13549},"renderContextTable":{"__isSmartRef__":true,"id":13550},"_Extent":{"__isSmartRef__":true,"id":13551},"_Padding":{"__isSmartRef__":true,"id":13552},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":13553},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13549":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13550":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13551":{"x":205,"y":192.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13552":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13553":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13554":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"13555":{"isListItem":true,"string":"../","value":{"__isSmartRef__":true,"id":13556}},"13556":{"target":{"__isSmartRef__":true,"id":13557},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"localName":"../","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13557":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/lively/morphic/../","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"13558":{"target":{"__isSmartRef__":true,"id":13559},"browser":{"__isSmartRef__":true,"id":13290},"parent":null,"allFiles":["lively/morphic/HTML.js","lively/morphic/EventExperiments.js","lively/morphic/Widgets.js","lively/morphic/CompatSCB.js","lively/morphic/Serialization.js","lively/morphic/Rendering.js","lively/morphic/Layout.js","lively/morphic/MorphAddons.js","lively/morphic/Examples.js","lively/morphic/ObjectMigration.js","lively/morphic/ColorChooserDraft.js","lively/morphic/Shapes.js","lively/morphic/Compat.js","lively/morphic/Core.js","lively/morphic/TextCore.js","lively/morphic/Tests.js","lively/morphic/Events.js","lively/morphic/Halos.js","lively/morphic/Graffle.js","lively/morphic/Complete.js","lively/morphic/Canvas.js","lively/morphic/Connectors.js","lively/morphic/jQueryMorphAddons.js","lively/morphic/CompatLayer.js","lively/morphic/Styles.js","lively/morphic/Paragraphs.js","lively/morphic/SVG.js","lively/morphic/ScriptingSupport.js","lively/morphic/WidgetsAddOns.js","lively/morphic/PathShapes.js","lively/morphic/AdditionalMorphs.js","lively/morphic/Experiments.js"],"subNamespacePaths":[{"__isSmartRef__":true,"id":13560},{"__isSmartRef__":true,"id":13561}],"parentNamespacePath":{"__isSmartRef__":true,"id":13557},"_childNodes":[{"__isSmartRef__":true,"id":13556},{"__isSmartRef__":true,"id":13562},{"__isSmartRef__":true,"id":13799},{"__isSmartRef__":true,"id":13800},{"__isSmartRef__":true,"id":13801},{"__isSmartRef__":true,"id":13802},{"__isSmartRef__":true,"id":13803},{"__isSmartRef__":true,"id":13804},{"__isSmartRef__":true,"id":13805},{"__isSmartRef__":true,"id":13806},{"__isSmartRef__":true,"id":13807},{"__isSmartRef__":true,"id":13808},{"__isSmartRef__":true,"id":13809},{"__isSmartRef__":true,"id":13810},{"__isSmartRef__":true,"id":13811},{"__isSmartRef__":true,"id":13812},{"__isSmartRef__":true,"id":13813},{"__isSmartRef__":true,"id":13814},{"__isSmartRef__":true,"id":13815},{"__isSmartRef__":true,"id":13816},{"__isSmartRef__":true,"id":13818},{"__isSmartRef__":true,"id":13819},{"__isSmartRef__":true,"id":13820},{"__isSmartRef__":true,"id":13821},{"__isSmartRef__":true,"id":13822},{"__isSmartRef__":true,"id":13823},{"__isSmartRef__":true,"id":13824},{"__isSmartRef__":true,"id":13825},{"__isSmartRef__":true,"id":13826},{"__isSmartRef__":true,"id":13827},{"__isSmartRef__":true,"id":13828},{"__isSmartRef__":true,"id":13829},{"__isSmartRef__":true,"id":13830},{"__isSmartRef__":true,"id":13831},{"__isSmartRef__":true,"id":13832},{"__isSmartRef__":true,"id":13833}],"__LivelyClassName__":"lively.ide.SourceControlNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13559":{"__LivelyClassName__":"AnotherSourceDatabase","__SourceModuleName__":"Global.lively.ide.SourceDatabase"},"13560":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/lively/morphic/tests/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"13561":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/lively/morphic/video/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"13562":{"target":{"__isSmartRef__":true,"id":13563},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/AdditionalMorphs.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13563":{"name":"lively.morphic.AdditionalMorphs","type":"moduleDef","startIndex":0,"stopIndex":41223,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13564},{"__isSmartRef__":true,"id":13565},{"__isSmartRef__":true,"id":13594},{"__isSmartRef__":true,"id":13634},{"__isSmartRef__":true,"id":13642},{"__isSmartRef__":true,"id":13651},{"__isSmartRef__":true,"id":13652},{"__isSmartRef__":true,"id":13666},{"__isSmartRef__":true,"id":13681},{"__isSmartRef__":true,"id":13690},{"__isSmartRef__":true,"id":13734},{"__isSmartRef__":true,"id":13748},{"__isSmartRef__":true,"id":13752},{"__isSmartRef__":true,"id":13759},{"__isSmartRef__":true,"id":13772},{"__isSmartRef__":true,"id":13788},{"__isSmartRef__":true,"id":13793},{"__isSmartRef__":true,"id":13798}],"sourceControl":{"__isSmartRef__":true,"id":13559},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13564":{"name":null,"type":"comment","startIndex":94,"stopIndex":94,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13565":{"name":"lively.morphic.Path","type":"klassDef","startIndex":95,"stopIndex":5846,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13566},{"__isSmartRef__":true,"id":13568},{"__isSmartRef__":true,"id":13569},{"__isSmartRef__":true,"id":13571},{"__isSmartRef__":true,"id":13573},{"__isSmartRef__":true,"id":13575},{"__isSmartRef__":true,"id":13577},{"__isSmartRef__":true,"id":13578},{"__isSmartRef__":true,"id":13580},{"__isSmartRef__":true,"id":13581},{"__isSmartRef__":true,"id":13582},{"__isSmartRef__":true,"id":13584},{"__isSmartRef__":true,"id":13585},{"__isSmartRef__":true,"id":13586},{"__isSmartRef__":true,"id":13587},{"__isSmartRef__":true,"id":13588},{"__isSmartRef__":true,"id":13590},{"__isSmartRef__":true,"id":13591},{"__isSmartRef__":true,"id":13593}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Morph","categories":[{"__isSmartRef__":true,"id":13567},{"__isSmartRef__":true,"id":13570},{"__isSmartRef__":true,"id":13572},{"__isSmartRef__":true,"id":13574},{"__isSmartRef__":true,"id":13576},{"__isSmartRef__":true,"id":13579},{"__isSmartRef__":true,"id":13583},{"__isSmartRef__":true,"id":13589},{"__isSmartRef__":true,"id":13592}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13566":{"name":"isPath","type":"propertyDef","startIndex":164,"stopIndex":180,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13567},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13567":{"name":"properties","type":"categoryDef","startIndex":148,"stopIndex":252,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13566},{"__isSmartRef__":true,"id":13568}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13568":{"name":"style","type":"propertyDef","startIndex":182,"stopIndex":249,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13567},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13569":{"name":"initialize","type":"propertyDef","startIndex":272,"stopIndex":407,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13570},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13570":{"name":"initializing","type":"categoryDef","startIndex":254,"stopIndex":410,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13569}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13571":{"name":"vertices","type":"propertyDef","startIndex":427,"stopIndex":484,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13572},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13572":{"name":"accessing","type":"categoryDef","startIndex":412,"stopIndex":486,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13571}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13573":{"name":"pathBetweenRects","type":"propertyDef","startIndex":531,"stopIndex":2615,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13574},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13574":{"name":"vertex and control point computations","type":"categoryDef","startIndex":488,"stopIndex":2618,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13573}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13575":{"name":"addArrowHeadStart","type":"propertyDef","startIndex":2640,"stopIndex":2810,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13576},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13576":{"name":"arrow behavior","type":"categoryDef","startIndex":2620,"stopIndex":2982,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13575},{"__isSmartRef__":true,"id":13577}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13577":{"name":"addArrowHeadEnd","type":"propertyDef","startIndex":2812,"stopIndex":2979,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13576},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13578":{"name":"getControlPoint","type":"propertyDef","startIndex":3004,"stopIndex":3078,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13579},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13579":{"name":"control points","type":"categoryDef","startIndex":2984,"stopIndex":3661,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13578},{"__isSmartRef__":true,"id":13580},{"__isSmartRef__":true,"id":13581}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13580":{"name":"getControlPoints","type":"propertyDef","startIndex":3080,"stopIndex":3498,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13579},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13581":{"name":"insertControlPointBetween","type":"propertyDef","startIndex":3500,"stopIndex":3658,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13579},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13582":{"name":"getHalos","type":"propertyDef","startIndex":3674,"stopIndex":3926,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13583},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13583":{"name":"halos","type":"categoryDef","startIndex":3663,"stopIndex":4509,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13582},{"__isSmartRef__":true,"id":13584},{"__isSmartRef__":true,"id":13585},{"__isSmartRef__":true,"id":13586},{"__isSmartRef__":true,"id":13587}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13584":{"name":"getHaloClasses","type":"propertyDef","startIndex":3928,"stopIndex":4094,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13583},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13585":{"name":"getControlPointHalos","type":"propertyDef","startIndex":4097,"stopIndex":4185,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13583},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13586":{"name":"getInsertPointHalo","type":"propertyDef","startIndex":4187,"stopIndex":4314,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13583},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13587":{"name":"getInsertPointHalos","type":"propertyDef","startIndex":4316,"stopIndex":4506,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13583},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13588":{"name":"convertToCurve","type":"propertyDef","startIndex":4527,"stopIndex":5179,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13589},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13589":{"name":"conversion","type":"categoryDef","startIndex":4511,"stopIndex":5311,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13588},{"__isSmartRef__":true,"id":13590}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13590":{"name":"convertToLine","type":"propertyDef","startIndex":5181,"stopIndex":5307,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13589},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13591":{"name":"morphMenuItems","type":"propertyDef","startIndex":5323,"stopIndex":5549,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13592},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13592":{"name":"menu","type":"categoryDef","startIndex":5313,"stopIndex":5843,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13591},{"__isSmartRef__":true,"id":13593}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13593":{"name":"adjustOrigin","type":"propertyDef","startIndex":5551,"stopIndex":5840,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13592},"className":"lively.morphic.Path","_owner":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13594":{"name":"lively.morphic.ControlPoint","type":"klassDef","startIndex":5847,"stopIndex":11001,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13595},{"__isSmartRef__":true,"id":13597},{"__isSmartRef__":true,"id":13598},{"__isSmartRef__":true,"id":13600},{"__isSmartRef__":true,"id":13601},{"__isSmartRef__":true,"id":13602},{"__isSmartRef__":true,"id":13604},{"__isSmartRef__":true,"id":13605},{"__isSmartRef__":true,"id":13606},{"__isSmartRef__":true,"id":13608},{"__isSmartRef__":true,"id":13609},{"__isSmartRef__":true,"id":13610},{"__isSmartRef__":true,"id":13611},{"__isSmartRef__":true,"id":13612},{"__isSmartRef__":true,"id":13613},{"__isSmartRef__":true,"id":13614},{"__isSmartRef__":true,"id":13616},{"__isSmartRef__":true,"id":13617},{"__isSmartRef__":true,"id":13619},{"__isSmartRef__":true,"id":13620},{"__isSmartRef__":true,"id":13621},{"__isSmartRef__":true,"id":13622},{"__isSmartRef__":true,"id":13623},{"__isSmartRef__":true,"id":13624},{"__isSmartRef__":true,"id":13626},{"__isSmartRef__":true,"id":13628},{"__isSmartRef__":true,"id":13629},{"__isSmartRef__":true,"id":13630},{"__isSmartRef__":true,"id":13632},{"__isSmartRef__":true,"id":13633}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"Object","categories":[{"__isSmartRef__":true,"id":13596},{"__isSmartRef__":true,"id":13599},{"__isSmartRef__":true,"id":13603},{"__isSmartRef__":true,"id":13607},{"__isSmartRef__":true,"id":13615},{"__isSmartRef__":true,"id":13618},{"__isSmartRef__":true,"id":13625},{"__isSmartRef__":true,"id":13627},{"__isSmartRef__":true,"id":13631}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13595":{"name":"initialize","type":"propertyDef","startIndex":5912,"stopIndex":6019,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13596},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13596":{"name":"initializing","type":"categoryDef","startIndex":5894,"stopIndex":6114,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13595},{"__isSmartRef__":true,"id":13597}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13597":{"name":"create","type":"propertyDef","startIndex":6021,"stopIndex":6110,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13596},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13598":{"name":"signalChange","type":"propertyDef","startIndex":6130,"stopIndex":6336,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13599},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13599":{"name":"updating","type":"categoryDef","startIndex":6116,"stopIndex":6525,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13598},{"__isSmartRef__":true,"id":13600},{"__isSmartRef__":true,"id":13601}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13600":{"name":"reactToChange","type":"propertyDef","startIndex":6338,"stopIndex":6403,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13599},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13601":{"name":"elementChanged","type":"propertyDef","startIndex":6405,"stopIndex":6521,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13599},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13602":{"name":"isFirst","type":"propertyDef","startIndex":6540,"stopIndex":6591,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13603},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13603":{"name":"testing","type":"categoryDef","startIndex":6527,"stopIndex":6823,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13602},{"__isSmartRef__":true,"id":13604},{"__isSmartRef__":true,"id":13605}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13604":{"name":"isLast","type":"propertyDef","startIndex":6593,"stopIndex":6675,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13603},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13605":{"name":"isCurve","type":"propertyDef","startIndex":6677,"stopIndex":6819,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13603},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13606":{"name":"getMorph","type":"propertyDef","startIndex":6840,"stopIndex":6886,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13607},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13607":{"name":"accessing","type":"categoryDef","startIndex":6825,"stopIndex":7632,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13606},{"__isSmartRef__":true,"id":13608},{"__isSmartRef__":true,"id":13609},{"__isSmartRef__":true,"id":13610},{"__isSmartRef__":true,"id":13611},{"__isSmartRef__":true,"id":13612},{"__isSmartRef__":true,"id":13613}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13608":{"name":"getPos","type":"propertyDef","startIndex":6888,"stopIndex":7052,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13607},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13609":{"name":"getGlobalPos","type":"propertyDef","startIndex":7054,"stopIndex":7180,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13607},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13610":{"name":"next","type":"propertyDef","startIndex":7182,"stopIndex":7259,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13607},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13611":{"name":"prev","type":"propertyDef","startIndex":7261,"stopIndex":7338,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13607},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13612":{"name":"getElement","type":"propertyDef","startIndex":7340,"stopIndex":7424,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13607},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13613":{"name":"setElement","type":"propertyDef","startIndex":7426,"stopIndex":7627,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13607},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13614":{"name":"withNextControlPointsDo","type":"propertyDef","startIndex":7651,"stopIndex":7844,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13615},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13615":{"name":"enumerating","type":"categoryDef","startIndex":7634,"stopIndex":8016,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13614},{"__isSmartRef__":true,"id":13616}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13616":{"name":"controlPointsFromTo","type":"propertyDef","startIndex":7846,"stopIndex":8012,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13615},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13617":{"name":"moveBy","type":"propertyDef","startIndex":8036,"stopIndex":8230,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13618},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13618":{"name":"manipulation","type":"categoryDef","startIndex":8018,"stopIndex":9281,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13617},{"__isSmartRef__":true,"id":13619},{"__isSmartRef__":true,"id":13620},{"__isSmartRef__":true,"id":13621},{"__isSmartRef__":true,"id":13622},{"__isSmartRef__":true,"id":13623}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13619":{"name":"setPos","type":"propertyDef","startIndex":8232,"stopIndex":8307,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13618},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13620":{"name":"setGlobalPos","type":"propertyDef","startIndex":8309,"stopIndex":8391,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13618},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13621":{"name":"insertAfter","type":"propertyDef","startIndex":8395,"stopIndex":8516,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13618},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13622":{"name":"insertAt","type":"propertyDef","startIndex":8518,"stopIndex":9173,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13618},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13623":{"name":"mergeWithNext","type":"propertyDef","startIndex":9176,"stopIndex":9276,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13618},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13624":{"name":"remove","type":"propertyDef","startIndex":9297,"stopIndex":9672,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13625},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13625":{"name":"removing","type":"categoryDef","startIndex":9283,"stopIndex":9676,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13624}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13626":{"name":"asHalo","type":"propertyDef","startIndex":9694,"stopIndex":9779,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13627},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13627":{"name":"conversion","type":"categoryDef","startIndex":9678,"stopIndex":10219,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13626},{"__isSmartRef__":true,"id":13628},{"__isSmartRef__":true,"id":13629}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13628":{"name":"toCurve","type":"propertyDef","startIndex":9781,"stopIndex":10070,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13627},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13629":{"name":"toLine","type":"propertyDef","startIndex":10072,"stopIndex":10214,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13627},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13630":{"name":"addMarker","type":"propertyDef","startIndex":10234,"stopIndex":10429,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13631},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13631":{"name":"markers","type":"categoryDef","startIndex":10221,"stopIndex":10998,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13630},{"__isSmartRef__":true,"id":13632},{"__isSmartRef__":true,"id":13633}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13632":{"name":"detachMarker","type":"propertyDef","startIndex":10431,"stopIndex":10532,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13631},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13633":{"name":"alignMarker","type":"propertyDef","startIndex":10535,"stopIndex":10996,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13631},"className":"lively.morphic.ControlPoint","_owner":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13634":{"name":"lively.morphic.PathControlPointHalo","type":"klassDef","startIndex":11002,"stopIndex":11550,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13635},{"__isSmartRef__":true,"id":13637},{"__isSmartRef__":true,"id":13638},{"__isSmartRef__":true,"id":13639},{"__isSmartRef__":true,"id":13641}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Halo","categories":[{"__isSmartRef__":true,"id":13636},{"__isSmartRef__":true,"id":13640}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13635":{"name":"style","type":"propertyDef","startIndex":11084,"stopIndex":11148,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13636},"className":"lively.morphic.PathControlPointHalo","_owner":{"__isSmartRef__":true,"id":13634},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13636":{"name":"settings","type":"categoryDef","startIndex":11070,"stopIndex":11215,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13635},{"__isSmartRef__":true,"id":13637},{"__isSmartRef__":true,"id":13638}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13637":{"name":"defaultExtent","type":"propertyDef","startIndex":11150,"stopIndex":11178,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13636},"className":"lively.morphic.PathControlPointHalo","_owner":{"__isSmartRef__":true,"id":13634},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13638":{"name":"isPathControlPointHalo","type":"propertyDef","startIndex":11180,"stopIndex":11212,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13636},"className":"lively.morphic.PathControlPointHalo","_owner":{"__isSmartRef__":true,"id":13634},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13639":{"name":"initialize","type":"propertyDef","startIndex":11235,"stopIndex":11473,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13640},"className":"lively.morphic.PathControlPointHalo","_owner":{"__isSmartRef__":true,"id":13634},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13640":{"name":"initializing","type":"categoryDef","startIndex":11217,"stopIndex":11524,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13639},{"__isSmartRef__":true,"id":13641}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13641":{"name":"createLabel","type":"propertyDef","startIndex":11475,"stopIndex":11519,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13640},"className":"lively.morphic.PathControlPointHalo","_owner":{"__isSmartRef__":true,"id":13634},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13642":{"name":"lively.morphic.PathVertexControlPointHalo","type":"klassDef","startIndex":11551,"stopIndex":13315,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13643},{"__isSmartRef__":true,"id":13645},{"__isSmartRef__":true,"id":13647},{"__isSmartRef__":true,"id":13648},{"__isSmartRef__":true,"id":13649},{"__isSmartRef__":true,"id":13650}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.PathControlPointHalo","categories":[{"__isSmartRef__":true,"id":13644},{"__isSmartRef__":true,"id":13646}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13643":{"name":"isVertexControlHalo","type":"propertyDef","startIndex":11656,"stopIndex":11685,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13644},"className":"lively.morphic.PathVertexControlPointHalo","_owner":{"__isSmartRef__":true,"id":13642},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13644":{"name":"properies","type":"categoryDef","startIndex":11641,"stopIndex":11688,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13643}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13645":{"name":"computePositionAtTarget","type":"propertyDef","startIndex":11709,"stopIndex":11842,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13646},"className":"lively.morphic.PathVertexControlPointHalo","_owner":{"__isSmartRef__":true,"id":13642},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13646":{"name":"halo behavior","type":"categoryDef","startIndex":11690,"stopIndex":13312,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13645},{"__isSmartRef__":true,"id":13647},{"__isSmartRef__":true,"id":13648},{"__isSmartRef__":true,"id":13649},{"__isSmartRef__":true,"id":13650}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13647":{"name":"dragAction","type":"propertyDef","startIndex":11844,"stopIndex":12332,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13646},"className":"lively.morphic.PathVertexControlPointHalo","_owner":{"__isSmartRef__":true,"id":13642},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13648":{"name":"dragEndAction","type":"propertyDef","startIndex":12335,"stopIndex":12753,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13646},"className":"lively.morphic.PathVertexControlPointHalo","_owner":{"__isSmartRef__":true,"id":13642},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13649":{"name":"findIntersectingControlPoint","type":"propertyDef","startIndex":12756,"stopIndex":13110,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13646},"className":"lively.morphic.PathVertexControlPointHalo","_owner":{"__isSmartRef__":true,"id":13642},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13650":{"name":"highlightIfOverOther","type":"propertyDef","startIndex":13112,"stopIndex":13308,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13646},"className":"lively.morphic.PathVertexControlPointHalo","_owner":{"__isSmartRef__":true,"id":13642},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13651":{"name":null,"type":"comment","startIndex":13316,"stopIndex":13316,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13652":{"name":"lively.morphic.PathInsertPointHalo","type":"klassDef","startIndex":13317,"stopIndex":14710,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13653},{"__isSmartRef__":true,"id":13655},{"__isSmartRef__":true,"id":13657},{"__isSmartRef__":true,"id":13659},{"__isSmartRef__":true,"id":13660},{"__isSmartRef__":true,"id":13661},{"__isSmartRef__":true,"id":13662},{"__isSmartRef__":true,"id":13664},{"__isSmartRef__":true,"id":13665}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.PathControlPointHalo","categories":[{"__isSmartRef__":true,"id":13654},{"__isSmartRef__":true,"id":13656},{"__isSmartRef__":true,"id":13658},{"__isSmartRef__":true,"id":13663}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13653":{"name":"style","type":"propertyDef","startIndex":13414,"stopIndex":13442,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13654},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13654":{"name":"settings","type":"categoryDef","startIndex":13400,"stopIndex":13445,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13653}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13655":{"name":"isPathControlPointHalo","type":"propertyDef","startIndex":13462,"stopIndex":13494,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13656},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13656":{"name":"properies","type":"categoryDef","startIndex":13447,"stopIndex":13497,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13655}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13657":{"name":"getStartPos","type":"propertyDef","startIndex":13513,"stopIndex":13578,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13658},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13658":{"name":"acessing","type":"categoryDef","startIndex":13499,"stopIndex":13916,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13657},{"__isSmartRef__":true,"id":13659},{"__isSmartRef__":true,"id":13660},{"__isSmartRef__":true,"id":13661}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13659":{"name":"getEndPos","type":"propertyDef","startIndex":13580,"stopIndex":13650,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13658},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13660":{"name":"getLocalPos","type":"propertyDef","startIndex":13652,"stopIndex":13809,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13658},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13661":{"name":"getGlobalPos","type":"propertyDef","startIndex":13811,"stopIndex":13912,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13658},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13662":{"name":"computePositionAtTarget","type":"propertyDef","startIndex":13937,"stopIndex":14057,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13663},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13663":{"name":"halo behavior","type":"categoryDef","startIndex":13918,"stopIndex":14707,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13662},{"__isSmartRef__":true,"id":13664},{"__isSmartRef__":true,"id":13665}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13664":{"name":"dragStartAction","type":"propertyDef","startIndex":14059,"stopIndex":14260,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13663},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13665":{"name":"dragAction","type":"propertyDef","startIndex":14262,"stopIndex":14705,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13663},"className":"lively.morphic.PathInsertPointHalo","_owner":{"__isSmartRef__":true,"id":13652},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13666":{"name":"lively.morphic.PathOriginHackLayer","type":"copDef","startIndex":14711,"stopIndex":16266,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13667},{"__isSmartRef__":true,"id":13677},{"__isSmartRef__":true,"id":13680}],"sourceControl":{"__isSmartRef__":true,"id":13559},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13667":{"name":"lively.morphic.Path","type":"copSubElement","startIndex":14760,"stopIndex":16124,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13668},{"__isSmartRef__":true,"id":13670},{"__isSmartRef__":true,"id":13671},{"__isSmartRef__":true,"id":13672},{"__isSmartRef__":true,"id":13673},{"__isSmartRef__":true,"id":13674},{"__isSmartRef__":true,"id":13675},{"__isSmartRef__":true,"id":13676}],"sourceControl":{"__isSmartRef__":true,"id":13559},"refineSelector":"refineClass","_owner":{"__isSmartRef__":true,"id":13666},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13668":{"name":"getHalos","type":"propertyDef","startIndex":14796,"stopIndex":15021,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13669},"_owner":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13669":{"name":"default category","type":"categoryDef","startIndex":83,"stopIndex":1412,"fileName":null,"_subElements":[{"__isSmartRef__":true,"id":13668},{"__isSmartRef__":true,"id":13670},{"__isSmartRef__":true,"id":13671},{"__isSmartRef__":true,"id":13672},{"__isSmartRef__":true,"id":13673},{"__isSmartRef__":true,"id":13674},{"__isSmartRef__":true,"id":13675},{"__isSmartRef__":true,"id":13676}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13670":{"name":"adjustOrigin","type":"propertyDef","startIndex":15023,"stopIndex":15103,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13669},"_owner":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13671":{"name":"getOrigin","type":"propertyDef","startIndex":15105,"stopIndex":15185,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13669},"_owner":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13672":{"name":"getPosition","type":"propertyDef","startIndex":15187,"stopIndex":15268,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13669},"_owner":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13673":{"name":"setPosition","type":"propertyDef","startIndex":15270,"stopIndex":15356,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13669},"_owner":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13674":{"name":"setRotationHTML","type":"propertyDef","startIndex":15358,"stopIndex":15534,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13669},"_owner":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13675":{"name":"setScaleHTML","type":"propertyDef","startIndex":15536,"stopIndex":15716,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13669},"_owner":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13676":{"name":"onrestore","type":"propertyDef","startIndex":15718,"stopIndex":16121,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13669},"_owner":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13677":{"name":"lively.morphic.ControlPoint","type":"copSubElement","startIndex":16125,"stopIndex":16250,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13678}],"sourceControl":{"__isSmartRef__":true,"id":13559},"refineSelector":"refineClass","_owner":{"__isSmartRef__":true,"id":13666},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13678":{"name":"getPos","type":"propertyDef","startIndex":16170,"stopIndex":16247,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13679},"_owner":{"__isSmartRef__":true,"id":13677},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13679":{"name":"default category","type":"categoryDef","startIndex":1457,"stopIndex":1538,"fileName":null,"_subElements":[{"__isSmartRef__":true,"id":13678}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13680":{"name":"beNotGlobal()","type":"copSubElement","startIndex":16251,"stopIndex":16264,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_owner":{"__isSmartRef__":true,"id":13666},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13681":{"name":"lively.morphic.HtmlWrapperMorph","type":"klassDef","startIndex":16267,"stopIndex":18215,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13682},{"__isSmartRef__":true,"id":13684},{"__isSmartRef__":true,"id":13685},{"__isSmartRef__":true,"id":13686},{"__isSmartRef__":true,"id":13687},{"__isSmartRef__":true,"id":13688},{"__isSmartRef__":true,"id":13689}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Morph","categories":[{"__isSmartRef__":true,"id":13683}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13682":{"name":"initialize","type":"propertyDef","startIndex":16354,"stopIndex":16756,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13683},"className":"lively.morphic.HtmlWrapperMorph","_owner":{"__isSmartRef__":true,"id":13681},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13683":{"name":"default category","type":"categoryDef","startIndex":16332,"stopIndex":18212,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13682},{"__isSmartRef__":true,"id":13684},{"__isSmartRef__":true,"id":13685},{"__isSmartRef__":true,"id":13686},{"__isSmartRef__":true,"id":13687},{"__isSmartRef__":true,"id":13688},{"__isSmartRef__":true,"id":13689}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13684":{"name":"doNotSerialize","type":"propertyDef","startIndex":16758,"stopIndex":16793,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13683},"className":"lively.morphic.HtmlWrapperMorph","_owner":{"__isSmartRef__":true,"id":13681},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13685":{"name":"serializedChildren","type":"propertyDef","startIndex":16798,"stopIndex":17423,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13683},"className":"lively.morphic.HtmlWrapperMorph","_owner":{"__isSmartRef__":true,"id":13681},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13686":{"name":"appendElement","type":"propertyDef","startIndex":17425,"stopIndex":17890,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13683},"className":"lively.morphic.HtmlWrapperMorph","_owner":{"__isSmartRef__":true,"id":13681},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13687":{"name":"appendChild","type":"propertyDef","startIndex":17892,"stopIndex":18022,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13683},"className":"lively.morphic.HtmlWrapperMorph","_owner":{"__isSmartRef__":true,"id":13681},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13688":{"name":"children","type":"propertyDef","startIndex":18025,"stopIndex":18113,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13683},"className":"lively.morphic.HtmlWrapperMorph","_owner":{"__isSmartRef__":true,"id":13681},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13689":{"name":"asJQuery","type":"propertyDef","startIndex":18115,"stopIndex":18202,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13683},"className":"lively.morphic.HtmlWrapperMorph","_owner":{"__isSmartRef__":true,"id":13681},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13690":{"name":"lively.morphic.DataGrid","type":"klassDef","startIndex":18216,"stopIndex":29367,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13691},{"__isSmartRef__":true,"id":13693},{"__isSmartRef__":true,"id":13694},{"__isSmartRef__":true,"id":13695},{"__isSmartRef__":true,"id":13696},{"__isSmartRef__":true,"id":13697},{"__isSmartRef__":true,"id":13698},{"__isSmartRef__":true,"id":13699},{"__isSmartRef__":true,"id":13700},{"__isSmartRef__":true,"id":13701},{"__isSmartRef__":true,"id":13702},{"__isSmartRef__":true,"id":13703},{"__isSmartRef__":true,"id":13704},{"__isSmartRef__":true,"id":13705},{"__isSmartRef__":true,"id":13706},{"__isSmartRef__":true,"id":13707},{"__isSmartRef__":true,"id":13708},{"__isSmartRef__":true,"id":13709},{"__isSmartRef__":true,"id":13710},{"__isSmartRef__":true,"id":13711},{"__isSmartRef__":true,"id":13712},{"__isSmartRef__":true,"id":13713},{"__isSmartRef__":true,"id":13714},{"__isSmartRef__":true,"id":13715},{"__isSmartRef__":true,"id":13716},{"__isSmartRef__":true,"id":13717},{"__isSmartRef__":true,"id":13718},{"__isSmartRef__":true,"id":13719},{"__isSmartRef__":true,"id":13720},{"__isSmartRef__":true,"id":13721},{"__isSmartRef__":true,"id":13722},{"__isSmartRef__":true,"id":13723},{"__isSmartRef__":true,"id":13724},{"__isSmartRef__":true,"id":13725},{"__isSmartRef__":true,"id":13726},{"__isSmartRef__":true,"id":13727},{"__isSmartRef__":true,"id":13728},{"__isSmartRef__":true,"id":13729},{"__isSmartRef__":true,"id":13730},{"__isSmartRef__":true,"id":13731},{"__isSmartRef__":true,"id":13732},{"__isSmartRef__":true,"id":13733}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Morph","categories":[{"__isSmartRef__":true,"id":13692}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13691":{"name":"initialize","type":"propertyDef","startIndex":18293,"stopIndex":18680,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13692":{"name":"initialization","type":"categoryDef","startIndex":18273,"stopIndex":29364,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13691},{"__isSmartRef__":true,"id":13693},{"__isSmartRef__":true,"id":13694},{"__isSmartRef__":true,"id":13695},{"__isSmartRef__":true,"id":13696},{"__isSmartRef__":true,"id":13697},{"__isSmartRef__":true,"id":13698},{"__isSmartRef__":true,"id":13699},{"__isSmartRef__":true,"id":13700},{"__isSmartRef__":true,"id":13701},{"__isSmartRef__":true,"id":13702},{"__isSmartRef__":true,"id":13703},{"__isSmartRef__":true,"id":13704},{"__isSmartRef__":true,"id":13705},{"__isSmartRef__":true,"id":13706},{"__isSmartRef__":true,"id":13707},{"__isSmartRef__":true,"id":13708},{"__isSmartRef__":true,"id":13709},{"__isSmartRef__":true,"id":13710},{"__isSmartRef__":true,"id":13711},{"__isSmartRef__":true,"id":13712},{"__isSmartRef__":true,"id":13713},{"__isSmartRef__":true,"id":13714},{"__isSmartRef__":true,"id":13715},{"__isSmartRef__":true,"id":13716},{"__isSmartRef__":true,"id":13717},{"__isSmartRef__":true,"id":13718},{"__isSmartRef__":true,"id":13719},{"__isSmartRef__":true,"id":13720},{"__isSmartRef__":true,"id":13721},{"__isSmartRef__":true,"id":13722},{"__isSmartRef__":true,"id":13723},{"__isSmartRef__":true,"id":13724},{"__isSmartRef__":true,"id":13725},{"__isSmartRef__":true,"id":13726},{"__isSmartRef__":true,"id":13727},{"__isSmartRef__":true,"id":13728},{"__isSmartRef__":true,"id":13729},{"__isSmartRef__":true,"id":13730},{"__isSmartRef__":true,"id":13731},{"__isSmartRef__":true,"id":13732},{"__isSmartRef__":true,"id":13733}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13693":{"name":"initializeData","type":"propertyDef","startIndex":18682,"stopIndex":18847,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13694":{"name":"initializeMorph","type":"propertyDef","startIndex":18849,"stopIndex":19245,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13695":{"name":"createCells","type":"propertyDef","startIndex":19247,"stopIndex":19613,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13696":{"name":"createCell","type":"propertyDef","startIndex":19615,"stopIndex":19972,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13697":{"name":"createColHeads","type":"propertyDef","startIndex":19975,"stopIndex":20184,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13698":{"name":"createColHead","type":"propertyDef","startIndex":20186,"stopIndex":20550,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13699":{"name":"createLayout","type":"propertyDef","startIndex":20554,"stopIndex":20769,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13700":{"name":"at","type":"propertyDef","startIndex":20772,"stopIndex":20834,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13701":{"name":"atPut","type":"propertyDef","startIndex":20836,"stopIndex":20920,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13702":{"name":"clear","type":"propertyDef","startIndex":20922,"stopIndex":21186,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13703":{"name":"onUpPressed","type":"propertyDef","startIndex":21189,"stopIndex":21288,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13704":{"name":"onDownPressed","type":"propertyDef","startIndex":21290,"stopIndex":21390,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13705":{"name":"onLeftPressed","type":"propertyDef","startIndex":21392,"stopIndex":21493,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13706":{"name":"onRightPressed","type":"propertyDef","startIndex":21495,"stopIndex":21596,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13707":{"name":"moveActiveCellBy","type":"propertyDef","startIndex":21600,"stopIndex":22084,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13708":{"name":"setData","type":"propertyDef","startIndex":22086,"stopIndex":22507,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13709":{"name":"getDataObjects","type":"propertyDef","startIndex":22509,"stopIndex":22879,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13710":{"name":"createDataRowFromObject","type":"propertyDef","startIndex":22882,"stopIndex":23592,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13711":{"name":"updateDisplay","type":"propertyDef","startIndex":23596,"stopIndex":24049,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13712":{"name":"onKeyPress","type":"propertyDef","startIndex":24051,"stopIndex":24228,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13713":{"name":"onBackspacePressed","type":"propertyDef","startIndex":24230,"stopIndex":24424,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13714":{"name":"onEnterPressed","type":"propertyDef","startIndex":24426,"stopIndex":24529,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13715":{"name":"onTabPressed","type":"propertyDef","startIndex":24531,"stopIndex":24633,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13716":{"name":"setActiveCellContent","type":"propertyDef","startIndex":24638,"stopIndex":24815,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13717":{"name":"evaluateExpression","type":"propertyDef","startIndex":24817,"stopIndex":25167,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13718":{"name":"setColWidth","type":"propertyDef","startIndex":25169,"stopIndex":25403,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13719":{"name":"setColNames","type":"propertyDef","startIndex":25405,"stopIndex":25728,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13720":{"name":"getColNames","type":"propertyDef","startIndex":25730,"stopIndex":25795,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13721":{"name":"setColName","type":"propertyDef","startIndex":25798,"stopIndex":25892,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13722":{"name":"getColHead","type":"propertyDef","startIndex":25894,"stopIndex":25978,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13723":{"name":"recalculateRowsFirst","type":"propertyDef","startIndex":25983,"stopIndex":26176,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13724":{"name":"getActiveRowObject","type":"propertyDef","startIndex":26178,"stopIndex":26788,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13725":{"name":"getActiveRowIndex","type":"propertyDef","startIndex":26790,"stopIndex":26906,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13726":{"name":"getActiveColIndex","type":"propertyDef","startIndex":26908,"stopIndex":26994,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13727":{"name":"getActiveRow","type":"propertyDef","startIndex":26997,"stopIndex":27085,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13728":{"name":"getActiveColName","type":"propertyDef","startIndex":27087,"stopIndex":27183,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13729":{"name":"addCol","type":"propertyDef","startIndex":27186,"stopIndex":27797,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13730":{"name":"addRow","type":"propertyDef","startIndex":27799,"stopIndex":28104,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13731":{"name":"removeCol","type":"propertyDef","startIndex":28106,"stopIndex":28726,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13732":{"name":"removeRow","type":"propertyDef","startIndex":28728,"stopIndex":29001,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13733":{"name":"morphMenuItems","type":"propertyDef","startIndex":29005,"stopIndex":29334,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13692},"className":"lively.morphic.DataGrid","_owner":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13734":{"name":"lively.morphic.DataGridCell","type":"klassDef","startIndex":29368,"stopIndex":31929,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13735},{"__isSmartRef__":true,"id":13737},{"__isSmartRef__":true,"id":13738},{"__isSmartRef__":true,"id":13739},{"__isSmartRef__":true,"id":13740},{"__isSmartRef__":true,"id":13741},{"__isSmartRef__":true,"id":13742},{"__isSmartRef__":true,"id":13743},{"__isSmartRef__":true,"id":13744},{"__isSmartRef__":true,"id":13745},{"__isSmartRef__":true,"id":13746},{"__isSmartRef__":true,"id":13747}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Text","categories":[{"__isSmartRef__":true,"id":13736}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13735":{"name":"addToGrid","type":"propertyDef","startIndex":29450,"stopIndex":29549,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13736":{"name":"default category","type":"categoryDef","startIndex":29428,"stopIndex":31926,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13735},{"__isSmartRef__":true,"id":13737},{"__isSmartRef__":true,"id":13738},{"__isSmartRef__":true,"id":13739},{"__isSmartRef__":true,"id":13740},{"__isSmartRef__":true,"id":13741},{"__isSmartRef__":true,"id":13742},{"__isSmartRef__":true,"id":13743},{"__isSmartRef__":true,"id":13744},{"__isSmartRef__":true,"id":13745},{"__isSmartRef__":true,"id":13746},{"__isSmartRef__":true,"id":13747}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13737":{"name":"activate","type":"propertyDef","startIndex":29551,"stopIndex":29878,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13738":{"name":"deactivate","type":"propertyDef","startIndex":29880,"stopIndex":30209,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13739":{"name":"onMouseDown","type":"propertyDef","startIndex":30211,"stopIndex":30332,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13740":{"name":"put","type":"propertyDef","startIndex":30338,"stopIndex":30477,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13741":{"name":"onKeyPress","type":"propertyDef","startIndex":30479,"stopIndex":30641,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13742":{"name":"onBackspacePressed","type":"propertyDef","startIndex":30643,"stopIndex":30912,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13743":{"name":"initialize","type":"propertyDef","startIndex":30918,"stopIndex":31025,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13744":{"name":"updateDisplay","type":"propertyDef","startIndex":31027,"stopIndex":31204,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13745":{"name":"updateEvalExpression","type":"propertyDef","startIndex":31206,"stopIndex":31532,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13746":{"name":"displayExpression","type":"propertyDef","startIndex":31535,"stopIndex":31692,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13747":{"name":"getContent","type":"propertyDef","startIndex":31694,"stopIndex":31911,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13736},"className":"lively.morphic.DataGridCell","_owner":{"__isSmartRef__":true,"id":13734},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13748":{"name":"lively.morphic.DataGridColHead","type":"klassDef","startIndex":31930,"stopIndex":32250,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13749},{"__isSmartRef__":true,"id":13751}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Text","categories":[{"__isSmartRef__":true,"id":13750}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13749":{"name":"initialize","type":"propertyDef","startIndex":32015,"stopIndex":32143,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13750},"className":"lively.morphic.DataGridColHead","_owner":{"__isSmartRef__":true,"id":13748},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13750":{"name":"default category","type":"categoryDef","startIndex":31993,"stopIndex":32247,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13749},{"__isSmartRef__":true,"id":13751}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13751":{"name":"addToGrid","type":"propertyDef","startIndex":32145,"stopIndex":32244,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13750},"className":"lively.morphic.DataGridColHead","_owner":{"__isSmartRef__":true,"id":13748},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13752":{"name":"lively.morphic.TabContainer","type":"klassDef","startIndex":32251,"stopIndex":33262,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13753},{"__isSmartRef__":true,"id":13755},{"__isSmartRef__":true,"id":13756},{"__isSmartRef__":true,"id":13757},{"__isSmartRef__":true,"id":13758}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Morph","categories":[{"__isSmartRef__":true,"id":13754}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13753":{"name":"initialize","type":"propertyDef","startIndex":32347,"stopIndex":32810,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13754},"className":"lively.morphic.TabContainer","_owner":{"__isSmartRef__":true,"id":13752},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13754":{"name":"default category","type":"categoryDef","startIndex":32312,"stopIndex":33259,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13753},{"__isSmartRef__":true,"id":13755},{"__isSmartRef__":true,"id":13756},{"__isSmartRef__":true,"id":13757},{"__isSmartRef__":true,"id":13758}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13755":{"name":"initializeTabBar","type":"propertyDef","startIndex":32813,"stopIndex":32999,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13754},"className":"lively.morphic.TabContainer","_owner":{"__isSmartRef__":true,"id":13752},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13756":{"name":"getTabBarStrategy","type":"propertyDef","startIndex":33001,"stopIndex":33078,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13754},"className":"lively.morphic.TabContainer","_owner":{"__isSmartRef__":true,"id":13752},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13757":{"name":"getTabPaneExtent","type":"propertyDef","startIndex":33082,"stopIndex":33157,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13754},"className":"lively.morphic.TabContainer","_owner":{"__isSmartRef__":true,"id":13752},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13758":{"name":"addTabLabeled","type":"propertyDef","startIndex":33159,"stopIndex":33254,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13754},"className":"lively.morphic.TabContainer","_owner":{"__isSmartRef__":true,"id":13752},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13759":{"name":"lively.morphic.TabBar","type":"klassDef","startIndex":33263,"stopIndex":36259,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13760},{"__isSmartRef__":true,"id":13762},{"__isSmartRef__":true,"id":13763},{"__isSmartRef__":true,"id":13764},{"__isSmartRef__":true,"id":13765},{"__isSmartRef__":true,"id":13766},{"__isSmartRef__":true,"id":13767},{"__isSmartRef__":true,"id":13768},{"__isSmartRef__":true,"id":13769},{"__isSmartRef__":true,"id":13770},{"__isSmartRef__":true,"id":13771}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Morph","categories":[{"__isSmartRef__":true,"id":13761}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13760":{"name":"initialize","type":"propertyDef","startIndex":33353,"stopIndex":33781,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13761":{"name":"default category","type":"categoryDef","startIndex":33318,"stopIndex":36256,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13760},{"__isSmartRef__":true,"id":13762},{"__isSmartRef__":true,"id":13763},{"__isSmartRef__":true,"id":13764},{"__isSmartRef__":true,"id":13765},{"__isSmartRef__":true,"id":13766},{"__isSmartRef__":true,"id":13767},{"__isSmartRef__":true,"id":13768},{"__isSmartRef__":true,"id":13769},{"__isSmartRef__":true,"id":13770},{"__isSmartRef__":true,"id":13771}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13762":{"name":"getTabs","type":"propertyDef","startIndex":33783,"stopIndex":33840,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13763":{"name":"addTabLabeled","type":"propertyDef","startIndex":33843,"stopIndex":34111,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13764":{"name":"removeTab","type":"propertyDef","startIndex":34113,"stopIndex":34240,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13765":{"name":"unregisterTab","type":"propertyDef","startIndex":34242,"stopIndex":34358,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13766":{"name":"rearrangeTabs","type":"propertyDef","startIndex":34362,"stopIndex":34663,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13767":{"name":"activateTab","type":"propertyDef","startIndex":34665,"stopIndex":35021,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13768":{"name":"deactivateTab","type":"propertyDef","startIndex":35023,"stopIndex":35098,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13769":{"name":"morphMenuItems","type":"propertyDef","startIndex":35100,"stopIndex":35324,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13770":{"name":"onResizePane","type":"propertyDef","startIndex":35326,"stopIndex":36171,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13771":{"name":"getTabContainer","type":"propertyDef","startIndex":36173,"stopIndex":36246,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13761},"className":"lively.morphic.TabBar","_owner":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13772":{"name":"lively.morphic.Tab","type":"klassDef","startIndex":36260,"stopIndex":39917,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13773},{"__isSmartRef__":true,"id":13775},{"__isSmartRef__":true,"id":13776},{"__isSmartRef__":true,"id":13777},{"__isSmartRef__":true,"id":13778},{"__isSmartRef__":true,"id":13779},{"__isSmartRef__":true,"id":13780},{"__isSmartRef__":true,"id":13781},{"__isSmartRef__":true,"id":13782},{"__isSmartRef__":true,"id":13783},{"__isSmartRef__":true,"id":13784},{"__isSmartRef__":true,"id":13785},{"__isSmartRef__":true,"id":13786},{"__isSmartRef__":true,"id":13787}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Morph","categories":[{"__isSmartRef__":true,"id":13774}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13773":{"name":"initialize","type":"propertyDef","startIndex":36347,"stopIndex":36887,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13774":{"name":"default category","type":"categoryDef","startIndex":36312,"stopIndex":39914,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13773},{"__isSmartRef__":true,"id":13775},{"__isSmartRef__":true,"id":13776},{"__isSmartRef__":true,"id":13777},{"__isSmartRef__":true,"id":13778},{"__isSmartRef__":true,"id":13779},{"__isSmartRef__":true,"id":13780},{"__isSmartRef__":true,"id":13781},{"__isSmartRef__":true,"id":13782},{"__isSmartRef__":true,"id":13783},{"__isSmartRef__":true,"id":13784},{"__isSmartRef__":true,"id":13785},{"__isSmartRef__":true,"id":13786},{"__isSmartRef__":true,"id":13787}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13775":{"name":"initializePane","type":"propertyDef","startIndex":36895,"stopIndex":37010,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13776":{"name":"initializeLabel","type":"propertyDef","startIndex":37012,"stopIndex":37534,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13777":{"name":"getTabContainer","type":"propertyDef","startIndex":37537,"stopIndex":37610,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13778":{"name":"setLabel","type":"propertyDef","startIndex":37612,"stopIndex":37734,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13779":{"name":"getLabel","type":"propertyDef","startIndex":37736,"stopIndex":37806,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13780":{"name":"getTabBar","type":"propertyDef","startIndex":37808,"stopIndex":37869,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13781":{"name":"getPane","type":"propertyDef","startIndex":37871,"stopIndex":37928,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13782":{"name":"onMouseDown","type":"propertyDef","startIndex":37933,"stopIndex":38013,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13783":{"name":"morphMenuItems","type":"propertyDef","startIndex":38015,"stopIndex":38523,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13784":{"name":"onResizePane","type":"propertyDef","startIndex":38525,"stopIndex":39081,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13785":{"name":"resizePane","type":"propertyDef","startIndex":39083,"stopIndex":39250,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13786":{"name":"remove","type":"propertyDef","startIndex":39252,"stopIndex":39584,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13787":{"name":"addTo","type":"propertyDef","startIndex":39586,"stopIndex":39910,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13774},"className":"lively.morphic.Tab","_owner":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13788":{"name":"lively.morphic.TabPane","type":"klassDef","startIndex":39918,"stopIndex":40672,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13789},{"__isSmartRef__":true,"id":13791},{"__isSmartRef__":true,"id":13792}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"lively.morphic.Morph","categories":[{"__isSmartRef__":true,"id":13790}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13789":{"name":"initialize","type":"propertyDef","startIndex":39996,"stopIndex":40345,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13790},"className":"lively.morphic.TabPane","_owner":{"__isSmartRef__":true,"id":13788},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13790":{"name":"default category","type":"categoryDef","startIndex":39974,"stopIndex":40669,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13789},{"__isSmartRef__":true,"id":13791},{"__isSmartRef__":true,"id":13792}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13791":{"name":"setExtent","type":"propertyDef","startIndex":40352,"stopIndex":40600,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13790},"className":"lively.morphic.TabPane","_owner":{"__isSmartRef__":true,"id":13788},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13792":{"name":"remove","type":"propertyDef","startIndex":40603,"stopIndex":40666,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13790},"className":"lively.morphic.TabPane","_owner":{"__isSmartRef__":true,"id":13788},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13793":{"name":"lively.morphic.TabStrategyTop","type":"klassDef","startIndex":40673,"stopIndex":41202,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13794},{"__isSmartRef__":true,"id":13796},{"__isSmartRef__":true,"id":13797}],"sourceControl":{"__isSmartRef__":true,"id":13559},"superclassName":"Object","categories":[{"__isSmartRef__":true,"id":13795}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13794":{"name":"adjustTabBar","type":"propertyDef","startIndex":40756,"stopIndex":40869,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13795},"className":"lively.morphic.TabStrategyTop","_owner":{"__isSmartRef__":true,"id":13793},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13795":{"name":"default category","type":"categoryDef","startIndex":40722,"stopIndex":41199,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[{"__isSmartRef__":true,"id":13794},{"__isSmartRef__":true,"id":13796},{"__isSmartRef__":true,"id":13797}],"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13796":{"name":"calculateExtent","type":"propertyDef","startIndex":40872,"stopIndex":41098,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13795},"className":"lively.morphic.TabStrategyTop","_owner":{"__isSmartRef__":true,"id":13793},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13797":{"name":"getTabBarWidth","type":"propertyDef","startIndex":41101,"stopIndex":41197,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"_isStatic":false,"category":{"__isSmartRef__":true,"id":13795},"className":"lively.morphic.TabStrategyTop","_owner":{"__isSmartRef__":true,"id":13793},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13798":{"name":null,"type":"comment","startIndex":41203,"stopIndex":41203,"fileName":"lively/morphic/AdditionalMorphs.js","_subElements":[],"sourceControl":{"__isSmartRef__":true,"id":13559},"__LivelyClassName__":"lively.ide.FileFragment","__SourceModuleName__":"Global.lively.ide.FileParsing"},"13799":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Canvas.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13800":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/ColorChooserDraft.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13801":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Compat.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13802":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/CompatLayer.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13803":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/CompatSCB.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13804":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Complete.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13805":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Connectors.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13806":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Core.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13807":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/EventExperiments.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13808":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Events.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13809":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Examples.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13810":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Experiments.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13811":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Graffle.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13812":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Halos.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13813":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/HTML.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13814":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/jQueryMorphAddons.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13815":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Layout.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13816":{"target":{"__isSmartRef__":true,"id":13817},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.ChangeSetNode","__SourceModuleName__":"Global.lively.ide.LocalBrowser"},"13817":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"13818":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/MorphAddons.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13819":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/ObjectMigration.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13820":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Paragraphs.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13821":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/PathShapes.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13822":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Rendering.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13823":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/ScriptingSupport.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13824":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Serialization.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13825":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Shapes.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13826":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Styles.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13827":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/SVG.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13828":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Tests.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13829":{"target":{"__isSmartRef__":true,"id":13560},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"localName":"tests/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13830":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/TextCore.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13831":{"target":{"__isSmartRef__":true,"id":13561},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"localName":"video/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13832":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/Widgets.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13833":{"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/WidgetsAddOns.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13834":{"isListItem":true,"string":"AdditionalMorphs.js","value":{"__isSmartRef__":true,"id":13562}},"13835":{"isListItem":true,"string":"Canvas.js (not parsed)","value":{"__isSmartRef__":true,"id":13799}},"13836":{"isListItem":true,"string":"ColorChooserDraft.js (not parsed)","value":{"__isSmartRef__":true,"id":13800}},"13837":{"isListItem":true,"string":"Compat.js (not parsed)","value":{"__isSmartRef__":true,"id":13801}},"13838":{"isListItem":true,"string":"CompatLayer.js (not parsed)","value":{"__isSmartRef__":true,"id":13802}},"13839":{"isListItem":true,"string":"CompatSCB.js (not parsed)","value":{"__isSmartRef__":true,"id":13803}},"13840":{"isListItem":true,"string":"Complete.js (not parsed)","value":{"__isSmartRef__":true,"id":13804}},"13841":{"isListItem":true,"string":"Connectors.js (not parsed)","value":{"__isSmartRef__":true,"id":13805}},"13842":{"isListItem":true,"string":"Core.js (not parsed)","value":{"__isSmartRef__":true,"id":13806}},"13843":{"isListItem":true,"string":"EventExperiments.js (not parsed)","value":{"__isSmartRef__":true,"id":13807}},"13844":{"isListItem":true,"string":"Events.js (not parsed)","value":{"__isSmartRef__":true,"id":13808}},"13845":{"isListItem":true,"string":"Examples.js (not parsed)","value":{"__isSmartRef__":true,"id":13809}},"13846":{"isListItem":true,"string":"Experiments.js (not parsed)","value":{"__isSmartRef__":true,"id":13810}},"13847":{"isListItem":true,"string":"Graffle.js (not parsed)","value":{"__isSmartRef__":true,"id":13811}},"13848":{"isListItem":true,"string":"Halos.js (not parsed)","value":{"__isSmartRef__":true,"id":13812}},"13849":{"isListItem":true,"string":"HTML.js (not parsed)","value":{"__isSmartRef__":true,"id":13813}},"13850":{"isListItem":true,"string":"jQueryMorphAddons.js (not parsed)","value":{"__isSmartRef__":true,"id":13814}},"13851":{"isListItem":true,"string":"Layout.js (not parsed)","value":{"__isSmartRef__":true,"id":13815}},"13852":{"isListItem":true,"string":"Local code","value":{"__isSmartRef__":true,"id":13816}},"13853":{"isListItem":true,"string":"MorphAddons.js (not parsed)","value":{"__isSmartRef__":true,"id":13818}},"13854":{"isListItem":true,"string":"ObjectMigration.js (not parsed)","value":{"__isSmartRef__":true,"id":13819}},"13855":{"isListItem":true,"string":"Paragraphs.js (not parsed)","value":{"__isSmartRef__":true,"id":13820}},"13856":{"isListItem":true,"string":"PathShapes.js (not parsed)","value":{"__isSmartRef__":true,"id":13821}},"13857":{"isListItem":true,"string":"Rendering.js (not parsed)","value":{"__isSmartRef__":true,"id":13822}},"13858":{"isListItem":true,"string":"ScriptingSupport.js (not parsed)","value":{"__isSmartRef__":true,"id":13823}},"13859":{"isListItem":true,"string":"Serialization.js (not parsed)","value":{"__isSmartRef__":true,"id":13824}},"13860":{"isListItem":true,"string":"Shapes.js (not parsed)","value":{"__isSmartRef__":true,"id":13825}},"13861":{"isListItem":true,"string":"Styles.js (not parsed)","value":{"__isSmartRef__":true,"id":13826}},"13862":{"isListItem":true,"string":"SVG.js (not parsed)","value":{"__isSmartRef__":true,"id":13827}},"13863":{"isListItem":true,"string":"Tests.js (not parsed)","value":{"__isSmartRef__":true,"id":13828}},"13864":{"isListItem":true,"string":"tests/","value":{"__isSmartRef__":true,"id":13829}},"13865":{"isListItem":true,"string":"TextCore.js (not parsed)","value":{"__isSmartRef__":true,"id":13830}},"13866":{"isListItem":true,"string":"video/","value":{"__isSmartRef__":true,"id":13831}},"13867":{"isListItem":true,"string":"Widgets.js (not parsed)","value":{"__isSmartRef__":true,"id":13832}},"13868":{"isListItem":true,"string":"WidgetsAddOns.js (not parsed)","value":{"__isSmartRef__":true,"id":13833}},"13869":{"morph":{"__isSmartRef__":true,"id":13547},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13870":{"x":0,"y":27.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13871":{"sourceObj":{"__isSmartRef__":true,"id":13547},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"setPane1Selection","converter":null,"converterString":null,"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","varMapping":{"__isSmartRef__":true,"id":13872},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13873},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13872":{"source":{"__isSmartRef__":true,"id":13547},"target":{"__isSmartRef__":true,"id":13290}},"13873":{"updater":{"__isSmartRef__":true,"id":13874}},"13874":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":13872},"source":"function ($upd, v) { $upd(v, this.sourceObj) }","funcProperties":{"__isSmartRef__":true,"id":13875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13875":{},"13876":{"sourceObj":{"__isSmartRef__":true,"id":13547},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane1Selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13877},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13877":{"source":{"__isSmartRef__":true,"id":13547},"target":{"__isSmartRef__":true,"id":13290}},"13878":{"sourceObj":{"__isSmartRef__":true,"id":13547},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane1Content","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13879},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13879":{"source":{"__isSmartRef__":true,"id":13547},"target":{"__isSmartRef__":true,"id":13290}},"13880":{"sourceObj":{"__isSmartRef__":true,"id":13547},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane1Menu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13881},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13881":{"source":{"__isSmartRef__":true,"id":13547},"target":{"__isSmartRef__":true,"id":13290}},"13882":{"target":{"__isSmartRef__":true,"id":13563},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13558},"moduleName":"lively/morphic/AdditionalMorphs.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13883":{"onDownPressed":{"__isSmartRef__":true,"id":13884},"onUpPressed":{"__isSmartRef__":true,"id":13891}},"13884":{"varMapping":{"__isSmartRef__":true,"id":13885},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":13890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13885":{"this":{"__isSmartRef__":true,"id":13547},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13886}},"13886":{"$super":{"__isSmartRef__":true,"id":13887}},"13887":{"varMapping":{"__isSmartRef__":true,"id":13888},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13888":{"obj":{"__isSmartRef__":true,"id":13547},"name":"onDownPressed"},"13889":{},"13890":{},"13891":{"varMapping":{"__isSmartRef__":true,"id":13892},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":13897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13892":{"this":{"__isSmartRef__":true,"id":13547},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13893}},"13893":{"$super":{"__isSmartRef__":true,"id":13894}},"13894":{"varMapping":{"__isSmartRef__":true,"id":13895},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13895":{"obj":{"__isSmartRef__":true,"id":13547},"name":"onUpPressed"},"13896":{},"13897":{},"13898":{"source":{"__isSmartRef__":true,"id":13290},"target":{"__isSmartRef__":true,"id":13547}},"13899":{"sourceObj":{"__isSmartRef__":true,"id":13290},"sourceAttrName":"setPane2Content","targetObj":{"__isSmartRef__":true,"id":13900},"targetMethodName":"updateList","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13966},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13900":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13901},"derivationIds":[null],"id":"B31EA208-14D4-4785-BE6F-7D012EED1A0D","renderContextTable":{"__isSmartRef__":true,"id":13907},"itemList":[{"__isSmartRef__":true,"id":13908},{"__isSmartRef__":true,"id":13910},{"__isSmartRef__":true,"id":13912},{"__isSmartRef__":true,"id":13914},{"__isSmartRef__":true,"id":13916},{"__isSmartRef__":true,"id":13918},{"__isSmartRef__":true,"id":13920},{"__isSmartRef__":true,"id":13922},{"__isSmartRef__":true,"id":13924},{"__isSmartRef__":true,"id":13926},{"__isSmartRef__":true,"id":13928},{"__isSmartRef__":true,"id":13930},{"__isSmartRef__":true,"id":13932},{"__isSmartRef__":true,"id":13934},{"__isSmartRef__":true,"id":13936}],"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":13938},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13939},"selectedLineNo":2,"selectOnMove":false,"owner":{"__isSmartRef__":true,"id":13276},"attributeConnections":[{"__isSmartRef__":true,"id":13940},{"__isSmartRef__":true,"id":13945},{"__isSmartRef__":true,"id":13947},{"__isSmartRef__":true,"id":13949}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":{"__isSmartRef__":true,"id":13913},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13951},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core"},"13901":{"_Position":{"__isSmartRef__":true,"id":13902},"renderContextTable":{"__isSmartRef__":true,"id":13903},"_Extent":{"__isSmartRef__":true,"id":13904},"_Padding":{"__isSmartRef__":true,"id":13905},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":13906},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13902":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13903":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13904":{"x":205,"y":192.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13905":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13906":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13907":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"13908":{"isListItem":true,"string":"lively.morphic.ControlPoint","value":{"__isSmartRef__":true,"id":13909}},"13909":{"target":{"__isSmartRef__":true,"id":13594},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13910":{"isListItem":true,"string":"lively.morphic.DataGrid","value":{"__isSmartRef__":true,"id":13911}},"13911":{"target":{"__isSmartRef__":true,"id":13690},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13912":{"isListItem":true,"string":"lively.morphic.DataGridCell","value":{"__isSmartRef__":true,"id":13913}},"13913":{"target":{"__isSmartRef__":true,"id":13734},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13914":{"isListItem":true,"string":"lively.morphic.DataGridColHead","value":{"__isSmartRef__":true,"id":13915}},"13915":{"target":{"__isSmartRef__":true,"id":13748},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13916":{"isListItem":true,"string":"lively.morphic.HtmlWrapperMorph","value":{"__isSmartRef__":true,"id":13917}},"13917":{"target":{"__isSmartRef__":true,"id":13681},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13918":{"isListItem":true,"string":"lively.morphic.Path","value":{"__isSmartRef__":true,"id":13919}},"13919":{"target":{"__isSmartRef__":true,"id":13565},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13920":{"isListItem":true,"string":"lively.morphic.PathControlPointHalo","value":{"__isSmartRef__":true,"id":13921}},"13921":{"target":{"__isSmartRef__":true,"id":13634},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13922":{"isListItem":true,"string":"lively.morphic.PathInsertPointHalo","value":{"__isSmartRef__":true,"id":13923}},"13923":{"target":{"__isSmartRef__":true,"id":13652},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13924":{"isListItem":true,"string":"lively.morphic.PathOriginHackLayer","value":{"__isSmartRef__":true,"id":13925}},"13925":{"target":{"__isSmartRef__":true,"id":13666},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CopFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13926":{"isListItem":true,"string":"lively.morphic.PathVertexControlPointHalo","value":{"__isSmartRef__":true,"id":13927}},"13927":{"target":{"__isSmartRef__":true,"id":13642},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13928":{"isListItem":true,"string":"lively.morphic.Tab","value":{"__isSmartRef__":true,"id":13929}},"13929":{"target":{"__isSmartRef__":true,"id":13772},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13930":{"isListItem":true,"string":"lively.morphic.TabBar","value":{"__isSmartRef__":true,"id":13931}},"13931":{"target":{"__isSmartRef__":true,"id":13759},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13932":{"isListItem":true,"string":"lively.morphic.TabContainer","value":{"__isSmartRef__":true,"id":13933}},"13933":{"target":{"__isSmartRef__":true,"id":13752},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13934":{"isListItem":true,"string":"lively.morphic.TabPane","value":{"__isSmartRef__":true,"id":13935}},"13935":{"target":{"__isSmartRef__":true,"id":13788},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13936":{"isListItem":true,"string":"lively.morphic.TabStrategyTop","value":{"__isSmartRef__":true,"id":13937}},"13937":{"target":{"__isSmartRef__":true,"id":13793},"browser":{"__isSmartRef__":true,"id":13290},"__LivelyClassName__":"lively.ide.CategorizedClassFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13938":{"morph":{"__isSmartRef__":true,"id":13900},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13939":{"x":205,"y":27.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13940":{"sourceObj":{"__isSmartRef__":true,"id":13900},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"setPane2Selection","converter":null,"converterString":null,"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","varMapping":{"__isSmartRef__":true,"id":13941},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13942},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13941":{"source":{"__isSmartRef__":true,"id":13900},"target":{"__isSmartRef__":true,"id":13290}},"13942":{"updater":{"__isSmartRef__":true,"id":13943}},"13943":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":13941},"source":"function ($upd, v) { $upd(v, this.sourceObj) }","funcProperties":{"__isSmartRef__":true,"id":13944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13944":{},"13945":{"sourceObj":{"__isSmartRef__":true,"id":13900},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane2Selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13946},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13946":{"source":{"__isSmartRef__":true,"id":13900},"target":{"__isSmartRef__":true,"id":13290}},"13947":{"sourceObj":{"__isSmartRef__":true,"id":13900},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane2Content","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13948},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13948":{"source":{"__isSmartRef__":true,"id":13900},"target":{"__isSmartRef__":true,"id":13290}},"13949":{"sourceObj":{"__isSmartRef__":true,"id":13900},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane2Menu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13950},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13950":{"source":{"__isSmartRef__":true,"id":13900},"target":{"__isSmartRef__":true,"id":13290}},"13951":{"onDownPressed":{"__isSmartRef__":true,"id":13952},"onUpPressed":{"__isSmartRef__":true,"id":13959}},"13952":{"varMapping":{"__isSmartRef__":true,"id":13953},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":13958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13953":{"this":{"__isSmartRef__":true,"id":13900},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13954}},"13954":{"$super":{"__isSmartRef__":true,"id":13955}},"13955":{"varMapping":{"__isSmartRef__":true,"id":13956},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13956":{"obj":{"__isSmartRef__":true,"id":13900},"name":"onDownPressed"},"13957":{},"13958":{},"13959":{"varMapping":{"__isSmartRef__":true,"id":13960},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":13965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13960":{"this":{"__isSmartRef__":true,"id":13900},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13961}},"13961":{"$super":{"__isSmartRef__":true,"id":13962}},"13962":{"varMapping":{"__isSmartRef__":true,"id":13963},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13963":{"obj":{"__isSmartRef__":true,"id":13900},"name":"onUpPressed"},"13964":{},"13965":{},"13966":{"source":{"__isSmartRef__":true,"id":13290},"target":{"__isSmartRef__":true,"id":13900}},"13967":{"sourceObj":{"__isSmartRef__":true,"id":13290},"sourceAttrName":"setPane3Content","targetObj":{"__isSmartRef__":true,"id":13968},"targetMethodName":"updateList","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14008},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13968":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13969},"derivationIds":[null],"id":"0B2253C3-C56A-47F5-B9BB-56AC0902E711","renderContextTable":{"__isSmartRef__":true,"id":13975},"itemList":[{"__isSmartRef__":true,"id":13976},{"__isSmartRef__":true,"id":13978}],"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":13980},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":13981},"selectedLineNo":0,"selectOnMove":false,"owner":{"__isSmartRef__":true,"id":13276},"attributeConnections":[{"__isSmartRef__":true,"id":13982},{"__isSmartRef__":true,"id":13987},{"__isSmartRef__":true,"id":13989},{"__isSmartRef__":true,"id":13991}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":{"__isSmartRef__":true,"id":13977},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13993},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core"},"13969":{"_Position":{"__isSmartRef__":true,"id":13970},"renderContextTable":{"__isSmartRef__":true,"id":13971},"_Extent":{"__isSmartRef__":true,"id":13972},"_Padding":{"__isSmartRef__":true,"id":13973},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":13974},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"13970":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13971":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"13972":{"x":205,"y":192.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13973":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"13974":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"13975":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"13976":{"isListItem":true,"string":"-- all --","value":{"__isSmartRef__":true,"id":13977}},"13977":{"target":{"__isSmartRef__":true,"id":13734},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13913},"__LivelyClassName__":"lively.ide.AllMethodCategoryFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13978":{"isListItem":true,"string":"default category","value":{"__isSmartRef__":true,"id":13979}},"13979":{"target":{"__isSmartRef__":true,"id":13736},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13913},"targets":[{"__isSmartRef__":true,"id":13736}],"__LivelyClassName__":"lively.ide.MethodCategoryFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"13980":{"morph":{"__isSmartRef__":true,"id":13968},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13981":{"x":410,"y":27.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"13982":{"sourceObj":{"__isSmartRef__":true,"id":13968},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"setPane3Selection","converter":null,"converterString":null,"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","varMapping":{"__isSmartRef__":true,"id":13983},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13984},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13983":{"source":{"__isSmartRef__":true,"id":13968},"target":{"__isSmartRef__":true,"id":13290}},"13984":{"updater":{"__isSmartRef__":true,"id":13985}},"13985":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":13983},"source":"function ($upd, v) { $upd(v, this.sourceObj) }","funcProperties":{"__isSmartRef__":true,"id":13986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13986":{},"13987":{"sourceObj":{"__isSmartRef__":true,"id":13968},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane3Selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13988},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13988":{"source":{"__isSmartRef__":true,"id":13968},"target":{"__isSmartRef__":true,"id":13290}},"13989":{"sourceObj":{"__isSmartRef__":true,"id":13968},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane3Content","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13990},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13990":{"source":{"__isSmartRef__":true,"id":13968},"target":{"__isSmartRef__":true,"id":13290}},"13991":{"sourceObj":{"__isSmartRef__":true,"id":13968},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane3Menu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":13992},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"13992":{"source":{"__isSmartRef__":true,"id":13968},"target":{"__isSmartRef__":true,"id":13290}},"13993":{"onDownPressed":{"__isSmartRef__":true,"id":13994},"onUpPressed":{"__isSmartRef__":true,"id":14001}},"13994":{"varMapping":{"__isSmartRef__":true,"id":13995},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":14000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13995":{"this":{"__isSmartRef__":true,"id":13968},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13996}},"13996":{"$super":{"__isSmartRef__":true,"id":13997}},"13997":{"varMapping":{"__isSmartRef__":true,"id":13998},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"13998":{"obj":{"__isSmartRef__":true,"id":13968},"name":"onDownPressed"},"13999":{},"14000":{},"14001":{"varMapping":{"__isSmartRef__":true,"id":14002},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":14007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14002":{"this":{"__isSmartRef__":true,"id":13968},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14003}},"14003":{"$super":{"__isSmartRef__":true,"id":14004}},"14004":{"varMapping":{"__isSmartRef__":true,"id":14005},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14005":{"obj":{"__isSmartRef__":true,"id":13968},"name":"onUpPressed"},"14006":{},"14007":{},"14008":{"source":{"__isSmartRef__":true,"id":13290},"target":{"__isSmartRef__":true,"id":13968}},"14009":{"sourceObj":{"__isSmartRef__":true,"id":13290},"sourceAttrName":"setPane4Content","targetObj":{"__isSmartRef__":true,"id":14010},"targetMethodName":"updateList","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14070},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14010":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14011},"derivationIds":[null],"id":"F468EAC3-1AA6-4452-9FDD-43587D6C02F9","renderContextTable":{"__isSmartRef__":true,"id":14017},"itemList":[{"__isSmartRef__":true,"id":14018},{"__isSmartRef__":true,"id":14020},{"__isSmartRef__":true,"id":14022},{"__isSmartRef__":true,"id":14024},{"__isSmartRef__":true,"id":14026},{"__isSmartRef__":true,"id":14028},{"__isSmartRef__":true,"id":14030},{"__isSmartRef__":true,"id":14032},{"__isSmartRef__":true,"id":14034},{"__isSmartRef__":true,"id":14036},{"__isSmartRef__":true,"id":14038},{"__isSmartRef__":true,"id":14040}],"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":14042},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":14043},"selectedLineNo":5,"selectOnMove":false,"owner":{"__isSmartRef__":true,"id":13276},"attributeConnections":[{"__isSmartRef__":true,"id":14044},{"__isSmartRef__":true,"id":14049},{"__isSmartRef__":true,"id":14051},{"__isSmartRef__":true,"id":14053}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":{"__isSmartRef__":true,"id":14029},"prevScroll":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14055},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core"},"14011":{"_Position":{"__isSmartRef__":true,"id":14012},"renderContextTable":{"__isSmartRef__":true,"id":14013},"_Extent":{"__isSmartRef__":true,"id":14014},"_Padding":{"__isSmartRef__":true,"id":14015},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":14016},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14012":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14013":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14014":{"x":205,"y":192.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14015":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14016":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14017":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"14018":{"isListItem":true,"string":"activate (proto)","value":{"__isSmartRef__":true,"id":14019}},"14019":{"target":{"__isSmartRef__":true,"id":13737},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14020":{"isListItem":true,"string":"addToGrid (proto)","value":{"__isSmartRef__":true,"id":14021}},"14021":{"target":{"__isSmartRef__":true,"id":13735},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14022":{"isListItem":true,"string":"deactivate (proto)","value":{"__isSmartRef__":true,"id":14023}},"14023":{"target":{"__isSmartRef__":true,"id":13738},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14024":{"isListItem":true,"string":"displayExpression (proto)","value":{"__isSmartRef__":true,"id":14025}},"14025":{"target":{"__isSmartRef__":true,"id":13746},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14026":{"isListItem":true,"string":"getContent (proto)","value":{"__isSmartRef__":true,"id":14027}},"14027":{"target":{"__isSmartRef__":true,"id":13747},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14028":{"isListItem":true,"string":"initialize (proto)","value":{"__isSmartRef__":true,"id":14029}},"14029":{"target":{"__isSmartRef__":true,"id":13743},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14030":{"isListItem":true,"string":"onBackspacePressed (proto)","value":{"__isSmartRef__":true,"id":14031}},"14031":{"target":{"__isSmartRef__":true,"id":13742},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14032":{"isListItem":true,"string":"onKeyPress (proto)","value":{"__isSmartRef__":true,"id":14033}},"14033":{"target":{"__isSmartRef__":true,"id":13741},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14034":{"isListItem":true,"string":"onMouseDown (proto)","value":{"__isSmartRef__":true,"id":14035}},"14035":{"target":{"__isSmartRef__":true,"id":13739},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14036":{"isListItem":true,"string":"put (proto)","value":{"__isSmartRef__":true,"id":14037}},"14037":{"target":{"__isSmartRef__":true,"id":13740},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14038":{"isListItem":true,"string":"updateDisplay (proto)","value":{"__isSmartRef__":true,"id":14039}},"14039":{"target":{"__isSmartRef__":true,"id":13744},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14040":{"isListItem":true,"string":"updateEvalExpression (proto)","value":{"__isSmartRef__":true,"id":14041}},"14041":{"target":{"__isSmartRef__":true,"id":13745},"browser":{"__isSmartRef__":true,"id":13290},"parent":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.ide.ClassElemFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"14042":{"morph":{"__isSmartRef__":true,"id":14010},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14043":{"x":615,"y":27.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14044":{"sourceObj":{"__isSmartRef__":true,"id":14010},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"setPane4Selection","converter":null,"converterString":null,"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","varMapping":{"__isSmartRef__":true,"id":14045},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14046},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14045":{"source":{"__isSmartRef__":true,"id":14010},"target":{"__isSmartRef__":true,"id":13290}},"14046":{"updater":{"__isSmartRef__":true,"id":14047}},"14047":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":14045},"source":"function ($upd, v) { $upd(v, this.sourceObj) }","funcProperties":{"__isSmartRef__":true,"id":14048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14048":{},"14049":{"sourceObj":{"__isSmartRef__":true,"id":14010},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane4Selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14050},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14050":{"source":{"__isSmartRef__":true,"id":14010},"target":{"__isSmartRef__":true,"id":13290}},"14051":{"sourceObj":{"__isSmartRef__":true,"id":14010},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane4Content","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14052},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14052":{"source":{"__isSmartRef__":true,"id":14010},"target":{"__isSmartRef__":true,"id":13290}},"14053":{"sourceObj":{"__isSmartRef__":true,"id":14010},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"getPane4Menu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14054},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14054":{"source":{"__isSmartRef__":true,"id":14010},"target":{"__isSmartRef__":true,"id":13290}},"14055":{"onDownPressed":{"__isSmartRef__":true,"id":14056},"onUpPressed":{"__isSmartRef__":true,"id":14063}},"14056":{"varMapping":{"__isSmartRef__":true,"id":14057},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":14062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14057":{"this":{"__isSmartRef__":true,"id":14010},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14058}},"14058":{"$super":{"__isSmartRef__":true,"id":14059}},"14059":{"varMapping":{"__isSmartRef__":true,"id":14060},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14060":{"obj":{"__isSmartRef__":true,"id":14010},"name":"onDownPressed"},"14061":{},"14062":{},"14063":{"varMapping":{"__isSmartRef__":true,"id":14064},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":14069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14064":{"this":{"__isSmartRef__":true,"id":14010},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14065}},"14065":{"$super":{"__isSmartRef__":true,"id":14066}},"14066":{"varMapping":{"__isSmartRef__":true,"id":14067},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14067":{"obj":{"__isSmartRef__":true,"id":14010},"name":"onUpPressed"},"14068":{},"14069":{},"14070":{"source":{"__isSmartRef__":true,"id":13290},"target":{"__isSmartRef__":true,"id":14010}},"14071":{"sourceObj":{"__isSmartRef__":true,"id":13290},"sourceAttrName":"setSourceString","targetObj":{"__isSmartRef__":true,"id":14072},"targetMethodName":"setTextString","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14115},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14072":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14073},"derivationIds":[null],"id":"E2BA7D0F-42B2-4F07-97E9-8DB54A213ED9","renderContextTable":{"__isSmartRef__":true,"id":14078},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14079},{"__isSmartRef__":true,"id":14081},{"__isSmartRef__":true,"id":14084},{"__isSmartRef__":true,"id":14086},{"__isSmartRef__":true,"id":14088},{"__isSmartRef__":true,"id":14090},{"__isSmartRef__":true,"id":14093},{"__isSmartRef__":true,"id":14095},{"__isSmartRef__":true,"id":14097},{"__isSmartRef__":true,"id":14099},{"__isSmartRef__":true,"id":14102},{"__isSmartRef__":true,"id":14104},{"__isSmartRef__":true,"id":14106}],"eventHandler":{"__isSmartRef__":true,"id":14108},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Courier","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":14109},"priorExtent":{"__isSmartRef__":true,"id":14110},"_MaxTextWidth":808,"_MinTextWidth":808,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":13276},"accessibleInInactiveWindow":true,"layout":{"__isSmartRef__":true,"id":14111},"noEval":true,"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":14112},{"__isSmartRef__":true,"id":14113}],"doNotSerialize":["$$textString","$$savedTextString"],"doNotCopyProperties":["$$textString","$$savedTextString"],"textString":" initialize: function($super, arg) {\n $super(arg);\n this.evalExpression = undefined;\n },","lastSyntaxHighlightTime":1326842103803,"styleClass":["Browser_codePaneText"],"focusHaloBorderWidth":0.5,"previousSelection":[84,84],"priorSelectionRange":[74,88],"showsHalos":false,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14073":{"_Position":{"__isSmartRef__":true,"id":14074},"renderContextTable":{"__isSmartRef__":true,"id":14075},"_Extent":{"__isSmartRef__":true,"id":14076},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":14077},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14074":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14075":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14076":{"x":820,"y":302.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14077":{"x":5,"y":5,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14078":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14079":{"style":{"__isSmartRef__":true,"id":14080},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14080":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14081":{"style":{"__isSmartRef__":true,"id":14082},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":"initialize:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14082":{"color":{"__isSmartRef__":true,"id":14083},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14083":{"r":0.5450980392156862,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14084":{"style":{"__isSmartRef__":true,"id":14085},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14085":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14086":{"style":{"__isSmartRef__":true,"id":14087},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14087":{"color":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14088":{"style":{"__isSmartRef__":true,"id":14089},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":"($super, arg) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14089":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14090":{"style":{"__isSmartRef__":true,"id":14091},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14091":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14092":{"r":0,"g":0.5019607843137255,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14093":{"style":{"__isSmartRef__":true,"id":14094},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":"\n $super(arg);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14094":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14095":{"style":{"__isSmartRef__":true,"id":14096},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14096":{"color":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14097":{"style":{"__isSmartRef__":true,"id":14098},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":".evalExpression = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14098":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14099":{"style":{"__isSmartRef__":true,"id":14100},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14100":{"color":{"__isSmartRef__":true,"id":14101},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14101":{"r":0.5019607843137255,"g":0,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14102":{"style":{"__isSmartRef__":true,"id":14103},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":";\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14103":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14104":{"style":{"__isSmartRef__":true,"id":14105},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14105":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14106":{"style":{"__isSmartRef__":true,"id":14107},"chunkOwner":{"__isSmartRef__":true,"id":14072},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14107":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14108":{"morph":{"__isSmartRef__":true,"id":14072},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14109":{"x":0,"y":247.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14110":{"x":820,"y":302.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14111":{"resizeWidth":true,"resizeHeight":true},"14112":{"sourceObj":{"__isSmartRef__":true,"id":14072},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":14072},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14113":{"sourceObj":{"__isSmartRef__":true,"id":14072},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"setSourceString","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14114},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14114":{"source":{"__isSmartRef__":true,"id":14072},"target":{"__isSmartRef__":true,"id":13290}},"14115":{"source":{"__isSmartRef__":true,"id":13290},"target":{"__isSmartRef__":true,"id":14072}},"14116":{"sourceObj":{"__isSmartRef__":true,"id":13290},"sourceAttrName":"targetURL","targetObj":{"__isSmartRef__":true,"id":13277},"targetMethodName":"setTextString","converter":null,"converterString":null,"updaterString":"function ($upd, value) { value && $upd(String(value)) }","varMapping":{"__isSmartRef__":true,"id":14117},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14118},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14117":{"source":{"__isSmartRef__":true,"id":13290},"target":{"__isSmartRef__":true,"id":13277}},"14118":{"updater":{"__isSmartRef__":true,"id":14119}},"14119":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":14117},"source":"function ($upd, value) { value && $upd(String(value)) }","funcProperties":{"__isSmartRef__":true,"id":14120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"14120":{},"14121":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/lively/morphic/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"14122":{"source":{"__isSmartRef__":true,"id":13277},"target":{"__isSmartRef__":true,"id":13290}},"14123":{"submorphs":[{"__isSmartRef__":true,"id":14124}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14136},"derivationIds":[null],"id":"62721D18-EFC9-4F24-916E-694D124D4902","renderContextTable":{"__isSmartRef__":true,"id":14141},"eventHandler":{"__isSmartRef__":true,"id":14142},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14143},"priorExtent":{"__isSmartRef__":true,"id":14144},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":14145},"label":{"__isSmartRef__":true,"id":14124},"owner":{"__isSmartRef__":true,"id":13276},"attributeConnections":[{"__isSmartRef__":true,"id":14154}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"layout":{"__isSmartRef__":true,"id":14156},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"14124":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14125},"derivationIds":[null],"id":"606049BA-777E-4C3C-93D7-37A8CEB22E7E","renderContextTable":{"__isSmartRef__":true,"id":14130},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14131}],"eventHandler":{"__isSmartRef__":true,"id":14133},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":14134},"priorExtent":{"__isSmartRef__":true,"id":14135},"_MaxTextWidth":98.39999999999999,"_MinTextWidth":98.39999999999999,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14123},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14125":{"_Position":{"__isSmartRef__":true,"id":14126},"renderContextTable":{"__isSmartRef__":true,"id":14127},"_Extent":{"__isSmartRef__":true,"id":14128},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":14129},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14126":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14127":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14128":{"x":98.39999999999999,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14129":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14130":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14131":{"style":{"__isSmartRef__":true,"id":14132},"chunkOwner":{"__isSmartRef__":true,"id":14124},"storedString":"codebase","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14132":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14133":{"morph":{"__isSmartRef__":true,"id":14124},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14134":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14135":{"x":98.39999999999999,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14136":{"_Position":{"__isSmartRef__":true,"id":14137},"renderContextTable":{"__isSmartRef__":true,"id":14138},"_Extent":{"__isSmartRef__":true,"id":14139},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14140},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14137":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14138":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14139":{"x":98.39999999999999,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14140":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14141":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14142":{"morph":{"__isSmartRef__":true,"id":14123},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14143":{"x":656,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14144":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14145":{"stops":[{"__isSmartRef__":true,"id":14146},{"__isSmartRef__":true,"id":14148},{"__isSmartRef__":true,"id":14150},{"__isSmartRef__":true,"id":14152}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14146":{"offset":0,"color":{"__isSmartRef__":true,"id":14147}},"14147":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14148":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14149}},"14149":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14150":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14151}},"14151":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14152":{"offset":1,"color":{"__isSmartRef__":true,"id":14153}},"14153":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14154":{"sourceObj":{"__isSmartRef__":true,"id":14123},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"setTargetURL","converter":null,"converterString":"function () { return URL.codeBase.withFilename('lively/')}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14155},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14155":{"source":{"__isSmartRef__":true,"id":14123},"target":{"__isSmartRef__":true,"id":13290}},"14156":{"moveHorizontal":true},"14157":{"submorphs":[{"__isSmartRef__":true,"id":14158}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14170},"derivationIds":[null],"id":"DDA81FD7-1C01-4351-AE72-70C9D0C768B0","renderContextTable":{"__isSmartRef__":true,"id":14175},"eventHandler":{"__isSmartRef__":true,"id":14176},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14177},"priorExtent":{"__isSmartRef__":true,"id":14178},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":14179},"label":{"__isSmartRef__":true,"id":14158},"owner":{"__isSmartRef__":true,"id":13276},"attributeConnections":[{"__isSmartRef__":true,"id":14188}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"layout":{"__isSmartRef__":true,"id":14190},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets"},"14158":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14159},"derivationIds":[null],"id":"FF71F0B6-28C3-4470-927A-31DB16681C64","renderContextTable":{"__isSmartRef__":true,"id":14164},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14165}],"eventHandler":{"__isSmartRef__":true,"id":14167},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":14168},"priorExtent":{"__isSmartRef__":true,"id":14169},"_MaxTextWidth":65.6,"_MinTextWidth":65.6,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14157},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14159":{"_Position":{"__isSmartRef__":true,"id":14160},"renderContextTable":{"__isSmartRef__":true,"id":14161},"_Extent":{"__isSmartRef__":true,"id":14162},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":14163},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14160":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14161":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14162":{"x":65.6,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14163":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14164":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14165":{"style":{"__isSmartRef__":true,"id":14166},"chunkOwner":{"__isSmartRef__":true,"id":14158},"storedString":"local","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14166":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14167":{"morph":{"__isSmartRef__":true,"id":14158},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14168":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14169":{"x":65.6,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14170":{"_Position":{"__isSmartRef__":true,"id":14171},"renderContextTable":{"__isSmartRef__":true,"id":14172},"_Extent":{"__isSmartRef__":true,"id":14173},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14174},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14171":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14172":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14173":{"x":65.6,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14174":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14175":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14176":{"morph":{"__isSmartRef__":true,"id":14157},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14177":{"x":754.4,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14178":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14179":{"stops":[{"__isSmartRef__":true,"id":14180},{"__isSmartRef__":true,"id":14182},{"__isSmartRef__":true,"id":14184},{"__isSmartRef__":true,"id":14186}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14180":{"offset":0,"color":{"__isSmartRef__":true,"id":14181}},"14181":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14182":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14183}},"14183":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14184":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14185}},"14185":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14186":{"offset":1,"color":{"__isSmartRef__":true,"id":14187}},"14187":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14188":{"sourceObj":{"__isSmartRef__":true,"id":14157},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13290},"targetMethodName":"setTargetURL","converter":null,"converterString":"function () { return URL.source.getDirectory() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14189},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14189":{"source":{"__isSmartRef__":true,"id":14157},"target":{"__isSmartRef__":true,"id":13290}},"14190":{"moveHorizontal":true},"14191":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14192},"derivationIds":[null],"id":"EADC009F-D116-415B-8781-0FC24E549C06","renderContextTable":{"__isSmartRef__":true,"id":14198},"eventHandler":{"__isSmartRef__":true,"id":14199},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"_Position":{"__isSmartRef__":true,"id":14200},"fixed":[{"__isSmartRef__":true,"id":13292},{"__isSmartRef__":true,"id":13327},{"__isSmartRef__":true,"id":13362},{"__isSmartRef__":true,"id":13397},{"__isSmartRef__":true,"id":13432},{"__isSmartRef__":true,"id":13467},{"__isSmartRef__":true,"id":13505}],"scalingBelow":[{"__isSmartRef__":true,"id":14072}],"scalingAbove":[{"__isSmartRef__":true,"id":13547},{"__isSmartRef__":true,"id":13900},{"__isSmartRef__":true,"id":13968},{"__isSmartRef__":true,"id":14010}],"minHeight":20,"pointerConnection":null,"owner":{"__isSmartRef__":true,"id":13276},"styleClass":["Browser_resizer"],"__LivelyClassName__":"lively.morphic.HorizontalDivider","__SourceModuleName__":"Global.lively.morphic.Widgets"},"14192":{"_Position":{"__isSmartRef__":true,"id":14193},"renderContextTable":{"__isSmartRef__":true,"id":14194},"_Extent":{"__isSmartRef__":true,"id":14195},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14196},"_Fill":{"__isSmartRef__":true,"id":14197},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14193":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14194":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14195":{"x":820,"y":5.5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14196":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14197":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14198":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14199":{"morph":{"__isSmartRef__":true,"id":14191},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14200":{"x":0,"y":242,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14201":{"_Position":{"__isSmartRef__":true,"id":14202},"renderContextTable":{"__isSmartRef__":true,"id":14203},"_Extent":{"__isSmartRef__":true,"id":14204},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14205},"_Fill":{"__isSmartRef__":true,"id":14206},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14202":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14203":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14204":{"x":820,"y":550,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14205":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14206":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14207":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14208":{"morph":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14209":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"14210":{"x":0,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14211":{"submorphs":[{"__isSmartRef__":true,"id":14212},{"__isSmartRef__":true,"id":14224},{"__isSmartRef__":true,"id":14259},{"__isSmartRef__":true,"id":14293}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14328},"derivationIds":[null],"id":"30ACF2AB-D564-4603-8763-E462EFCA575D","renderContextTable":{"__isSmartRef__":true,"id":14333},"eventHandler":{"__isSmartRef__":true,"id":14334},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":14335},"_Position":{"__isSmartRef__":true,"id":14336},"windowMorph":{"__isSmartRef__":true,"id":13275},"label":{"__isSmartRef__":true,"id":14212},"closeButton":{"__isSmartRef__":true,"id":14224},"menuButton":{"__isSmartRef__":true,"id":14259},"collapseButton":{"__isSmartRef__":true,"id":14293},"priorExtent":{"__isSmartRef__":true,"id":14337},"owner":{"__isSmartRef__":true,"id":13275},"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets"},"14212":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14213},"derivationIds":[null],"id":"753AB10C-FE6B-410C-ACD3-1A74DDB942EC","renderContextTable":{"__isSmartRef__":true,"id":14217},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14218}],"eventHandler":{"__isSmartRef__":true,"id":14220},"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":14221},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":14211},"priorExtent":{"__isSmartRef__":true,"id":14222},"_MaxTextWidth":761,"_MinTextWidth":761,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":14223},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14213":{"_Position":{"__isSmartRef__":true,"id":14214},"renderContextTable":{"__isSmartRef__":true,"id":14215},"_Extent":{"__isSmartRef__":true,"id":14216},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13131},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"_BorderRadius":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14214":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14215":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14216":{"x":761,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14217":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14218":{"style":{"__isSmartRef__":true,"id":14219},"chunkOwner":{"__isSmartRef__":true,"id":14212},"storedString":"AdditionalMorphs.js:lively.morphic.DataGridCell:-- all --:initialize (proto)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14219":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14220":{"morph":{"__isSmartRef__":true,"id":14212},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14221":{"resizeWidth":true},"14222":{"x":761,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14223":{"x":20,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14224":{"submorphs":[{"__isSmartRef__":true,"id":14225}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14236},"derivationIds":[null],"id":"0D98CFFD-C804-4BF6-849C-AD98B120289C","renderContextTable":{"__isSmartRef__":true,"id":14241},"eventHandler":{"__isSmartRef__":true,"id":14242},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":14243},"priorExtent":{"__isSmartRef__":true,"id":14244},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":14245},"label":{"__isSmartRef__":true,"id":14225},"owner":{"__isSmartRef__":true,"id":14211},"layout":{"__isSmartRef__":true,"id":14254},"attributeConnections":[{"__isSmartRef__":true,"id":14255},{"__isSmartRef__":true,"id":14257}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets"},"14225":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14226},"derivationIds":[null],"id":"219B6BC4-B875-4625-9DD3-9F1F9AEAB681","renderContextTable":{"__isSmartRef__":true,"id":14230},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14231}],"eventHandler":{"__isSmartRef__":true,"id":14233},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":14234},"priorExtent":{"__isSmartRef__":true,"id":14235},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14224},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14226":{"_Position":{"__isSmartRef__":true,"id":14227},"renderContextTable":{"__isSmartRef__":true,"id":14228},"_Extent":{"__isSmartRef__":true,"id":14229},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13145},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14227":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14228":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14229":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14230":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14231":{"style":{"__isSmartRef__":true,"id":14232},"chunkOwner":{"__isSmartRef__":true,"id":14225},"storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14232":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14233":{"morph":{"__isSmartRef__":true,"id":14225},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14234":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14235":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14236":{"_Position":{"__isSmartRef__":true,"id":14237},"renderContextTable":{"__isSmartRef__":true,"id":14238},"_Extent":{"__isSmartRef__":true,"id":14239},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14240},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_StrokeOpacity":0,"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14237":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14238":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14239":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14240":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14241":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14242":{"morph":{"__isSmartRef__":true,"id":14224},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14243":{"x":800,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14244":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14245":{"stops":[{"__isSmartRef__":true,"id":14246},{"__isSmartRef__":true,"id":14248},{"__isSmartRef__":true,"id":14250},{"__isSmartRef__":true,"id":14252}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14246":{"offset":0,"color":{"__isSmartRef__":true,"id":14247}},"14247":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14248":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14249}},"14249":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14250":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14251}},"14251":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14252":{"offset":1,"color":{"__isSmartRef__":true,"id":14253}},"14253":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14254":{"moveHorizontal":true},"14255":{"sourceObj":{"__isSmartRef__":true,"id":14224},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13275},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14256},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14256":{"source":{"__isSmartRef__":true,"id":14224},"target":{"__isSmartRef__":true,"id":13275}},"14257":{"sourceObj":{"__isSmartRef__":true,"id":14224},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13275},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14258},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14258":{"source":{"__isSmartRef__":true,"id":14224},"target":{"__isSmartRef__":true,"id":13275}},"14259":{"submorphs":[{"__isSmartRef__":true,"id":14260}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14271},"derivationIds":[null],"id":"F5D60543-9ED7-40F7-8642-967314AEE39D","renderContextTable":{"__isSmartRef__":true,"id":14276},"eventHandler":{"__isSmartRef__":true,"id":14277},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":14278},"priorExtent":{"__isSmartRef__":true,"id":14279},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":14280},"label":{"__isSmartRef__":true,"id":14260},"owner":{"__isSmartRef__":true,"id":14211},"attributeConnections":[{"__isSmartRef__":true,"id":14289},{"__isSmartRef__":true,"id":14291}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets"},"14260":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14261},"derivationIds":[null],"id":"5A591AB5-1657-492B-9A3B-DF676DC24E3A","renderContextTable":{"__isSmartRef__":true,"id":14265},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14266}],"eventHandler":{"__isSmartRef__":true,"id":14268},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":14269},"priorExtent":{"__isSmartRef__":true,"id":14270},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14259},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14261":{"_Position":{"__isSmartRef__":true,"id":14262},"renderContextTable":{"__isSmartRef__":true,"id":14263},"_Extent":{"__isSmartRef__":true,"id":14264},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13145},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14262":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14263":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14264":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14265":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14266":{"style":{"__isSmartRef__":true,"id":14267},"chunkOwner":{"__isSmartRef__":true,"id":14260},"storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14267":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14268":{"morph":{"__isSmartRef__":true,"id":14260},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14269":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14270":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14271":{"_Position":{"__isSmartRef__":true,"id":14272},"renderContextTable":{"__isSmartRef__":true,"id":14273},"_Extent":{"__isSmartRef__":true,"id":14274},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14275},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_StrokeOpacity":0,"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14272":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14273":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14274":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14275":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14276":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14277":{"morph":{"__isSmartRef__":true,"id":14259},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14278":{"x":3,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14279":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14280":{"stops":[{"__isSmartRef__":true,"id":14281},{"__isSmartRef__":true,"id":14283},{"__isSmartRef__":true,"id":14285},{"__isSmartRef__":true,"id":14287}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14281":{"offset":0,"color":{"__isSmartRef__":true,"id":14282}},"14282":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14283":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14284}},"14284":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14285":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14286}},"14286":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14287":{"offset":1,"color":{"__isSmartRef__":true,"id":14288}},"14288":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14289":{"sourceObj":{"__isSmartRef__":true,"id":14259},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13275},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14290},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14290":{"source":{"__isSmartRef__":true,"id":14259},"target":{"__isSmartRef__":true,"id":13275}},"14291":{"sourceObj":{"__isSmartRef__":true,"id":14259},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13275},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14292},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14292":{"source":{"__isSmartRef__":true,"id":14259},"target":{"__isSmartRef__":true,"id":13275}},"14293":{"submorphs":[{"__isSmartRef__":true,"id":14294}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14305},"derivationIds":[null],"id":"66D4F3BE-1A2F-4EF3-B82B-E6B6805EEC3A","renderContextTable":{"__isSmartRef__":true,"id":14310},"eventHandler":{"__isSmartRef__":true,"id":14311},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":14312},"priorExtent":{"__isSmartRef__":true,"id":14313},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":13158},"lighterFill":{"__isSmartRef__":true,"id":14314},"label":{"__isSmartRef__":true,"id":14294},"owner":{"__isSmartRef__":true,"id":14211},"layout":{"__isSmartRef__":true,"id":14323},"attributeConnections":[{"__isSmartRef__":true,"id":14324},{"__isSmartRef__":true,"id":14326}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets"},"14294":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14295},"derivationIds":[null],"id":"7215999C-3100-4F42-A7AB-F8763B764530","renderContextTable":{"__isSmartRef__":true,"id":14299},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14300}],"eventHandler":{"__isSmartRef__":true,"id":14302},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":14303},"priorExtent":{"__isSmartRef__":true,"id":14304},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14293},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14295":{"_Position":{"__isSmartRef__":true,"id":14296},"renderContextTable":{"__isSmartRef__":true,"id":14297},"_Extent":{"__isSmartRef__":true,"id":14298},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":13145},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14296":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14298":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14299":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14300":{"style":{"__isSmartRef__":true,"id":14301},"chunkOwner":{"__isSmartRef__":true,"id":14294},"storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14301":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14302":{"morph":{"__isSmartRef__":true,"id":14294},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14303":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14304":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14305":{"_Position":{"__isSmartRef__":true,"id":14306},"renderContextTable":{"__isSmartRef__":true,"id":14307},"_Extent":{"__isSmartRef__":true,"id":14308},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14309},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":13157},"_Fill":{"__isSmartRef__":true,"id":13158},"_StrokeOpacity":0,"_BorderRadius":5,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14306":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14307":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14308":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14309":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14310":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14311":{"morph":{"__isSmartRef__":true,"id":14293},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14312":{"x":781,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14313":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14314":{"stops":[{"__isSmartRef__":true,"id":14315},{"__isSmartRef__":true,"id":14317},{"__isSmartRef__":true,"id":14319},{"__isSmartRef__":true,"id":14321}],"vector":{"__isSmartRef__":true,"id":5620},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14315":{"offset":0,"color":{"__isSmartRef__":true,"id":14316}},"14316":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14317":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14318}},"14318":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14319":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14320}},"14320":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14321":{"offset":1,"color":{"__isSmartRef__":true,"id":14322}},"14322":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14323":{"moveHorizontal":true},"14324":{"sourceObj":{"__isSmartRef__":true,"id":14293},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":13275},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14325},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14325":{"source":{"__isSmartRef__":true,"id":14293},"target":{"__isSmartRef__":true,"id":13275}},"14326":{"sourceObj":{"__isSmartRef__":true,"id":14293},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":13275},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14327},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"14327":{"source":{"__isSmartRef__":true,"id":14293},"target":{"__isSmartRef__":true,"id":13275}},"14328":{"_Position":{"__isSmartRef__":true,"id":14329},"renderContextTable":{"__isSmartRef__":true,"id":14330},"_Extent":{"__isSmartRef__":true,"id":14331},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14332},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":13259},"_Fill":{"__isSmartRef__":true,"id":5616},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14329":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14330":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14331":{"x":820,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14332":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14333":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14334":{"morph":{"__isSmartRef__":true,"id":14211},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14335":{"resizeWidth":true,"adjustForNewBounds":true},"14336":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14337":{"x":820,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14338":{"renderContextTable":{"__isSmartRef__":true,"id":14339},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14340},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":14341},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"14339":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14340":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"14341":{"x":820,"y":571,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14342":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14343":{"morph":{"__isSmartRef__":true,"id":13275},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14344":{"adjustForNewBounds":true},"14345":{"x":476,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14346":{"x":820,"y":571,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14347":{"x":603,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14348":{"submorphs":[{"__isSmartRef__":true,"id":14349},{"__isSmartRef__":true,"id":15879},{"__isSmartRef__":true,"id":15919}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16066},"id":"72A9986E-20BC-4D10-BBB7-4B4CBA2DC45C","renderContextTable":{"__isSmartRef__":true,"id":16071},"eventHandler":{"__isSmartRef__":true,"id":16072},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":16073},"LK2":true,"_Position":{"__isSmartRef__":true,"id":16074},"priorExtent":{"__isSmartRef__":true,"id":16075},"targetMorph":{"__isSmartRef__":true,"id":14349},"titleBar":{"__isSmartRef__":true,"id":15919},"contentOffset":{"__isSmartRef__":true,"id":16076},"collapsedTransform":{"__isSmartRef__":true,"id":16077},"collapsedExtent":{"__isSmartRef__":true,"id":16078},"expandedTransform":{"__isSmartRef__":true,"id":16079},"expandedExtent":{"__isSmartRef__":true,"id":16080},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":16081},"name":"ObjectEditor1","prevDragPos":{"__isSmartRef__":true,"id":16130},"highlighted":true,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","expandedPosition":{"__isSmartRef__":true,"id":16131},"state":"expanded","collapsedPosition":{"__isSmartRef__":true,"id":16132},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"minSize":{"__isSmartRef__":true,"id":16133},"minExtent":{"__isSmartRef__":true,"id":16134},"isCopyMorphRef":true,"morphRefId":16,"_Rotation":0,"_Scale":1.0060210561262526,"derivationIds":[205,"2951753B-EB95-4093-A0DD-249E83AC2204"],"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16135},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"14349":{"submorphs":[{"__isSmartRef__":true,"id":14350},{"__isSmartRef__":true,"id":15289},{"__isSmartRef__":true,"id":15069},{"__isSmartRef__":true,"id":15304},{"__isSmartRef__":true,"id":15320},{"__isSmartRef__":true,"id":15371},{"__isSmartRef__":true,"id":15421},{"__isSmartRef__":true,"id":15477},{"__isSmartRef__":true,"id":14845},{"__isSmartRef__":true,"id":14947},{"__isSmartRef__":true,"id":15532},{"__isSmartRef__":true,"id":15650},{"__isSmartRef__":true,"id":15665},{"__isSmartRef__":true,"id":15680}],"scripts":[{"__isSmartRef__":true,"id":15765}],"id":"70CC492C-943C-4498-BD63-CFE6FD9A0B7C","shape":{"__isSmartRef__":true,"id":15766},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15773},"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":15774},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":15777},"eventHandler":{"__isSmartRef__":true,"id":15778},"owner":{"__isSmartRef__":true,"id":14348},"priorExtent":{"__isSmartRef__":true,"id":15779},"layout":{"__isSmartRef__":true,"id":15780},"target":{"__isSmartRef__":true,"id":17},"scriptPane":{"__isSmartRef__":true,"id":14845},"scriptList":{"__isSmartRef__":true,"id":14350},"connectionList":{"__isSmartRef__":true,"id":15069},"morphSelector":{"__isSmartRef__":true,"id":15532},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":14947},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":15781},"tagChooser":{"__isSmartRef__":true,"id":15680},"currentTag":null,"_Rotation":0,"_Scale":1,"derivationIds":[206,"3BDE080D-3D60-4BB9-A690-E6001350F596"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15782},"__LivelyClassName__":"lively.morphic.Box"},"14350":{"submorphs":[],"scripts":[],"id":"FAFF2B1C-8C5E-4FF5-AB57-9A42680B9F61","shape":{"__isSmartRef__":true,"id":14351},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14358},"itemList":["-- ALL --","renderFunction","setupConnections"],"selectedLineNo":2,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":14359},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":14349},"priorExtent":{"__isSmartRef__":true,"id":14360},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":14361}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":14366},"doitContext":{"__isSmartRef__":true,"id":14367},"renderContextTable":{"__isSmartRef__":true,"id":15278},"eventHandler":{"__isSmartRef__":true,"id":15279},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":15280},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":17,"currentCategory":null,"_Rotation":0,"_Scale":1,"derivationIds":[207,"D87334B5-DFB8-438D-8038-D2C55A798E3B"],"selection":"setupConnections","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15281},"__LivelyClassName__":"lively.morphic.List"},"14351":{"position":{"__isSmartRef__":true,"id":14352},"_Extent":{"__isSmartRef__":true,"id":14353},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":14354},"_Fill":{"__isSmartRef__":true,"id":14355},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":14356},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":14357},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14352":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14353":{"x":180,"y":154.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14354":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14355":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14357":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14358":{"x":10,"y":63.027958027992966,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14359":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"14360":{"x":180,"y":159.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14361":{"sourceObj":{"__isSmartRef__":true,"id":14350},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":14349},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14362},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14363},"__LivelyClassName__":"AttributeConnection"},"14362":{"source":{"__isSmartRef__":true,"id":14350},"target":{"__isSmartRef__":true,"id":14349}},"14363":{"converter":{"__isSmartRef__":true,"id":14364}},"14364":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":14362},"source":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","funcProperties":{"__isSmartRef__":true,"id":14365},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14365":{},"14366":{"resizeHeight":true},"14367":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":14368},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":14373},"priorExtent":{"__isSmartRef__":true,"id":14374},"titleBar":{"__isSmartRef__":true,"id":14375},"contentOffset":{"__isSmartRef__":true,"id":14516},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":14517},"expandedExtent":{"__isSmartRef__":true,"id":14518},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":14519},"showsHalos":false,"name":"ObjectEditor","__SourceModuleName__":"Global.lively.morphic.Widgets","target":{"__isSmartRef__":true,"id":14520},"expandedPosition":{"__isSmartRef__":true,"id":14843},"partsBinMetaInfo":{"__isSmartRef__":true,"id":14844},"scriptList":{"__isSmartRef__":true,"id":14350},"scriptPane":{"__isSmartRef__":true,"id":14845},"classButton":{"__isSmartRef__":true,"id":15024},"connectionList":{"__isSmartRef__":true,"id":15069},"targetButton":{"__isSmartRef__":true,"id":15096},"renderContextTable":{"__isSmartRef__":true,"id":15139},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":15140},"morphSelector":{"__isSmartRef__":true,"id":15141},"eventHandler":{"__isSmartRef__":true,"id":15225},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15226},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"14368":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":14369},"_StrokeOpacity":0,"_BorderRadius":9.25,"_Extent":{"__isSmartRef__":true,"id":14370},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":14371},"renderContextTable":{"__isSmartRef__":true,"id":14372},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14369":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14370":{"x":981,"y":585.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14371":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14372":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14373":{"adjustForNewBounds":true},"14374":{"x":981,"y":585.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14375":{"submorphs":[{"__isSmartRef__":true,"id":14376},{"__isSmartRef__":true,"id":14389},{"__isSmartRef__":true,"id":14433},{"__isSmartRef__":true,"id":14465}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":14498},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":14511},"_Position":{"__isSmartRef__":true,"id":14512},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":14367},"label":{"__isSmartRef__":true,"id":14376},"closeButton":{"__isSmartRef__":true,"id":14389},"menuButton":{"__isSmartRef__":true,"id":14433},"collapseButton":{"__isSmartRef__":true,"id":14465},"priorExtent":{"__isSmartRef__":true,"id":14513},"owner":null,"__SourceModuleName__":"Global.lively.morphic.Widgets","name":"ObjectEditorTitleBar","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":14514},"eventHandler":{"__isSmartRef__":true,"id":14515},"__LivelyClassName__":"lively.morphic.TitleBar"},"14376":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":14377},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14382},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14383},"priorExtent":{"__isSmartRef__":true,"id":14384},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":14385}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":14375},"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":14387},"eventHandler":{"__isSmartRef__":true,"id":14388},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"14377":{"_Position":{"__isSmartRef__":true,"id":14378},"_Extent":{"__isSmartRef__":true,"id":14379},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14380},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14381},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14378":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14379":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14380":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14382":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14383":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14384":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14385":{"style":{"__isSmartRef__":true,"id":14386},"chunkOwner":{"__isSmartRef__":true,"id":14376},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14386":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14387":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14388":{"morph":{"__isSmartRef__":true,"id":14376},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14389":{"submorphs":[{"__isSmartRef__":true,"id":14390}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":14402},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14417},"priorExtent":{"__isSmartRef__":true,"id":14418},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14406},"lighterFill":{"__isSmartRef__":true,"id":14419},"label":{"__isSmartRef__":true,"id":14390},"owner":{"__isSmartRef__":true,"id":14375},"layout":{"__isSmartRef__":true,"id":14428},"attributeConnections":[{"__isSmartRef__":true,"id":14429},{"__isSmartRef__":true,"id":14430}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":14431},"eventHandler":{"__isSmartRef__":true,"id":14432},"__LivelyClassName__":"lively.morphic.WindowControl"},"14390":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":14391},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14395},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14396},"priorExtent":{"__isSmartRef__":true,"id":14397},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":14398}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14389},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":14400},"eventHandler":{"__isSmartRef__":true,"id":14401},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"14391":{"_Position":{"__isSmartRef__":true,"id":14392},"_Extent":{"__isSmartRef__":true,"id":14393},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14380},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14394},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14392":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14393":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14394":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14395":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14396":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14397":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14398":{"style":{"__isSmartRef__":true,"id":14399},"chunkOwner":{"__isSmartRef__":true,"id":14390},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14399":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14401":{"morph":{"__isSmartRef__":true,"id":14390},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14402":{"_Position":{"__isSmartRef__":true,"id":14403},"_Extent":{"__isSmartRef__":true,"id":14404},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14405},"_Fill":{"__isSmartRef__":true,"id":14406},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14416},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14403":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14404":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14405":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14406":{"stops":[{"__isSmartRef__":true,"id":14407},{"__isSmartRef__":true,"id":14409},{"__isSmartRef__":true,"id":14411},{"__isSmartRef__":true,"id":14413}],"vector":{"__isSmartRef__":true,"id":14415},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14407":{"offset":0,"color":{"__isSmartRef__":true,"id":14408}},"14408":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14409":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14410}},"14410":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14411":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14412}},"14412":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14413":{"offset":1,"color":{"__isSmartRef__":true,"id":14414}},"14414":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14415":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14416":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14417":{"x":960.9776803724167,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14418":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14419":{"stops":[{"__isSmartRef__":true,"id":14420},{"__isSmartRef__":true,"id":14422},{"__isSmartRef__":true,"id":14424},{"__isSmartRef__":true,"id":14426}],"vector":{"__isSmartRef__":true,"id":14415},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14420":{"offset":0,"color":{"__isSmartRef__":true,"id":14421}},"14421":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14422":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14423}},"14423":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14424":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14425}},"14425":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14426":{"offset":1,"color":{"__isSmartRef__":true,"id":14427}},"14427":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14428":{"moveHorizontal":true},"14429":{"sourceObj":{"__isSmartRef__":true,"id":14389},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14367},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14430":{"sourceObj":{"__isSmartRef__":true,"id":14389},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14367},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14431":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14432":{"morph":{"__isSmartRef__":true,"id":14389},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14433":{"submorphs":[{"__isSmartRef__":true,"id":14434}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":14446},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14450},"priorExtent":{"__isSmartRef__":true,"id":14451},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14406},"lighterFill":{"__isSmartRef__":true,"id":14452},"label":{"__isSmartRef__":true,"id":14434},"owner":{"__isSmartRef__":true,"id":14375},"attributeConnections":[{"__isSmartRef__":true,"id":14461},{"__isSmartRef__":true,"id":14462}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":14463},"eventHandler":{"__isSmartRef__":true,"id":14464},"__LivelyClassName__":"lively.morphic.WindowControl"},"14434":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":14435},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14439},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14440},"priorExtent":{"__isSmartRef__":true,"id":14441},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":14442}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14433},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":14444},"eventHandler":{"__isSmartRef__":true,"id":14445},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"14435":{"_Position":{"__isSmartRef__":true,"id":14436},"_Extent":{"__isSmartRef__":true,"id":14437},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14380},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14438},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14436":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14437":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14438":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14439":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14440":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14441":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14442":{"style":{"__isSmartRef__":true,"id":14443},"chunkOwner":{"__isSmartRef__":true,"id":14434},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14443":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14444":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14445":{"morph":{"__isSmartRef__":true,"id":14434},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14446":{"_Position":{"__isSmartRef__":true,"id":14447},"_Extent":{"__isSmartRef__":true,"id":14448},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14405},"_Fill":{"__isSmartRef__":true,"id":14406},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14449},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14447":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14448":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14449":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14450":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14451":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14452":{"stops":[{"__isSmartRef__":true,"id":14453},{"__isSmartRef__":true,"id":14455},{"__isSmartRef__":true,"id":14457},{"__isSmartRef__":true,"id":14459}],"vector":{"__isSmartRef__":true,"id":14415},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14453":{"offset":0,"color":{"__isSmartRef__":true,"id":14454}},"14454":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14455":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14456}},"14456":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14457":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14458}},"14458":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14459":{"offset":1,"color":{"__isSmartRef__":true,"id":14460}},"14460":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14461":{"sourceObj":{"__isSmartRef__":true,"id":14433},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14367},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14462":{"sourceObj":{"__isSmartRef__":true,"id":14433},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14367},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14463":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14464":{"morph":{"__isSmartRef__":true,"id":14433},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14465":{"submorphs":[{"__isSmartRef__":true,"id":14466}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":14478},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14482},"priorExtent":{"__isSmartRef__":true,"id":14483},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14406},"lighterFill":{"__isSmartRef__":true,"id":14484},"label":{"__isSmartRef__":true,"id":14466},"owner":{"__isSmartRef__":true,"id":14375},"layout":{"__isSmartRef__":true,"id":14493},"attributeConnections":[{"__isSmartRef__":true,"id":14494},{"__isSmartRef__":true,"id":14495}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":14496},"eventHandler":{"__isSmartRef__":true,"id":14497},"__LivelyClassName__":"lively.morphic.WindowControl"},"14466":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":14467},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14471},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14472},"priorExtent":{"__isSmartRef__":true,"id":14473},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":14474}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14465},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":14476},"eventHandler":{"__isSmartRef__":true,"id":14477},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"14467":{"_Position":{"__isSmartRef__":true,"id":14468},"_Extent":{"__isSmartRef__":true,"id":14469},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14380},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14470},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14468":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14469":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14470":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14471":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14472":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14473":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14474":{"style":{"__isSmartRef__":true,"id":14475},"chunkOwner":{"__isSmartRef__":true,"id":14466},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14475":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14476":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14477":{"morph":{"__isSmartRef__":true,"id":14466},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14478":{"_Position":{"__isSmartRef__":true,"id":14479},"_Extent":{"__isSmartRef__":true,"id":14480},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14405},"_Fill":{"__isSmartRef__":true,"id":14406},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14481},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14479":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14480":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14482":{"x":941.9776803724167,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14483":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14484":{"stops":[{"__isSmartRef__":true,"id":14485},{"__isSmartRef__":true,"id":14487},{"__isSmartRef__":true,"id":14489},{"__isSmartRef__":true,"id":14491}],"vector":{"__isSmartRef__":true,"id":14415},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14485":{"offset":0,"color":{"__isSmartRef__":true,"id":14486}},"14486":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14487":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14488}},"14488":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14489":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14490}},"14490":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14491":{"offset":1,"color":{"__isSmartRef__":true,"id":14492}},"14492":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14493":{"moveHorizontal":true},"14494":{"sourceObj":{"__isSmartRef__":true,"id":14465},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14367},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14495":{"sourceObj":{"__isSmartRef__":true,"id":14465},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14367},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14496":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14497":{"morph":{"__isSmartRef__":true,"id":14465},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14498":{"_Position":{"__isSmartRef__":true,"id":14499},"_Extent":{"__isSmartRef__":true,"id":14500},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":14501},"_Fill":{"__isSmartRef__":true,"id":14502},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14510},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14499":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14500":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14501":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14502":{"stops":[{"__isSmartRef__":true,"id":14503},{"__isSmartRef__":true,"id":14505},{"__isSmartRef__":true,"id":14507}],"vector":{"__isSmartRef__":true,"id":14509},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14503":{"offset":0,"color":{"__isSmartRef__":true,"id":14504}},"14504":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14505":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14506}},"14506":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14507":{"offset":1,"color":{"__isSmartRef__":true,"id":14508}},"14508":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14509":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14510":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14511":{"resizeWidth":true,"adjustForNewBounds":true},"14512":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14513":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14514":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14515":{"morph":{"__isSmartRef__":true,"id":14375},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14516":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14517":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"14518":{"x":861.5223196275833,"y":575.166499196892,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14519":{"x":613,"y":129,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14520":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14521},"id":394,"renderContextTable":{"__isSmartRef__":true,"id":14527},"textChunks":[{"__isSmartRef__":true,"id":14528}],"eventHandler":{"__isSmartRef__":true,"id":14530},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14531},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14532},"priorExtent":{"__isSmartRef__":true,"id":14533},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14534},"layout":{"__isSmartRef__":true,"id":14681},"doitContext":{"__isSmartRef__":true,"id":14682},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14521":{"_Position":{"__isSmartRef__":true,"id":14522},"renderContextTable":{"__isSmartRef__":true,"id":14523},"_Extent":{"__isSmartRef__":true,"id":14524},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":{"__isSmartRef__":true,"id":14526},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14522":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14523":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14524":{"x":500,"y":200,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14525":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14526":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14527":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14528":{"style":{"__isSmartRef__":true,"id":14529},"chunkOwner":{"__isSmartRef__":true,"id":14520},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14529":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14530":{"morph":{"__isSmartRef__":true,"id":14520},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14531":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14532":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14533":{"x":500,"y":200,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14534":{"submorphs":[{"__isSmartRef__":true,"id":14520},{"__isSmartRef__":true,"id":14535}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14672},"id":395,"renderContextTable":{"__isSmartRef__":true,"id":14675},"eventHandler":{"__isSmartRef__":true,"id":14676},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":14677},"LK2":true,"_Position":{"__isSmartRef__":true,"id":14678},"priorExtent":{"__isSmartRef__":true,"id":14679},"targetMorph":{"__isSmartRef__":true,"id":14520},"titleBar":{"__isSmartRef__":true,"id":14535},"contentOffset":{"__isSmartRef__":true,"id":14532},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":14680},"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"14535":{"submorphs":[{"__isSmartRef__":true,"id":14536},{"__isSmartRef__":true,"id":14549},{"__isSmartRef__":true,"id":14595},{"__isSmartRef__":true,"id":14628}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14662},"id":396,"renderContextTable":{"__isSmartRef__":true,"id":14667},"eventHandler":{"__isSmartRef__":true,"id":14668},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":14669},"_Position":{"__isSmartRef__":true,"id":14670},"windowMorph":{"__isSmartRef__":true,"id":14534},"label":{"__isSmartRef__":true,"id":14536},"closeButton":{"__isSmartRef__":true,"id":14549},"menuButton":{"__isSmartRef__":true,"id":14595},"collapseButton":{"__isSmartRef__":true,"id":14628},"priorExtent":{"__isSmartRef__":true,"id":14671},"owner":{"__isSmartRef__":true,"id":14534},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"14536":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14537},"id":397,"renderContextTable":{"__isSmartRef__":true,"id":14541},"textChunks":[{"__isSmartRef__":true,"id":14542}],"eventHandler":{"__isSmartRef__":true,"id":14544},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14545},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":14546},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":14535},"priorExtent":{"__isSmartRef__":true,"id":14547},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":14548},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14537":{"_Position":{"__isSmartRef__":true,"id":14538},"renderContextTable":{"__isSmartRef__":true,"id":14539},"_Extent":{"__isSmartRef__":true,"id":14540},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14538":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14539":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14540":{"x":441,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14541":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14542":{"style":{"__isSmartRef__":true,"id":14543},"chunkOwner":{"__isSmartRef__":true,"id":14536},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14543":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14544":{"morph":{"__isSmartRef__":true,"id":14536},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14545":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14546":{"resizeWidth":true},"14547":{"x":0,"y":14,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14548":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14549":{"submorphs":[{"__isSmartRef__":true,"id":14550}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14562},"id":398,"renderContextTable":{"__isSmartRef__":true,"id":14577},"eventHandler":{"__isSmartRef__":true,"id":14578},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14579},"priorExtent":{"__isSmartRef__":true,"id":14580},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14567},"lighterFill":{"__isSmartRef__":true,"id":14581},"label":{"__isSmartRef__":true,"id":14550},"owner":{"__isSmartRef__":true,"id":14535},"layout":{"__isSmartRef__":true,"id":14590},"attributeConnections":[{"__isSmartRef__":true,"id":14591},{"__isSmartRef__":true,"id":14593}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"14550":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14551},"id":399,"renderContextTable":{"__isSmartRef__":true,"id":14555},"textChunks":[{"__isSmartRef__":true,"id":14556}],"eventHandler":{"__isSmartRef__":true,"id":14558},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14559},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14560},"priorExtent":{"__isSmartRef__":true,"id":14561},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14549},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14551":{"_Position":{"__isSmartRef__":true,"id":14552},"renderContextTable":{"__isSmartRef__":true,"id":14553},"_Extent":{"__isSmartRef__":true,"id":14554},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14552":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14553":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14554":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14555":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14556":{"style":{"__isSmartRef__":true,"id":14557},"chunkOwner":{"__isSmartRef__":true,"id":14550},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14557":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14558":{"morph":{"__isSmartRef__":true,"id":14550},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14559":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14560":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14561":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14562":{"_Position":{"__isSmartRef__":true,"id":14563},"renderContextTable":{"__isSmartRef__":true,"id":14564},"_Extent":{"__isSmartRef__":true,"id":14565},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14566},"_Fill":{"__isSmartRef__":true,"id":14567},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14563":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14564":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14565":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14566":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14567":{"stops":[{"__isSmartRef__":true,"id":14568},{"__isSmartRef__":true,"id":14570},{"__isSmartRef__":true,"id":14572},{"__isSmartRef__":true,"id":14574}],"vector":{"__isSmartRef__":true,"id":14576},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14568":{"offset":0,"color":{"__isSmartRef__":true,"id":14569}},"14569":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14570":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14571}},"14571":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14572":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14573}},"14573":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14574":{"offset":1,"color":{"__isSmartRef__":true,"id":14575}},"14575":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14576":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14577":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14578":{"morph":{"__isSmartRef__":true,"id":14549},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14579":{"x":480,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14580":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14581":{"stops":[{"__isSmartRef__":true,"id":14582},{"__isSmartRef__":true,"id":14584},{"__isSmartRef__":true,"id":14586},{"__isSmartRef__":true,"id":14588}],"vector":{"__isSmartRef__":true,"id":14576},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14582":{"offset":0,"color":{"__isSmartRef__":true,"id":14583}},"14583":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14584":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14585}},"14585":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14586":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14587}},"14587":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14588":{"offset":1,"color":{"__isSmartRef__":true,"id":14589}},"14589":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14590":{"moveHorizontal":true},"14591":{"sourceObj":{"__isSmartRef__":true,"id":14549},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14534},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14592},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14592":{"source":{"__isSmartRef__":true,"id":14549},"target":{"__isSmartRef__":true,"id":14534}},"14593":{"sourceObj":{"__isSmartRef__":true,"id":14549},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14534},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14594},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14594":{"source":{"__isSmartRef__":true,"id":14549},"target":{"__isSmartRef__":true,"id":14534}},"14595":{"submorphs":[{"__isSmartRef__":true,"id":14596}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14607},"id":400,"renderContextTable":{"__isSmartRef__":true,"id":14611},"eventHandler":{"__isSmartRef__":true,"id":14612},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14613},"priorExtent":{"__isSmartRef__":true,"id":14614},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14567},"lighterFill":{"__isSmartRef__":true,"id":14615},"label":{"__isSmartRef__":true,"id":14596},"owner":{"__isSmartRef__":true,"id":14535},"attributeConnections":[{"__isSmartRef__":true,"id":14624},{"__isSmartRef__":true,"id":14626}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"14596":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14597},"id":401,"renderContextTable":{"__isSmartRef__":true,"id":14601},"textChunks":[{"__isSmartRef__":true,"id":14602}],"eventHandler":{"__isSmartRef__":true,"id":14604},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14559},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14605},"priorExtent":{"__isSmartRef__":true,"id":14606},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14595},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14597":{"_Position":{"__isSmartRef__":true,"id":14598},"renderContextTable":{"__isSmartRef__":true,"id":14599},"_Extent":{"__isSmartRef__":true,"id":14600},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14598":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14599":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14600":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14601":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14602":{"style":{"__isSmartRef__":true,"id":14603},"chunkOwner":{"__isSmartRef__":true,"id":14596},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14603":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14604":{"morph":{"__isSmartRef__":true,"id":14596},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14605":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14606":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14607":{"_Position":{"__isSmartRef__":true,"id":14608},"renderContextTable":{"__isSmartRef__":true,"id":14609},"_Extent":{"__isSmartRef__":true,"id":14610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14566},"_Fill":{"__isSmartRef__":true,"id":14567},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14608":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14609":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14610":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14611":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14612":{"morph":{"__isSmartRef__":true,"id":14595},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14613":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14614":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14615":{"stops":[{"__isSmartRef__":true,"id":14616},{"__isSmartRef__":true,"id":14618},{"__isSmartRef__":true,"id":14620},{"__isSmartRef__":true,"id":14622}],"vector":{"__isSmartRef__":true,"id":14576},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14616":{"offset":0,"color":{"__isSmartRef__":true,"id":14617}},"14617":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14618":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14619}},"14619":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14620":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14621}},"14621":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14622":{"offset":1,"color":{"__isSmartRef__":true,"id":14623}},"14623":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14624":{"sourceObj":{"__isSmartRef__":true,"id":14595},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14534},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14625},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14625":{"source":{"__isSmartRef__":true,"id":14595},"target":{"__isSmartRef__":true,"id":14534}},"14626":{"sourceObj":{"__isSmartRef__":true,"id":14595},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14534},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14627},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14627":{"source":{"__isSmartRef__":true,"id":14595},"target":{"__isSmartRef__":true,"id":14534}},"14628":{"submorphs":[{"__isSmartRef__":true,"id":14629}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14640},"id":402,"renderContextTable":{"__isSmartRef__":true,"id":14644},"eventHandler":{"__isSmartRef__":true,"id":14645},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14646},"priorExtent":{"__isSmartRef__":true,"id":14647},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14567},"lighterFill":{"__isSmartRef__":true,"id":14648},"label":{"__isSmartRef__":true,"id":14629},"owner":{"__isSmartRef__":true,"id":14535},"layout":{"__isSmartRef__":true,"id":14657},"attributeConnections":[{"__isSmartRef__":true,"id":14658},{"__isSmartRef__":true,"id":14660}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"14629":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14630},"id":403,"renderContextTable":{"__isSmartRef__":true,"id":14634},"textChunks":[{"__isSmartRef__":true,"id":14635}],"eventHandler":{"__isSmartRef__":true,"id":14637},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14559},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14638},"priorExtent":{"__isSmartRef__":true,"id":14639},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14628},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14630":{"_Position":{"__isSmartRef__":true,"id":14631},"renderContextTable":{"__isSmartRef__":true,"id":14632},"_Extent":{"__isSmartRef__":true,"id":14633},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14631":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14632":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14633":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14634":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14635":{"style":{"__isSmartRef__":true,"id":14636},"chunkOwner":{"__isSmartRef__":true,"id":14629},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14636":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14637":{"morph":{"__isSmartRef__":true,"id":14629},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14638":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14639":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14640":{"_Position":{"__isSmartRef__":true,"id":14641},"renderContextTable":{"__isSmartRef__":true,"id":14642},"_Extent":{"__isSmartRef__":true,"id":14643},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14566},"_Fill":{"__isSmartRef__":true,"id":14567},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14641":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14642":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14643":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14644":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14645":{"morph":{"__isSmartRef__":true,"id":14628},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14646":{"x":461,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14647":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14648":{"stops":[{"__isSmartRef__":true,"id":14649},{"__isSmartRef__":true,"id":14651},{"__isSmartRef__":true,"id":14653},{"__isSmartRef__":true,"id":14655}],"vector":{"__isSmartRef__":true,"id":14576},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14649":{"offset":0,"color":{"__isSmartRef__":true,"id":14650}},"14650":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14651":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14652}},"14652":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14653":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14654}},"14654":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14655":{"offset":1,"color":{"__isSmartRef__":true,"id":14656}},"14656":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14657":{"moveHorizontal":true},"14658":{"sourceObj":{"__isSmartRef__":true,"id":14628},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14534},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14659},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14659":{"source":{"__isSmartRef__":true,"id":14628},"target":{"__isSmartRef__":true,"id":14534}},"14660":{"sourceObj":{"__isSmartRef__":true,"id":14628},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14534},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14661},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14661":{"source":{"__isSmartRef__":true,"id":14628},"target":{"__isSmartRef__":true,"id":14534}},"14662":{"_Position":{"__isSmartRef__":true,"id":14663},"renderContextTable":{"__isSmartRef__":true,"id":14664},"_Extent":{"__isSmartRef__":true,"id":14665},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":14666},"_Fill":{"__isSmartRef__":true,"id":14502},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14663":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14664":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14665":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14666":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14667":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14668":{"morph":{"__isSmartRef__":true,"id":14535},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14669":{"resizeWidth":true,"adjustForNewBounds":true},"14670":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14671":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14672":{"renderContextTable":{"__isSmartRef__":true,"id":14673},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":14674},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14673":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14674":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14675":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14676":{"morph":{"__isSmartRef__":true,"id":14534},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14677":{"adjustForNewBounds":true},"14678":{"x":1234,"y":448,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14679":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14680":{"x":1478,"y":453,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14681":{"resizeWidth":true,"resizeHeight":true},"14682":{"submorphs":[{"__isSmartRef__":true,"id":14683},{"__isSmartRef__":true,"id":14697}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14827},"id":361,"renderContextTable":{"__isSmartRef__":true,"id":14831},"eventHandler":{"__isSmartRef__":true,"id":14832},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":14833},"LK2":true,"_Position":{"__isSmartRef__":true,"id":14834},"priorExtent":{"__isSmartRef__":true,"id":14835},"targetMorph":{"__isSmartRef__":true,"id":14683},"titleBar":{"__isSmartRef__":true,"id":14697},"contentOffset":{"__isSmartRef__":true,"id":14693},"collapsedTransform":{"__isSmartRef__":true,"id":14836},"collapsedExtent":{"__isSmartRef__":true,"id":14837},"expandedTransform":{"__isSmartRef__":true,"id":14838},"expandedExtent":{"__isSmartRef__":true,"id":14839},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":14840},"expandedPosition":{"__isSmartRef__":true,"id":14841},"state":"shutdown","collapsedPosition":{"__isSmartRef__":true,"id":14842},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"14683":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14684},"id":360,"renderContextTable":{"__isSmartRef__":true,"id":14689},"textChunks":[{"__isSmartRef__":true,"id":14690}],"eventHandler":{"__isSmartRef__":true,"id":14692},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14531},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_Position":{"__isSmartRef__":true,"id":14693},"priorExtent":{"__isSmartRef__":true,"id":14694},"_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14682},"layout":{"__isSmartRef__":true,"id":14695},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":14696}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"priorSelectionRange":[0,22],"charsReplaced":"","lastFindLoc":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"","__LivelyClassName__":"lively.morphic.Text"},"14684":{"_Position":{"__isSmartRef__":true,"id":14685},"renderContextTable":{"__isSmartRef__":true,"id":14686},"_Extent":{"__isSmartRef__":true,"id":14687},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":{"__isSmartRef__":true,"id":14688},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14685":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14686":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14687":{"x":500,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14688":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14689":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14690":{"style":{"__isSmartRef__":true,"id":14691},"chunkOwner":{"__isSmartRef__":true,"id":14683},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14691":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14692":{"morph":{"__isSmartRef__":true,"id":14683},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14693":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14694":{"x":500,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14695":{"resizeWidth":true,"resizeHeight":true},"14696":{"sourceObj":{"__isSmartRef__":true,"id":14683},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":14683},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14697":{"submorphs":[{"__isSmartRef__":true,"id":14698},{"__isSmartRef__":true,"id":14710},{"__isSmartRef__":true,"id":14744},{"__isSmartRef__":true,"id":14777}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14811},"id":362,"renderContextTable":{"__isSmartRef__":true,"id":14822},"eventHandler":{"__isSmartRef__":true,"id":14823},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":14824},"_Position":{"__isSmartRef__":true,"id":14825},"windowMorph":{"__isSmartRef__":true,"id":14682},"label":{"__isSmartRef__":true,"id":14698},"closeButton":{"__isSmartRef__":true,"id":14710},"menuButton":{"__isSmartRef__":true,"id":14744},"collapseButton":{"__isSmartRef__":true,"id":14777},"priorExtent":{"__isSmartRef__":true,"id":14826},"owner":{"__isSmartRef__":true,"id":14682},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"14698":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14699},"id":363,"renderContextTable":{"__isSmartRef__":true,"id":14703},"textChunks":[{"__isSmartRef__":true,"id":14704}],"eventHandler":{"__isSmartRef__":true,"id":14706},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14545},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":14707},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":14697},"priorExtent":{"__isSmartRef__":true,"id":14708},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":14709},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14699":{"_Position":{"__isSmartRef__":true,"id":14700},"renderContextTable":{"__isSmartRef__":true,"id":14701},"_Extent":{"__isSmartRef__":true,"id":14702},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14700":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14701":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14702":{"x":441,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14703":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14704":{"style":{"__isSmartRef__":true,"id":14705},"chunkOwner":{"__isSmartRef__":true,"id":14698},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14705":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14706":{"morph":{"__isSmartRef__":true,"id":14698},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14707":{"resizeWidth":true},"14708":{"x":0,"y":14,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14709":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14710":{"submorphs":[{"__isSmartRef__":true,"id":14711}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14722},"id":364,"renderContextTable":{"__isSmartRef__":true,"id":14726},"eventHandler":{"__isSmartRef__":true,"id":14727},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14728},"priorExtent":{"__isSmartRef__":true,"id":14729},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14567},"lighterFill":{"__isSmartRef__":true,"id":14730},"label":{"__isSmartRef__":true,"id":14711},"owner":{"__isSmartRef__":true,"id":14697},"layout":{"__isSmartRef__":true,"id":14739},"attributeConnections":[{"__isSmartRef__":true,"id":14740},{"__isSmartRef__":true,"id":14742}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"14711":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14712},"id":365,"renderContextTable":{"__isSmartRef__":true,"id":14716},"textChunks":[{"__isSmartRef__":true,"id":14717}],"eventHandler":{"__isSmartRef__":true,"id":14719},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14559},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14720},"priorExtent":{"__isSmartRef__":true,"id":14721},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14710},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14712":{"_Position":{"__isSmartRef__":true,"id":14713},"renderContextTable":{"__isSmartRef__":true,"id":14714},"_Extent":{"__isSmartRef__":true,"id":14715},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14713":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14714":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14715":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14716":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14717":{"style":{"__isSmartRef__":true,"id":14718},"chunkOwner":{"__isSmartRef__":true,"id":14711},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14718":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14719":{"morph":{"__isSmartRef__":true,"id":14711},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14720":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14721":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14722":{"_Position":{"__isSmartRef__":true,"id":14723},"renderContextTable":{"__isSmartRef__":true,"id":14724},"_Extent":{"__isSmartRef__":true,"id":14725},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14566},"_Fill":{"__isSmartRef__":true,"id":14567},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14723":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14724":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14725":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14726":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14727":{"morph":{"__isSmartRef__":true,"id":14710},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14728":{"x":480,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14729":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14730":{"stops":[{"__isSmartRef__":true,"id":14731},{"__isSmartRef__":true,"id":14733},{"__isSmartRef__":true,"id":14735},{"__isSmartRef__":true,"id":14737}],"vector":{"__isSmartRef__":true,"id":14576},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14731":{"offset":0,"color":{"__isSmartRef__":true,"id":14732}},"14732":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14733":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14734}},"14734":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14735":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14736}},"14736":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14737":{"offset":1,"color":{"__isSmartRef__":true,"id":14738}},"14738":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14739":{"moveHorizontal":true},"14740":{"sourceObj":{"__isSmartRef__":true,"id":14710},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14682},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14741},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14741":{"source":{"__isSmartRef__":true,"id":14710},"target":{"__isSmartRef__":true,"id":14682}},"14742":{"sourceObj":{"__isSmartRef__":true,"id":14710},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14682},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14743},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14743":{"source":{"__isSmartRef__":true,"id":14710},"target":{"__isSmartRef__":true,"id":14682}},"14744":{"submorphs":[{"__isSmartRef__":true,"id":14745}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14756},"id":366,"renderContextTable":{"__isSmartRef__":true,"id":14760},"eventHandler":{"__isSmartRef__":true,"id":14761},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14762},"priorExtent":{"__isSmartRef__":true,"id":14763},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14567},"lighterFill":{"__isSmartRef__":true,"id":14764},"label":{"__isSmartRef__":true,"id":14745},"owner":{"__isSmartRef__":true,"id":14697},"attributeConnections":[{"__isSmartRef__":true,"id":14773},{"__isSmartRef__":true,"id":14775}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"14745":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14746},"id":367,"renderContextTable":{"__isSmartRef__":true,"id":14750},"textChunks":[{"__isSmartRef__":true,"id":14751}],"eventHandler":{"__isSmartRef__":true,"id":14753},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14559},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14754},"priorExtent":{"__isSmartRef__":true,"id":14755},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14744},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14746":{"_Position":{"__isSmartRef__":true,"id":14747},"renderContextTable":{"__isSmartRef__":true,"id":14748},"_Extent":{"__isSmartRef__":true,"id":14749},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14747":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14748":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14749":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14750":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14751":{"style":{"__isSmartRef__":true,"id":14752},"chunkOwner":{"__isSmartRef__":true,"id":14745},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14752":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14753":{"morph":{"__isSmartRef__":true,"id":14745},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14754":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14755":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14756":{"_Position":{"__isSmartRef__":true,"id":14757},"renderContextTable":{"__isSmartRef__":true,"id":14758},"_Extent":{"__isSmartRef__":true,"id":14759},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14566},"_Fill":{"__isSmartRef__":true,"id":14567},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14757":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14758":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14759":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14761":{"morph":{"__isSmartRef__":true,"id":14744},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14762":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14763":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14764":{"stops":[{"__isSmartRef__":true,"id":14765},{"__isSmartRef__":true,"id":14767},{"__isSmartRef__":true,"id":14769},{"__isSmartRef__":true,"id":14771}],"vector":{"__isSmartRef__":true,"id":14576},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14765":{"offset":0,"color":{"__isSmartRef__":true,"id":14766}},"14766":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14767":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14768}},"14768":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14769":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14770}},"14770":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14771":{"offset":1,"color":{"__isSmartRef__":true,"id":14772}},"14772":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14773":{"sourceObj":{"__isSmartRef__":true,"id":14744},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14682},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14774},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14774":{"source":{"__isSmartRef__":true,"id":14744},"target":{"__isSmartRef__":true,"id":14682}},"14775":{"sourceObj":{"__isSmartRef__":true,"id":14744},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14682},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14776},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14776":{"source":{"__isSmartRef__":true,"id":14744},"target":{"__isSmartRef__":true,"id":14682}},"14777":{"submorphs":[{"__isSmartRef__":true,"id":14778}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14789},"id":368,"renderContextTable":{"__isSmartRef__":true,"id":14793},"eventHandler":{"__isSmartRef__":true,"id":14794},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":14795},"priorExtent":{"__isSmartRef__":true,"id":14796},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":14567},"lighterFill":{"__isSmartRef__":true,"id":14797},"label":{"__isSmartRef__":true,"id":14778},"owner":{"__isSmartRef__":true,"id":14697},"layout":{"__isSmartRef__":true,"id":14806},"attributeConnections":[{"__isSmartRef__":true,"id":14807},{"__isSmartRef__":true,"id":14809}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"14778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14779},"id":369,"renderContextTable":{"__isSmartRef__":true,"id":14783},"textChunks":[{"__isSmartRef__":true,"id":14784}],"eventHandler":{"__isSmartRef__":true,"id":14786},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14559},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":14787},"priorExtent":{"__isSmartRef__":true,"id":14788},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14777},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14779":{"_Position":{"__isSmartRef__":true,"id":14780},"renderContextTable":{"__isSmartRef__":true,"id":14781},"_Extent":{"__isSmartRef__":true,"id":14782},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14525},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14780":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14782":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14784":{"style":{"__isSmartRef__":true,"id":14785},"chunkOwner":{"__isSmartRef__":true,"id":14778},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"14785":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14786":{"morph":{"__isSmartRef__":true,"id":14778},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14787":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14788":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14789":{"_Position":{"__isSmartRef__":true,"id":14790},"renderContextTable":{"__isSmartRef__":true,"id":14791},"_Extent":{"__isSmartRef__":true,"id":14792},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":14566},"_Fill":{"__isSmartRef__":true,"id":14567},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14790":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14791":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14792":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14793":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14794":{"morph":{"__isSmartRef__":true,"id":14777},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14795":{"x":461,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14796":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14797":{"stops":[{"__isSmartRef__":true,"id":14798},{"__isSmartRef__":true,"id":14800},{"__isSmartRef__":true,"id":14802},{"__isSmartRef__":true,"id":14804}],"vector":{"__isSmartRef__":true,"id":14576},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14798":{"offset":0,"color":{"__isSmartRef__":true,"id":14799}},"14799":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14800":{"offset":0.4,"color":{"__isSmartRef__":true,"id":14801}},"14801":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14802":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14803}},"14803":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14804":{"offset":1,"color":{"__isSmartRef__":true,"id":14805}},"14805":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14806":{"moveHorizontal":true},"14807":{"sourceObj":{"__isSmartRef__":true,"id":14777},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":14682},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14808},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14808":{"source":{"__isSmartRef__":true,"id":14777},"target":{"__isSmartRef__":true,"id":14682}},"14809":{"sourceObj":{"__isSmartRef__":true,"id":14777},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14682},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":14810},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14810":{"source":{"__isSmartRef__":true,"id":14777},"target":{"__isSmartRef__":true,"id":14682}},"14811":{"_Position":{"__isSmartRef__":true,"id":14812},"renderContextTable":{"__isSmartRef__":true,"id":14813},"_Extent":{"__isSmartRef__":true,"id":14814},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":14666},"_Fill":{"__isSmartRef__":true,"id":14815},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14812":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14813":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14814":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14815":{"stops":[{"__isSmartRef__":true,"id":14816},{"__isSmartRef__":true,"id":14818},{"__isSmartRef__":true,"id":14820}],"vector":{"__isSmartRef__":true,"id":14576},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"14816":{"offset":0,"color":{"__isSmartRef__":true,"id":14817}},"14817":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14818":{"offset":0.6,"color":{"__isSmartRef__":true,"id":14819}},"14819":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14820":{"offset":1,"color":{"__isSmartRef__":true,"id":14821}},"14821":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14822":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14823":{"morph":{"__isSmartRef__":true,"id":14697},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14824":{"resizeWidth":true,"adjustForNewBounds":true},"14825":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14826":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14827":{"renderContextTable":{"__isSmartRef__":true,"id":14828},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":14829},"_Position":{"__isSmartRef__":true,"id":14830},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14828":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"14829":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14830":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14831":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"14832":{"morph":{"__isSmartRef__":true,"id":14682},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14833":{"adjustForNewBounds":true},"14834":{"x":1131,"y":79,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14835":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14836":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"14837":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14838":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"14839":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14840":{"x":1507,"y":76,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14841":{"x":1131,"y":79,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14842":{"x":1131,"y":79,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14843":{"x":377.6609726943286,"y":419.5142810783999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14844":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"14845":{"submorphs":[],"scripts":[],"id":"05EAFB8A-FCB2-44AB-BDB2-4D9ACD6DC9AC","shape":{"__isSmartRef__":true,"id":14846},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":14853},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_Position":{"__isSmartRef__":true,"id":14854},"_MaxTextWidth":705.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":14855},{"__isSmartRef__":true,"id":14857},{"__isSmartRef__":true,"id":14859},{"__isSmartRef__":true,"id":14861},{"__isSmartRef__":true,"id":14863},{"__isSmartRef__":true,"id":14865},{"__isSmartRef__":true,"id":14867},{"__isSmartRef__":true,"id":14869},{"__isSmartRef__":true,"id":14871},{"__isSmartRef__":true,"id":14873},{"__isSmartRef__":true,"id":14875},{"__isSmartRef__":true,"id":14878},{"__isSmartRef__":true,"id":14880},{"__isSmartRef__":true,"id":14882},{"__isSmartRef__":true,"id":14884},{"__isSmartRef__":true,"id":14886},{"__isSmartRef__":true,"id":14888},{"__isSmartRef__":true,"id":14890},{"__isSmartRef__":true,"id":14892},{"__isSmartRef__":true,"id":14894},{"__isSmartRef__":true,"id":14896},{"__isSmartRef__":true,"id":14898},{"__isSmartRef__":true,"id":14900},{"__isSmartRef__":true,"id":14902},{"__isSmartRef__":true,"id":14904},{"__isSmartRef__":true,"id":14906},{"__isSmartRef__":true,"id":14908},{"__isSmartRef__":true,"id":14910},{"__isSmartRef__":true,"id":14912},{"__isSmartRef__":true,"id":14915},{"__isSmartRef__":true,"id":14917},{"__isSmartRef__":true,"id":14919},{"__isSmartRef__":true,"id":14921},{"__isSmartRef__":true,"id":14923},{"__isSmartRef__":true,"id":14925},{"__isSmartRef__":true,"id":14927},{"__isSmartRef__":true,"id":14929},{"__isSmartRef__":true,"id":14931},{"__isSmartRef__":true,"id":14933},{"__isSmartRef__":true,"id":14935},{"__isSmartRef__":true,"id":14937},{"__isSmartRef__":true,"id":14939}],"layout":{"__isSmartRef__":true,"id":14941},"showsHalos":false,"prevScroll":[0,0],"priorSelectionRange":[116,361],"name":"ObjectEditorScriptPane","charsReplaced":"","lastFindLoc":320,"partsBinMetaInfo":{"__isSmartRef__":true,"id":14942},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":14943},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":14349},"_FontSize":11,"lastSyntaxHighlightTime":1326842131611,"doitContext":{"__isSmartRef__":true,"id":17},"savedTextString":"// changed at Tue Jan 17 2012 15:15:06 GMT-0800 (PST) by ohshima \nthis.addScript(function setupConnections() {\n connect(this, 'activeCell', this.get('InputField'), 'textString', {\n converter: function(cell) { \n // inspect(cell);\n if (cell === null) return 'null'\n return cell.evalExpression || cell.textString}\n })\n}).tag([]);","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":14944},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":14945},"attributeConnections":[{"__isSmartRef__":true,"id":14946}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":14971},"_MinTextWidth":705.0285365288845,"_MinTextHeight":null,"previousSelection":[0,0],"lastSaveSource":"// changed at Tue Jan 17 2012 15:15:31 GMT-0800 (PST) by ohshima \nthis.addScript(function setupConnections() {\n connect(this, 'activeCell', this.get('InputField'), 'textString', {\n converter: function(cell) { \n // inspect(cell);\n if (cell === null) return 'null'\n return cell.evalExpression || cell.textString}\n })\n}).tag([]);","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":14349},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":14972},"_Rotation":0,"_Scale":1,"derivationIds":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0"],"textString":"// changed at Tue Jan 17 2012 15:15:31 GMT-0800 (PST) by ohshima \nthis.addScript(function setupConnections() {\n connect(this, 'activeCell', this.get('InputField'), 'textString', {\n converter: function(cell) { \n // inspect(cell);\n if (cell === null) return 'null'\n return cell.evalExpression || cell.textString}\n })\n}).tag([]);","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14987},"__LivelyClassName__":"lively.morphic.Text"},"14846":{"_Position":{"__isSmartRef__":true,"id":14847},"_Extent":{"__isSmartRef__":true,"id":14848},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":14849},"_Fill":{"__isSmartRef__":true,"id":14850},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":14851},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":14852},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14847":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14848":{"x":707.0285365288845,"y":292.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14849":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14850":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14851":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14852":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14853":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14854":{"x":200,"y":40,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14855":{"style":{"__isSmartRef__":true,"id":14856},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"// changed at Tue Jan 17 2012 15:15:31 GMT-0800 (PST) by ohshima ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14856":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14857":{"style":{"__isSmartRef__":true,"id":14858},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14858":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14859":{"style":{"__isSmartRef__":true,"id":14860},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14860":{"color":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14861":{"style":{"__isSmartRef__":true,"id":14862},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":".addScript(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14862":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14863":{"style":{"__isSmartRef__":true,"id":14864},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14864":{"color":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14865":{"style":{"__isSmartRef__":true,"id":14866},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":" setupConnections() ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14866":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14867":{"style":{"__isSmartRef__":true,"id":14868},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14868":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14869":{"style":{"__isSmartRef__":true,"id":14870},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"\n connect(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14870":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14871":{"style":{"__isSmartRef__":true,"id":14872},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14872":{"color":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14873":{"style":{"__isSmartRef__":true,"id":14874},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14874":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14875":{"style":{"__isSmartRef__":true,"id":14876},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"'activeCell'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14876":{"color":{"__isSmartRef__":true,"id":14877},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14877":{"r":0,"g":0.5019607843137255,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14878":{"style":{"__isSmartRef__":true,"id":14879},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14879":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14880":{"style":{"__isSmartRef__":true,"id":14881},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14881":{"color":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14882":{"style":{"__isSmartRef__":true,"id":14883},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":".get(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14883":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14884":{"style":{"__isSmartRef__":true,"id":14885},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"'InputField'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14885":{"color":{"__isSmartRef__":true,"id":14877},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14886":{"style":{"__isSmartRef__":true,"id":14887},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"), ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14887":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14888":{"style":{"__isSmartRef__":true,"id":14889},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"'textString'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14889":{"color":{"__isSmartRef__":true,"id":14877},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14890":{"style":{"__isSmartRef__":true,"id":14891},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14891":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14892":{"style":{"__isSmartRef__":true,"id":14893},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14893":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14894":{"style":{"__isSmartRef__":true,"id":14895},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14895":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14896":{"style":{"__isSmartRef__":true,"id":14897},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"converter:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14897":{"color":{"__isSmartRef__":true,"id":14083},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14898":{"style":{"__isSmartRef__":true,"id":14899},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14899":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14900":{"style":{"__isSmartRef__":true,"id":14901},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14901":{"color":{"__isSmartRef__":true,"id":13108},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14902":{"style":{"__isSmartRef__":true,"id":14903},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"(cell) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14903":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14904":{"style":{"__isSmartRef__":true,"id":14905},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14905":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14906":{"style":{"__isSmartRef__":true,"id":14907},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":" \n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14907":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14908":{"style":{"__isSmartRef__":true,"id":14909},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"// inspect(cell);","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14909":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14910":{"style":{"__isSmartRef__":true,"id":14911},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14911":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14912":{"style":{"__isSmartRef__":true,"id":14913},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14913":{"color":{"__isSmartRef__":true,"id":14914},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14914":{"r":0,"g":0,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14915":{"style":{"__isSmartRef__":true,"id":14916},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":" (cell === null) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14916":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14917":{"style":{"__isSmartRef__":true,"id":14918},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14918":{"color":{"__isSmartRef__":true,"id":14914},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14919":{"style":{"__isSmartRef__":true,"id":14920},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14920":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14921":{"style":{"__isSmartRef__":true,"id":14922},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"'null'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14922":{"color":{"__isSmartRef__":true,"id":14877},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14923":{"style":{"__isSmartRef__":true,"id":14924},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14924":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14925":{"style":{"__isSmartRef__":true,"id":14926},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14926":{"color":{"__isSmartRef__":true,"id":14914},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14927":{"style":{"__isSmartRef__":true,"id":14928},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":" cell.evalExpression || cell.textString","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14928":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14929":{"style":{"__isSmartRef__":true,"id":14930},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14930":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14931":{"style":{"__isSmartRef__":true,"id":14932},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14932":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14933":{"style":{"__isSmartRef__":true,"id":14934},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14934":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14935":{"style":{"__isSmartRef__":true,"id":14936},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":")\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14936":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14937":{"style":{"__isSmartRef__":true,"id":14938},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14938":{"color":{"__isSmartRef__":true,"id":14092},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14939":{"style":{"__isSmartRef__":true,"id":14940},"chunkOwner":{"__isSmartRef__":true,"id":14845},"storedString":").tag([]);","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14940":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14941":{"resizeWidth":true,"resizeHeight":true},"14942":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"14943":{"x":707.0285365288845,"y":292.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14944":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14945":{"morph":{"__isSmartRef__":true,"id":14845},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14946":{"sourceObj":{"__isSmartRef__":true,"id":14845},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":14947},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14947":{"submorphs":[],"scripts":[],"id":"72072E0E-199C-4748-9816-96C2B3EB6CE3","shape":{"__isSmartRef__":true,"id":14948},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":14954},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":14955},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":14956},"eventHandler":{"__isSmartRef__":true,"id":14957},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":14349},"priorExtent":{"__isSmartRef__":true,"id":14958},"layout":{"__isSmartRef__":true,"id":14959},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":14951},"alarmColor":{"__isSmartRef__":true,"id":14960},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":14961},"isCopyMorphRef":true,"morphRefId":26,"_Rotation":0,"_Scale":1,"derivationIds":[220,"EE491D24-F056-4AFE-A669-7B7048C6C3D1"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14962},"__LivelyClassName__":"lively.morphic.Box"},"14948":{"position":{"__isSmartRef__":true,"id":14949},"_Extent":{"__isSmartRef__":true,"id":14950},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":14951},"_Fill":{"__isSmartRef__":true,"id":14951},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":14952},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14953},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14949":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14950":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14951":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14952":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14953":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14954":{"x":899.0245425248855,"y":39.999999999999986,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14955":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"14956":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"14957":{"morph":{"__isSmartRef__":true,"id":14947},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14958":{"x":8.637782619743348,"y":10.787481852220026,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14959":{"moveHorizontal":true,"adjustForNewBounds":true},"14960":{"r":0.9411764705882353,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14961":{"x":37.328206296760186,"y":-17.53316489131697,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14962":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":14963},"setColors":{"__isSmartRef__":true,"id":14967}},"14963":{"varMapping":{"__isSmartRef__":true,"id":14964},"source":"function indicateUnsavedChanges() {\n if (this.owner.scriptPane.hasChanged()) {\n this.setColors(this.alarmColor);\n } else {\n this.setColors(this.savedColor);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14965},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14964":{"this":{"__isSmartRef__":true,"id":14947}},"14965":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":14966}},"14966":{"isSerializedDate":true,"string":"Tue Sep 27 2011 11:09:19 GMT-0700 (PDT)"},"14967":{"varMapping":{"__isSmartRef__":true,"id":14968},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":14969},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14968":{"this":{"__isSmartRef__":true,"id":14947}},"14969":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":14970}},"14970":{"isSerializedDate":true,"string":"Tue Sep 27 2011 10:06:09 GMT-0700 (PDT)"},"14971":{"x":341.1979959929888,"y":-18.288721442524036,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14972":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":14973},"id":553,"renderContextTable":{"__isSmartRef__":true,"id":14980},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":14981}],"eventHandler":{"__isSmartRef__":true,"id":14983},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_Position":{"__isSmartRef__":true,"id":14984},"priorExtent":{"__isSmartRef__":true,"id":14985},"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","_TextColor":{"__isSmartRef__":true,"id":14986},"owner":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"14973":{"_Position":{"__isSmartRef__":true,"id":14974},"renderContextTable":{"__isSmartRef__":true,"id":14975},"_Extent":{"__isSmartRef__":true,"id":14976},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":14977},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":14978},"_Fill":{"__isSmartRef__":true,"id":14979},"_StrokeOpacity":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"14974":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"14975":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"14976":{"x":100,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14977":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"14978":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"14979":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14980":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"14981":{"style":{"__isSmartRef__":true,"id":14982},"chunkOwner":{"__isSmartRef__":true,"id":14972},"storedString":"saved source","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14982":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14983":{"morph":{"__isSmartRef__":true,"id":14972},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14984":{"x":303.51426826444225,"y":133.80626630721798,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14985":{"x":100,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"14986":{"r":0,"g":0.8,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"14987":{"doSave":{"__isSmartRef__":true,"id":14988},"boundEval":{"__isSmartRef__":true,"id":14996},"reset":{"__isSmartRef__":true,"id":15004},"display":{"__isSmartRef__":true,"id":15008},"hasChanged":{"__isSmartRef__":true,"id":15012},"setTarget":{"__isSmartRef__":true,"id":15016},"displayStatus":{"__isSmartRef__":true,"id":15020}},"14988":{"varMapping":{"__isSmartRef__":true,"id":14989},"source":"function doSave() {\n $super();\n var saved = this.boundEval(this.getTextString());\n if (saved) {\n this.lastSaveSource = this.textString;\n this.owner.changeIndicator.indicateUnsavedChanges();\n this.owner.updateLists();\n this.owner.selectChangedContent(this.getTextString());\n this.displayStatus(\"saved source\", Color.green);\n } else {\n this.displayStatus(\"not saved\", Color.red);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14994},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14989":{"this":{"__isSmartRef__":true,"id":14845},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14990}},"14990":{"$super":{"__isSmartRef__":true,"id":14991}},"14991":{"varMapping":{"__isSmartRef__":true,"id":14992},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14993},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14992":{"obj":{"__isSmartRef__":true,"id":14845},"name":"doSave"},"14993":{},"14994":{"timestamp":{"__isSmartRef__":true,"id":14995},"user":"lauritz"},"14995":{"isSerializedDate":true,"string":"Thu Nov 17 2011 14:15:19 GMT-0800 (PST)"},"14996":{"varMapping":{"__isSmartRef__":true,"id":14997},"source":"function boundEval(str) {\n var result;\n\n this.objectEditorPane.ensureAnnotationLayer();\n withLayers([ScriptAnnotationLayer], function() {\n result = $super(str);\n })\n \n return result\n}","funcProperties":{"__isSmartRef__":true,"id":15002},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14997":{"this":{"__isSmartRef__":true,"id":14845},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14998}},"14998":{"$super":{"__isSmartRef__":true,"id":14999}},"14999":{"varMapping":{"__isSmartRef__":true,"id":15000},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15001},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15000":{"obj":{"__isSmartRef__":true,"id":14845},"name":"boundEval"},"15001":{},"15002":{"timestamp":{"__isSmartRef__":true,"id":15003},"user":"lauritz","categories":[]},"15003":{"isSerializedDate":true,"string":"Tue Nov 15 2011 20:41:53 GMT-0800 (PST)"},"15004":{"varMapping":{"__isSmartRef__":true,"id":15005},"source":"function reset() {\n this.doitContext = null;\n this.lastSaveSource = \"\";\n this.textString = \"\";\n this.lastSaveSource = this.textString;\n}","funcProperties":{"__isSmartRef__":true,"id":15006},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15005":{"this":{"__isSmartRef__":true,"id":14845}},"15006":{"timestamp":{"__isSmartRef__":true,"id":15007},"user":"lauritz","categories":[]},"15007":{"isSerializedDate":true,"string":"Tue Sep 27 2011 11:14:35 GMT-0700 (PDT)"},"15008":{"varMapping":{"__isSmartRef__":true,"id":15009},"source":"function display(jsCode) {\n this.lastSaveSource = jsCode;\n this.setTextString(jsCode);\n this.highlightJavaScriptSyntax();\n this.applyStyle({align: 'left'});\n}","funcProperties":{"__isSmartRef__":true,"id":15010},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15009":{"this":{"__isSmartRef__":true,"id":14845}},"15010":{"timestamp":{"__isSmartRef__":true,"id":15011},"user":"lauritz","categories":[]},"15011":{"isSerializedDate":true,"string":"Tue Sep 27 2011 10:47:57 GMT-0700 (PDT)"},"15012":{"varMapping":{"__isSmartRef__":true,"id":15013},"source":"function hasChanged() {\n var cleanText = function (string) {\n var source = string.trim();\n if (source.substring(0,2) === \"//\") {\n // removes annotation line\n source = source.substring(source.indexOf(\"\\n\"), source.length);\n source = source.trim();\n }\n if (source === 'undefined' || source === 'null') source = '';\n return source;\n }\n var cleanedTextString = cleanText(this.textString);\n var cleanedLastSource = cleanText(this.lastSaveSource);\n return cleanedTextString !== cleanedLastSource;\n}","funcProperties":{"__isSmartRef__":true,"id":15014},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15013":{"this":{"__isSmartRef__":true,"id":14845}},"15014":{"timestamp":{"__isSmartRef__":true,"id":15015},"user":"lauritz","categories":[]},"15015":{"isSerializedDate":true,"string":"Mon Oct 03 2011 09:29:45 GMT-0700 (PDT)"},"15016":{"varMapping":{"__isSmartRef__":true,"id":15017},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":15018},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15017":{"this":{"__isSmartRef__":true,"id":14845}},"15018":{"timestamp":{"__isSmartRef__":true,"id":15019},"user":"lauritz","categories":[]},"15019":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:30:39 GMT-0800 (PST)"},"15020":{"varMapping":{"__isSmartRef__":true,"id":15021},"source":"function displayStatus(msg, color, delay) {\n if (!this.statusMorph) {\n this.statusMorph = new TextMorph(pt(100,25).extentAsRectangle());\n this.statusMorph.applyStyle({borderWidth: 1, strokeOpacity: 0, borderColor: Color.gray});\n this.statusMorph.setFill(this.owner.getFill());\n this.statusMorph.setFontSize(11);\n this.statusMorph.setAlign('center');\n this.statusMorph.setVerticalAlign('center');\n }\n this.statusMorph.setTextString(msg);\n this.statusMorph.centerAt(this.innerBounds().center());\n this.statusMorph.setTextColor(color || Color.black);\n this.addMorph(this.statusMorph);\n (function() { this.statusMorph.remove() }).bind(this).delay(delay || 2); \n}","funcProperties":{"__isSmartRef__":true,"id":15022},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15021":{"this":{"__isSmartRef__":true,"id":14845}},"15022":{"timestamp":{"__isSmartRef__":true,"id":15023},"user":"lauritz","categories":[]},"15023":{"isSerializedDate":true,"string":"Wed Nov 23 2011 09:23:05 GMT-0800 (PST)"},"15024":{"submorphs":[{"__isSmartRef__":true,"id":15025}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":15039},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15054},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":15042},"lighterFill":{"__isSmartRef__":true,"id":15055},"label":{"__isSmartRef__":true,"id":15025},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":15064},"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":15065},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":15066},"renderContextTable":{"__isSmartRef__":true,"id":15067},"eventHandler":{"__isSmartRef__":true,"id":15068},"__LivelyClassName__":"lively.morphic.Button"},"15025":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":15026},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15031},"textColor":{"__isSmartRef__":true,"id":15029},"owner":{"__isSmartRef__":true,"id":15024},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":15032}],"padding":{"__isSmartRef__":true,"id":15034},"_Padding":{"__isSmartRef__":true,"id":15035},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15036},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":15037},"eventHandler":{"__isSmartRef__":true,"id":15038},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"15026":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15027},"_Extent":{"__isSmartRef__":true,"id":15028},"_BorderColor":{"__isSmartRef__":true,"id":15029},"renderContextTable":{"__isSmartRef__":true,"id":15030},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15027":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15028":{"x":116,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15029":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15030":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"15031":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15032":{"style":{"__isSmartRef__":true,"id":15033},"chunkOwner":{"__isSmartRef__":true,"id":15025},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"15033":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15034":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15035":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15036":{"x":116,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15037":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15038":{"morph":{"__isSmartRef__":true,"id":15025},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15039":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15040},"_Extent":{"__isSmartRef__":true,"id":15041},"_Fill":{"__isSmartRef__":true,"id":15042},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15052},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":15053},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15040":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15041":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15042":{"stops":[{"__isSmartRef__":true,"id":15043},{"__isSmartRef__":true,"id":15045},{"__isSmartRef__":true,"id":15047},{"__isSmartRef__":true,"id":15049}],"vector":{"__isSmartRef__":true,"id":15051},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15043":{"offset":0,"color":{"__isSmartRef__":true,"id":15044}},"15044":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15045":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15046}},"15046":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15047":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15048}},"15048":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15049":{"offset":1,"color":{"__isSmartRef__":true,"id":15050}},"15050":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15051":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15052":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15053":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"15054":{"x":820,"y":8.999999999999972,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15055":{"stops":[{"__isSmartRef__":true,"id":15056},{"__isSmartRef__":true,"id":15058},{"__isSmartRef__":true,"id":15060},{"__isSmartRef__":true,"id":15062}],"vector":{"__isSmartRef__":true,"id":15051},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15056":{"offset":0,"color":{"__isSmartRef__":true,"id":15057}},"15057":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15058":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15059}},"15059":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15060":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15061}},"15061":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15062":{"offset":1,"color":{"__isSmartRef__":true,"id":15063}},"15063":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15064":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15065":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15066":{"moveHorizontal":true},"15067":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"15068":{"morph":{"__isSmartRef__":true,"id":15024},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15069":{"submorphs":[],"scripts":[],"id":"CEC62DAF-AA4B-40F5-9537-1619CBC5E04E","shape":{"__isSmartRef__":true,"id":15070},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":15077},"itemList":["-- ALL --",["activeCell",{"__isSmartRef__":true,"id":1464}]],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":15078},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":14349},"priorExtent":{"__isSmartRef__":true,"id":15079},"attributeConnections":[{"__isSmartRef__":true,"id":15080}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":15085},"renderContextTable":{"__isSmartRef__":true,"id":15086},"eventHandler":{"__isSmartRef__":true,"id":15087},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":15088},"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":19,"_Rotation":0,"_Scale":1,"derivationIds":[209,"3900F5DF-0FF7-4C94-8BDB-44AAE12B4A3E"],"selection":["activeCell",{"__isSmartRef__":true,"id":15089}],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15091},"__LivelyClassName__":"lively.morphic.List"},"15070":{"position":{"__isSmartRef__":true,"id":15071},"_Extent":{"__isSmartRef__":true,"id":15072},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15073},"_Fill":{"__isSmartRef__":true,"id":15074},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":15075},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":15076},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15071":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15072":{"x":180,"y":74,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15073":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15074":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"15075":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15076":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15077":{"x":10,"y":258.5965565984398,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15078":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15079":{"x":180,"y":75,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15080":{"sourceObj":{"__isSmartRef__":true,"id":15069},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":14349},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":15081},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15082},"__LivelyClassName__":"AttributeConnection"},"15081":{"source":{"__isSmartRef__":true,"id":15069},"target":{"__isSmartRef__":true,"id":14349}},"15082":{"converter":{"__isSmartRef__":true,"id":15083}},"15083":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":15081},"source":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","funcProperties":{"__isSmartRef__":true,"id":15084},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15084":{},"15085":{"resizeHeight":false,"moveVertical":true},"15086":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"15087":{"morph":{"__isSmartRef__":true,"id":15069},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15088":{"x":124.95989979964943,"y":-17.076643708895745,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15089":{"sourceObj":{"__isSmartRef__":true,"id":17},"sourceAttrName":"activeCell","targetObj":{"__isSmartRef__":true,"id":1465},"targetMethodName":"textString","converter":null,"converterString":"function (cell) { return cell || cell.getContent()}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":15090},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"15090":{"source":{"__isSmartRef__":true,"id":17},"target":{"__isSmartRef__":true,"id":1465}},"15091":{"preselectItem":{"__isSmartRef__":true,"id":15092}},"15092":{"varMapping":{"__isSmartRef__":true,"id":15093},"source":"function preselectItem() {\n if (this.getList().size() === 2) {\n this.selectAt(1);\n } else {\n this.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15094},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15093":{"this":{"__isSmartRef__":true,"id":15069}},"15094":{"timestamp":{"__isSmartRef__":true,"id":15095},"user":"lauritz"},"15095":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:12:58 GMT-0800 (PST)"},"15096":{"submorphs":[{"__isSmartRef__":true,"id":15097}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":15110},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15125},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":15113},"lighterFill":{"__isSmartRef__":true,"id":15126},"label":{"__isSmartRef__":true,"id":15097},"attributeConnections":[{"__isSmartRef__":true,"id":15135}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":15136},"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":15137},"_Scale":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":15138},"isCopyMorphRef":true,"morphRefId":1,"__LivelyClassName__":"lively.morphic.Button"},"15097":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":15098},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15103},"textColor":{"__isSmartRef__":true,"id":15101},"owner":{"__isSmartRef__":true,"id":15096},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":15104}],"padding":{"__isSmartRef__":true,"id":15106},"_Padding":{"__isSmartRef__":true,"id":15107},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15108},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":15109},"__LivelyClassName__":"lively.morphic.Text"},"15098":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15099},"_Extent":{"__isSmartRef__":true,"id":15100},"_BorderColor":{"__isSmartRef__":true,"id":15101},"renderContextTable":{"__isSmartRef__":true,"id":15102},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15099":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15100":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15101":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15102":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"15103":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15104":{"style":{"__isSmartRef__":true,"id":15105},"chunkOwner":{"__isSmartRef__":true,"id":15097},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"15105":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15106":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15107":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15108":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15109":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15110":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15111},"_Extent":{"__isSmartRef__":true,"id":15112},"_Fill":{"__isSmartRef__":true,"id":15113},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15123},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":15124},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15111":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15112":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15113":{"stops":[{"__isSmartRef__":true,"id":15114},{"__isSmartRef__":true,"id":15116},{"__isSmartRef__":true,"id":15118},{"__isSmartRef__":true,"id":15120}],"vector":{"__isSmartRef__":true,"id":15122},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15114":{"offset":0,"color":{"__isSmartRef__":true,"id":15115}},"15115":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15116":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15117}},"15117":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15118":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15119}},"15119":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15120":{"offset":1,"color":{"__isSmartRef__":true,"id":15121}},"15121":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15122":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15123":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"15125":{"x":215,"y":35,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15126":{"stops":[{"__isSmartRef__":true,"id":15127},{"__isSmartRef__":true,"id":15129},{"__isSmartRef__":true,"id":15131},{"__isSmartRef__":true,"id":15133}],"vector":{"__isSmartRef__":true,"id":15122},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15127":{"offset":0,"color":{"__isSmartRef__":true,"id":15128}},"15128":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15129":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15130}},"15130":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15131":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15132}},"15132":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15133":{"offset":1,"color":{"__isSmartRef__":true,"id":15134}},"15134":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15135":{"sourceObj":{"__isSmartRef__":true,"id":15096},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14367},"targetMethodName":"chooseTargetMorphMenu","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"15136":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15137":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15138":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"15139":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"15140":{"x":715.5,"y":73.89999999999998,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15141":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":15142},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15149},"_MaxTextWidth":218,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":15150},"showsHalos":false,"_FontSize":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":15151},"textChunks":[{"__isSmartRef__":true,"id":15152}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":15154}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"priorExtent":{"__isSmartRef__":true,"id":15156},"_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":15157},"eventHandler":{"__isSmartRef__":true,"id":15158},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":15159},"selection":{"__isSmartRef__":true,"id":14348},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":15178},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":15179},"savedTextString":"100","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15180},"__LivelyClassName__":"lively.morphic.Text"},"15142":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15143},"_Extent":{"__isSmartRef__":true,"id":15144},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15145},"renderContextTable":{"__isSmartRef__":true,"id":15146},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15147},"_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":15148},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15143":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15144":{"x":220,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15145":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15146":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15147":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15148":{"r":0.9548430751559654,"g":0.9548430751559654,"b":0.9548430751559654,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15149":{"x":200,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15150":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15151":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15152":{"style":{"__isSmartRef__":true,"id":15153},"chunkOwner":{"__isSmartRef__":true,"id":15141},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"15153":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15154":{"sourceObj":{"__isSmartRef__":true,"id":15141},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":14349},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":15155},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"15155":{"source":{"__isSmartRef__":true,"id":15141},"target":{"__isSmartRef__":true,"id":14349}},"15156":{"x":220,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15157":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15158":{"morph":{"__isSmartRef__":true,"id":15141},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15159":{"createListMorph":{"__isSmartRef__":true,"id":15160},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":15162},"onMouseUp":{"__isSmartRef__":true,"id":15164},"resetConnections":{"__isSmartRef__":true,"id":15166},"setTargetToListSelection":{"__isSmartRef__":true,"id":15168},"setTargetOfPane":{"__isSmartRef__":true,"id":15170},"onBlur":{"__isSmartRef__":true,"id":15172},"reset":{"__isSmartRef__":true,"id":15174},"onMouseDown":{"__isSmartRef__":true,"id":15176}},"15160":{"time":{"__isSmartRef__":true,"id":15161},"user":"lauritz"},"15161":{"isSerializedDate":true,"string":"Thu Oct 27 2011 20:27:29 GMT-0700 (PDT)"},"15162":{"time":{"__isSmartRef__":true,"id":15163},"user":"lauritz"},"15163":{"isSerializedDate":true,"string":"Fri Oct 14 2011 14:48:37 GMT-0700 (PDT)"},"15164":{"time":{"__isSmartRef__":true,"id":15165},"user":"lauritz"},"15165":{"isSerializedDate":true,"string":"Mon Oct 03 2011 09:51:14 GMT-0700 (PDT)"},"15166":{"time":{"__isSmartRef__":true,"id":15167},"user":"lauritz"},"15167":{"isSerializedDate":true,"string":"Tue Sep 27 2011 16:03:17 GMT-0700 (PDT)"},"15168":{"time":{"__isSmartRef__":true,"id":15169},"user":"lauritz"},"15169":{"isSerializedDate":true,"string":"Fri Oct 14 2011 15:00:58 GMT-0700 (PDT)"},"15170":{"time":{"__isSmartRef__":true,"id":15171},"user":"lauritz"},"15171":{"isSerializedDate":true,"string":"Mon Oct 03 2011 09:34:37 GMT-0700 (PDT)"},"15172":{"time":{"__isSmartRef__":true,"id":15173},"user":"lauritz"},"15173":{"isSerializedDate":true,"string":"Fri Oct 07 2011 10:24:18 GMT-0700 (PDT)"},"15174":{"time":{"__isSmartRef__":true,"id":15175},"user":"lauritz"},"15175":{"isSerializedDate":true,"string":"Fri Oct 07 2011 10:26:15 GMT-0700 (PDT)"},"15176":{"time":{"__isSmartRef__":true,"id":15177},"user":"lauritz"},"15177":{"isSerializedDate":true,"string":"Mon Oct 17 2011 10:49:00 GMT-0700 (PDT)"},"15178":{},"15179":{"x":153.8540395186758,"y":-23.74126935194758,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15180":{"getList":{"__isSmartRef__":true,"id":15181},"setList":{"__isSmartRef__":true,"id":15184},"reset":{"__isSmartRef__":true,"id":15187},"example":{"__isSmartRef__":true,"id":15190},"removeList":{"__isSmartRef__":true,"id":15193},"onBlur":{"__isSmartRef__":true,"id":15196},"createListMorph":{"__isSmartRef__":true,"id":15203},"resetConnections":{"__isSmartRef__":true,"id":15206},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":15209},"setTargetToListSelection":{"__isSmartRef__":true,"id":15212},"setTargetOfPane":{"__isSmartRef__":true,"id":15215},"onMouseDown":{"__isSmartRef__":true,"id":15218}},"15181":{"varMapping":{"__isSmartRef__":true,"id":15182},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":15183},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15182":{"this":{"__isSmartRef__":true,"id":15141}},"15183":{},"15184":{"varMapping":{"__isSmartRef__":true,"id":15185},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":15186},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15185":{"this":{"__isSmartRef__":true,"id":15141}},"15186":{},"15187":{"varMapping":{"__isSmartRef__":true,"id":15188},"source":"function reset() {\n this.list = [];\n this.textString = 'empty';\n this.removeList();\n this.resetConnections();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":15189},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15188":{"this":{"__isSmartRef__":true,"id":15141}},"15189":{},"15190":{"varMapping":{"__isSmartRef__":true,"id":15191},"source":"function example() {\n/*\nthis.example()\nthis.getList()\n*/\n this.setList(Array.range(0,100));\n this.textString = 'empty';\n}","funcProperties":{"__isSmartRef__":true,"id":15192},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15191":{"this":{"__isSmartRef__":true,"id":15141}},"15192":{},"15193":{"varMapping":{"__isSmartRef__":true,"id":15194},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15195},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15194":{"this":{"__isSmartRef__":true,"id":15141}},"15195":{},"15196":{"varMapping":{"__isSmartRef__":true,"id":15197},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":15202},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15197":{"this":{"__isSmartRef__":true,"id":15141},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15198}},"15198":{"$super":{"__isSmartRef__":true,"id":15199}},"15199":{"varMapping":{"__isSmartRef__":true,"id":15200},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15201},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15200":{"obj":{"__isSmartRef__":true,"id":15141},"name":"onBlur"},"15201":{},"15202":{},"15203":{"varMapping":{"__isSmartRef__":true,"id":15204},"source":"function createListMorph() {\n var list = new lively.morphic.List(new Rectangle(0,0, this.getExtent().x, 520));\n list.setList(this.getList());\n list.setFontSize(12);\n\n list.disableGrabbing();\n list.disableDragging();\n \n this.addMorph(list);\n list.setPosition(pt(0,0));\n\n connect(list, 'selection', this, 'setTargetToListSelection');\n \n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":15205},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15204":{"this":{"__isSmartRef__":true,"id":15141}},"15205":{},"15206":{"varMapping":{"__isSmartRef__":true,"id":15207},"source":"function resetConnections() {\n disconnectAll(this);\n connect(this, 'savedTextString', this.owner, 'setTarget', {converter: \n\tfunction (name) { return $world.get(name)}});\n}","funcProperties":{"__isSmartRef__":true,"id":15208},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15207":{"this":{"__isSmartRef__":true,"id":15141}},"15208":{},"15209":{"varMapping":{"__isSmartRef__":true,"id":15210},"source":"function displayTopLevelMorphs() {\n if (this.listMorph) { this.removeList(); return true }\n var list = this.createListMorph(); \n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":15211},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15210":{"this":{"__isSmartRef__":true,"id":15141}},"15211":{},"15212":{"varMapping":{"__isSmartRef__":true,"id":15213},"source":"function setTargetToListSelection(selection) { \n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15214},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15213":{"this":{"__isSmartRef__":true,"id":15141}},"15214":{},"15215":{"varMapping":{"__isSmartRef__":true,"id":15216},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":15217},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15216":{"this":{"__isSmartRef__":true,"id":15141}},"15217":{},"15218":{"varMapping":{"__isSmartRef__":true,"id":15219},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n return false;\n } else {\n this.displayTopLevelMorphs();\n return true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15224},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15219":{"this":{"__isSmartRef__":true,"id":15141},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15220}},"15220":{"$super":{"__isSmartRef__":true,"id":15221}},"15221":{"varMapping":{"__isSmartRef__":true,"id":15222},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15223},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15222":{"obj":{"__isSmartRef__":true,"id":15141},"name":"onMouseDown"},"15223":{},"15224":{},"15225":{"morph":{"__isSmartRef__":true,"id":14367},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15226":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":15227},"setTarget":{"__isSmartRef__":true,"id":15230},"generateSourceForScript":{"__isSmartRef__":true,"id":15233},"generateSourceForConnection":{"__isSmartRef__":true,"id":15236},"generateTargetCode":{"__isSmartRef__":true,"id":15239},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":15242},"displayJavaScriptSource":{"__isSmartRef__":true,"id":15245},"displaySourceForScript":{"__isSmartRef__":true,"id":15248},"displaySourceForConnection":{"__isSmartRef__":true,"id":15251},"newScript":{"__isSmartRef__":true,"id":15254},"newConnection":{"__isSmartRef__":true,"id":15257},"deleteSelectedScript":{"__isSmartRef__":true,"id":15260},"disconnectConnection":{"__isSmartRef__":true,"id":15263},"updateLists":{"__isSmartRef__":true,"id":15266},"displayInitialScript":{"__isSmartRef__":true,"id":15269},"reset":{"__isSmartRef__":true,"id":15272},"selectChangedContent":{"__isSmartRef__":true,"id":15275}},"15227":{"varMapping":{"__isSmartRef__":true,"id":15228},"source":"function sortedScriptNamesOfObj(obj) {\n if (!Functions.own(obj) || Functions.own(obj).size() == 0) return [];\n return Functions.own(obj)\n\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":15229},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15228":{"this":{"__isSmartRef__":true,"id":14367}},"15229":{},"15230":{"varMapping":{"__isSmartRef__":true,"id":15231},"source":"function setTarget(morph) {\n this.reset();\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.morphSelector.textString = (this.target.getName() || this.target.toString());\n this.scriptPane.doitContext = this.target;\n this.updateLists();\n this.displayInitialScript();\n}","funcProperties":{"__isSmartRef__":true,"id":15232},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15231":{"this":{"__isSmartRef__":true,"id":14367}},"15232":{},"15233":{"varMapping":{"__isSmartRef__":true,"id":15234},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":15235},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15234":{"this":{"__isSmartRef__":true,"id":14367}},"15235":{},"15236":{"varMapping":{"__isSmartRef__":true,"id":15237},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":15238},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15237":{"this":{"__isSmartRef__":true,"id":14367}},"15238":{},"15239":{"varMapping":{"__isSmartRef__":true,"id":15240},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":15241},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15240":{"this":{"__isSmartRef__":true,"id":14367}},"15241":{},"15242":{"varMapping":{"__isSmartRef__":true,"id":15243},"source":"function sortedConnectionNamesOfObj(obj) {\n if (\"attributeConnections\" in obj) {\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n } else {\n return [];\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15244},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15243":{"this":{"__isSmartRef__":true,"id":14367}},"15244":{},"15245":{"varMapping":{"__isSmartRef__":true,"id":15246},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":15247},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15246":{"this":{"__isSmartRef__":true,"id":14367}},"15247":{},"15248":{"varMapping":{"__isSmartRef__":true,"id":15249},"source":"function displaySourceForScript(scriptName) {\n if (!scriptName) return;\n var code = \"\", that = this;\n if (scriptName === \"-- ALL --\") {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\");\n });\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":15250},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15249":{"this":{"__isSmartRef__":true,"id":14367}},"15250":{},"15251":{"varMapping":{"__isSmartRef__":true,"id":15252},"source":"function displaySourceForConnection(connection) {\n if (!connection) return;\n var code = \"\", that = this;\n if ((typeof connection === \"string\") && connection === \"-- ALL --\") {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n })\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":15253},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15252":{"this":{"__isSmartRef__":true,"id":14367}},"15253":{},"15254":{"varMapping":{"__isSmartRef__":true,"id":15255},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n\\t\\n});\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15256},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15255":{"this":{"__isSmartRef__":true,"id":14367}},"15256":{},"15257":{"varMapping":{"__isSmartRef__":true,"id":15258},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15259},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15258":{"this":{"__isSmartRef__":true,"id":14367}},"15259":{},"15260":{"varMapping":{"__isSmartRef__":true,"id":15261},"source":"function deleteSelectedScript() {\n if (this.scriptList.selection && this.target) {\n if (!this.target.hasOwnProperty(this.scriptList.selection)) return;\n delete this.target[this.scriptList.selection];\n this.updateLists();\n this.displayInitialScript();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15262},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15261":{"this":{"__isSmartRef__":true,"id":14367}},"15262":{},"15263":{"varMapping":{"__isSmartRef__":true,"id":15264},"source":"function disconnectConnection() {\n var selection = this.connectionList.selection;\n if (selection && \n (typeof selection !== \"string\") &&\n this.target.attributeConnections.indexOf(selection[1]) > -1) {\n var c = this.connectionList.selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n this.updateLists();\n this.displayInitialScript();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":15265},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15264":{"this":{"__isSmartRef__":true,"id":14367}},"15265":{},"15266":{"varMapping":{"__isSmartRef__":true,"id":15267},"source":"function updateLists() {\n this.scriptList.setList(this.sortedScriptNamesOfObj(this.target));\n var scriptListItems = this.scriptList.getList();\n scriptListItems.unshift(\"-- ALL --\");\n this.scriptList.setList(scriptListItems);\n\n this.connectionList.setList(this.sortedConnectionNamesOfObj(this.target));\n var connectionListItems = this.connectionList.getList();\n connectionListItems.unshift(\"-- ALL --\");\n this.connectionList.setList(connectionListItems);\n}","funcProperties":{"__isSmartRef__":true,"id":15268},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15267":{"this":{"__isSmartRef__":true,"id":14367}},"15268":{},"15269":{"varMapping":{"__isSmartRef__":true,"id":15270},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.selectAt(0);\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.selectAt(0);\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15271},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15270":{"this":{"__isSmartRef__":true,"id":14367}},"15271":{},"15272":{"varMapping":{"__isSmartRef__":true,"id":15273},"source":"function reset() {\n this.target = null;\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.connectionList.setList();\n this.scriptPane.setTextString(\"\");\n this.morphSelector.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":15274},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15273":{"this":{"__isSmartRef__":true,"id":14367}},"15274":{},"15275":{"varMapping":{"__isSmartRef__":true,"id":15276},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n var index = this.scriptList.getList().indexOf(addScriptMatches[0]);\n if (index > -1) { \n return this.scriptList.selectAt(index);\n }\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n var c = selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n editor.updateLists();\n editor.displayInitialScript();\n } \n }\n\n var message = 'Disconnect \"' + selection[0] +'\" connection?';\n var callback = disconnectConnection;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":15475},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15474":{"this":{"__isSmartRef__":true,"id":15421}},"15475":{"timestamp":{"__isSmartRef__":true,"id":15476},"user":"lauritz","categories":[]},"15476":{"isSerializedDate":true,"string":"Thu Nov 10 2011 16:46:54 GMT-0800 (PST)"},"15477":{"submorphs":[{"__isSmartRef__":true,"id":15478}],"scripts":[],"id":"2198FA01-A142-4B67-9F1D-77FDAFE2209C","shape":{"__isSmartRef__":true,"id":15493},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15509},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":15496},"lighterFill":{"__isSmartRef__":true,"id":15510},"label":{"__isSmartRef__":true,"id":15478},"attributeConnections":[{"__isSmartRef__":true,"id":15519}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":15521},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":15522},"renderContextTable":{"__isSmartRef__":true,"id":15523},"priorExtent":{"__isSmartRef__":true,"id":15524},"owner":{"__isSmartRef__":true,"id":14349},"eventHandler":{"__isSmartRef__":true,"id":15525},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":14349},"distanceToDragEvent":{"__isSmartRef__":true,"id":15526},"_Rotation":0,"_Scale":1,"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15527},"__LivelyClassName__":"lively.morphic.Button"},"15478":{"submorphs":[],"scripts":[],"id":"3493A06B-F36B-44FA-AA9B-863E87804BEB","shape":{"__isSmartRef__":true,"id":15479},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15485},"textColor":{"__isSmartRef__":true,"id":15482},"owner":{"__isSmartRef__":true,"id":15477},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":15486}],"padding":{"__isSmartRef__":true,"id":15488},"_Padding":{"__isSmartRef__":true,"id":15489},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15490},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":15491},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":15492},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"_Scale":1,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958"],"__LivelyClassName__":"lively.morphic.Text"},"15479":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15480},"_Extent":{"__isSmartRef__":true,"id":15481},"_BorderColor":{"__isSmartRef__":true,"id":15482},"renderContextTable":{"__isSmartRef__":true,"id":15483},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15484},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15480":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15481":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15482":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15483":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15484":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15485":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15486":{"style":{"__isSmartRef__":true,"id":15487},"morph":{"__isSmartRef__":true,"id":15478},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":15478},"storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"15487":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15488":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15489":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15490":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15491":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15492":{"morph":{"__isSmartRef__":true,"id":15478},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15493":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15494},"_Extent":{"__isSmartRef__":true,"id":15495},"_Fill":{"__isSmartRef__":true,"id":15496},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15506},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":15507},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15508},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15494":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15495":{"x":25,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15496":{"stops":[{"__isSmartRef__":true,"id":15497},{"__isSmartRef__":true,"id":15499},{"__isSmartRef__":true,"id":15501},{"__isSmartRef__":true,"id":15503}],"vector":{"__isSmartRef__":true,"id":15505},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15497":{"offset":0,"color":{"__isSmartRef__":true,"id":15498}},"15498":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15499":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15500}},"15500":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15501":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15502}},"15502":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15503":{"offset":1,"color":{"__isSmartRef__":true,"id":15504}},"15504":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15505":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15506":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15507":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15508":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15509":{"x":160,"y":40,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15510":{"stops":[{"__isSmartRef__":true,"id":15511},{"__isSmartRef__":true,"id":15513},{"__isSmartRef__":true,"id":15515},{"__isSmartRef__":true,"id":15517}],"vector":{"__isSmartRef__":true,"id":15505},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15511":{"offset":0,"color":{"__isSmartRef__":true,"id":15512}},"15512":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15513":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15514}},"15514":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15515":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15516}},"15516":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15517":{"offset":1,"color":{"__isSmartRef__":true,"id":15518}},"15518":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15519":{"sourceObj":{"__isSmartRef__":true,"id":15477},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":15477},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":15520},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"15520":{"source":{"__isSmartRef__":true,"id":15477},"target":{"__isSmartRef__":true,"id":15477}},"15521":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15522":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15523":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15524":{"x":30,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15525":{"morph":{"__isSmartRef__":true,"id":15477},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15526":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15527":{"deleteSelectedScript":{"__isSmartRef__":true,"id":15528}},"15528":{"varMapping":{"__isSmartRef__":true,"id":15529},"source":"function deleteSelectedScript() {\n\n var editor = this.objectEditorPane;\n var selection = editor.scriptList.selection;\n\n if (!editor.target || editor.scriptList.getList().size() < 2) \n return; \n\n var deleteScript = function (confirmed) {\n if (!confirmed) return;\n \n if (selection && editor.target) {\n if (!editor.target.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\n editor.updateLists();\n editor.displayInitialScript();\n }\n }\n\n var message = 'Delete \"' + selection + '\" script?';\n var callback = deleteScript;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":15530},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15529":{"this":{"__isSmartRef__":true,"id":15477}},"15530":{"timestamp":{"__isSmartRef__":true,"id":15531},"user":"lauritz"},"15531":{"isSerializedDate":true,"string":"Thu Nov 17 2011 09:12:21 GMT-0800 (PST)"},"15532":{"submorphs":[{"__isSmartRef__":true,"id":15533}],"scripts":[],"id":"CA2AB32C-B042-4FA8-B43B-0864C50770A0","shape":{"__isSmartRef__":true,"id":15548},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15564},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":15551},"lighterFill":{"__isSmartRef__":true,"id":15565},"label":{"__isSmartRef__":true,"id":15533},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":15574},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":15575},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":15576},"eventHandler":{"__isSmartRef__":true,"id":15577},"distanceToDragEvent":{"__isSmartRef__":true,"id":15578},"priorExtent":{"__isSmartRef__":true,"id":15579},"owner":{"__isSmartRef__":true,"id":14349},"textString":"","selection":{"__isSmartRef__":true,"id":15580},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"_Rotation":0,"_Scale":1,"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15597},"__LivelyClassName__":"lively.morphic.Button"},"15533":{"submorphs":[],"scripts":[],"id":"982A11A7-D9EE-448D-948E-1B0857237BE0","shape":{"__isSmartRef__":true,"id":15534},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15540},"textColor":{"__isSmartRef__":true,"id":15537},"owner":{"__isSmartRef__":true,"id":15532},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":15541}],"padding":{"__isSmartRef__":true,"id":15543},"_Padding":{"__isSmartRef__":true,"id":15543},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15544},"attributeConnections":[{"__isSmartRef__":true,"id":15545}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":15546},"eventHandler":{"__isSmartRef__":true,"id":15547},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"_Scale":1,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED"],"__LivelyClassName__":"lively.morphic.Text"},"15534":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15535},"_Extent":{"__isSmartRef__":true,"id":15536},"_BorderColor":{"__isSmartRef__":true,"id":15537},"renderContextTable":{"__isSmartRef__":true,"id":15538},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":15539},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15535":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15536":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15537":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15538":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15539":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"15540":{"x":2,"y":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15541":{"style":{"__isSmartRef__":true,"id":15542},"chunkOwner":{"__isSmartRef__":true,"id":15533},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15542":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15543":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15544":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15545":{"sourceObj":{"__isSmartRef__":true,"id":15533},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":15532},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"15546":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15547":{"morph":{"__isSmartRef__":true,"id":15533},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15548":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15549},"_Extent":{"__isSmartRef__":true,"id":15550},"_Fill":{"__isSmartRef__":true,"id":15551},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15561},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":15562},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15563},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15549":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15550":{"x":220,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15551":{"stops":[{"__isSmartRef__":true,"id":15552},{"__isSmartRef__":true,"id":15554},{"__isSmartRef__":true,"id":15556},{"__isSmartRef__":true,"id":15558}],"vector":{"__isSmartRef__":true,"id":15560},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15552":{"offset":0,"color":{"__isSmartRef__":true,"id":15553}},"15553":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15554":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15555}},"15555":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15556":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15557}},"15557":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15558":{"offset":1,"color":{"__isSmartRef__":true,"id":15559}},"15559":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15560":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15561":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15562":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15563":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15564":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15565":{"stops":[{"__isSmartRef__":true,"id":15566},{"__isSmartRef__":true,"id":15568},{"__isSmartRef__":true,"id":15570},{"__isSmartRef__":true,"id":15572}],"vector":{"__isSmartRef__":true,"id":15560},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15566":{"offset":0,"color":{"__isSmartRef__":true,"id":15567}},"15567":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15568":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15569}},"15569":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15570":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15571}},"15571":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15572":{"offset":1,"color":{"__isSmartRef__":true,"id":15573}},"15573":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15574":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15575":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15576":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15577":{"morph":{"__isSmartRef__":true,"id":15532},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15578":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15579":{"x":220,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15580":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":15581},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15587},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":15588},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":15589},"_TextColor":{"__isSmartRef__":true,"id":15590},"renderContextTable":{"__isSmartRef__":true,"id":15591},"textChunks":[{"__isSmartRef__":true,"id":15592}],"eventHandler":{"__isSmartRef__":true,"id":15594},"priorExtent":{"__isSmartRef__":true,"id":15595},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":580,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[35,35],"priorSelectionRange":[23,23],"charsReplaced":"WIP / Proof of Concept","lastFindLoc":22,"distanceToDragEvent":{"__isSmartRef__":true,"id":15596},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"15581":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15582},"_Extent":{"__isSmartRef__":true,"id":15583},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15584},"renderContextTable":{"__isSmartRef__":true,"id":15585},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15586},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15582":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15583":{"x":580,"y":43,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15584":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15585":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15586":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15587":{"x":37,"y":23,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15588":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15589":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15590":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15591":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15592":{"style":{"__isSmartRef__":true,"id":15593},"chunkOwner":{"__isSmartRef__":true,"id":15580},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"15593":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15594":{"morph":{"__isSmartRef__":true,"id":15580},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15595":{"x":580,"y":43,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15596":{"x":221,"y":-12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15597":{"createListMorph":{"__isSmartRef__":true,"id":15598},"getList":{"__isSmartRef__":true,"id":15602},"removeList":{"__isSmartRef__":true,"id":15606},"reset":{"__isSmartRef__":true,"id":15610},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":15614},"onMouseDown":{"__isSmartRef__":true,"id":15618},"setTargetOfPane":{"__isSmartRef__":true,"id":15626},"setTargetToListSelection":{"__isSmartRef__":true,"id":15630},"onBlur":{"__isSmartRef__":true,"id":15634},"setTarget":{"__isSmartRef__":true,"id":15642},"setTargetOnSelection":{"__isSmartRef__":true,"id":15646}},"15598":{"varMapping":{"__isSmartRef__":true,"id":15599},"source":"function createListMorph() {\n var items = this.getList();\n \n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n\n connect(listMorph, 'selection', this, 'setTargetToListSelection');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":15600},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15599":{"this":{"__isSmartRef__":true,"id":15532}},"15600":{"timestamp":{"__isSmartRef__":true,"id":15601},"user":"lauritz","tags":[]},"15601":{"isSerializedDate":true,"string":"Tue Dec 13 2011 09:55:41 GMT-0800 (PST)"},"15602":{"varMapping":{"__isSmartRef__":true,"id":15603},"source":"function getList() {\n var worldEntry = {\n isListItem: true,\n selectionString: 'World',\n string: 'World',\n value: this.world()\n };\n var list = this.world().indentedListItemsOfMorphNames();\n list.unshift(worldEntry);\n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":15604},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15603":{"this":{"__isSmartRef__":true,"id":15532}},"15604":{"timestamp":{"__isSmartRef__":true,"id":15605},"user":"lauritz","tags":[]},"15605":{"isSerializedDate":true,"string":"Mon Nov 21 2011 14:12:23 GMT-0800 (PST)"},"15606":{"varMapping":{"__isSmartRef__":true,"id":15607},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15608},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15607":{"this":{"__isSmartRef__":true,"id":15532}},"15608":{"timestamp":{"__isSmartRef__":true,"id":15609},"user":"lauritz","tags":[]},"15609":{"isSerializedDate":true,"string":"Tue Dec 06 2011 20:51:07 GMT-0800 (PST)"},"15610":{"varMapping":{"__isSmartRef__":true,"id":15611},"source":"function reset() {\n this.list = [];\n this.setLabel('empty');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":15612},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15611":{"this":{"__isSmartRef__":true,"id":15532}},"15612":{"timestamp":{"__isSmartRef__":true,"id":15613},"user":"lauritz","tags":[]},"15613":{"isSerializedDate":true,"string":"Tue Dec 06 2011 20:34:06 GMT-0800 (PST)"},"15614":{"varMapping":{"__isSmartRef__":true,"id":15615},"source":"function displayTopLevelMorphs() {\n var list = this.createListMorph(); \n if (this.getList().length === 0) return;\n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":15616},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15615":{"this":{"__isSmartRef__":true,"id":15532}},"15616":{"timestamp":{"__isSmartRef__":true,"id":15617},"user":"lauritz","tags":[]},"15617":{"isSerializedDate":true,"string":"Tue Dec 13 2011 09:53:20 GMT-0800 (PST)"},"15618":{"varMapping":{"__isSmartRef__":true,"id":15619},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n // clicked on morph, not the list, not the list's scrollbar\n if (evt.target === this.renderContext().shapeNode)\n this.removeList();\n } else {\n this.displayTopLevelMorphs();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15624},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15619":{"this":{"__isSmartRef__":true,"id":15532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15620}},"15620":{"$super":{"__isSmartRef__":true,"id":15621}},"15621":{"varMapping":{"__isSmartRef__":true,"id":15622},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15623},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15622":{"obj":{"__isSmartRef__":true,"id":15532},"name":"onMouseDown"},"15623":{},"15624":{"timestamp":{"__isSmartRef__":true,"id":15625},"user":"lauritz","tags":[]},"15625":{"isSerializedDate":true,"string":"Tue Dec 06 2011 20:30:39 GMT-0800 (PST)"},"15626":{"varMapping":{"__isSmartRef__":true,"id":15627},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":15628},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15627":{"this":{"__isSmartRef__":true,"id":15532}},"15628":{"timestamp":{"__isSmartRef__":true,"id":15629},"user":"lauritz","tags":[]},"15629":{"isSerializedDate":true,"string":"Tue Dec 06 2011 19:30:42 GMT-0800 (PST)"},"15630":{"varMapping":{"__isSmartRef__":true,"id":15631},"source":"function setTargetToListSelection() { \n var selection = this.listMorph.selection;\n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15632},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15631":{"this":{"__isSmartRef__":true,"id":15532}},"15632":{"timestamp":{"__isSmartRef__":true,"id":15633},"user":"lauritz","tags":[]},"15633":{"isSerializedDate":true,"string":"Tue Dec 06 2011 21:06:48 GMT-0800 (PST)"},"15634":{"varMapping":{"__isSmartRef__":true,"id":15635},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15640},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15635":{"this":{"__isSmartRef__":true,"id":15532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15636}},"15636":{"$super":{"__isSmartRef__":true,"id":15637}},"15637":{"varMapping":{"__isSmartRef__":true,"id":15638},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15639},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15638":{"obj":{"__isSmartRef__":true,"id":15532},"name":"onBlur"},"15639":{},"15640":{"timestamp":{"__isSmartRef__":true,"id":15641},"user":"lauritz","tags":[]},"15641":{"isSerializedDate":true,"string":"Tue Dec 06 2011 20:30:08 GMT-0800 (PST)"},"15642":{"varMapping":{"__isSmartRef__":true,"id":15643},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":15644},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15643":{"this":{"__isSmartRef__":true,"id":15532}},"15644":{"timestamp":{"__isSmartRef__":true,"id":15645},"user":"lauritz","tags":[]},"15645":{"isSerializedDate":true,"string":"Tue Dec 06 2011 19:29:39 GMT-0800 (PST)"},"15646":{"varMapping":{"__isSmartRef__":true,"id":15647},"source":"function setTargetOnSelection() {\n if (this.listMorph && this.listMorph.renderContext() && this.listMorph.renderContext().listNode.value) {\n this.setTargetToListSelection();\n this.stopStepping();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15648},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15647":{"this":{"__isSmartRef__":true,"id":15532}},"15648":{"timestamp":{"__isSmartRef__":true,"id":15649},"user":"lauritz","tags":[]},"15649":{"isSerializedDate":true,"string":"Tue Dec 06 2011 21:12:06 GMT-0800 (PST)"},"15650":{"submorphs":[],"scripts":[],"id":"1DA26308-4948-4F1C-8551-866C341C3A31","shape":{"__isSmartRef__":true,"id":15651},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15657},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":15654},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":15658},"textChunks":[{"__isSmartRef__":true,"id":15659}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15661},"renderContextTable":{"__isSmartRef__":true,"id":15662},"eventHandler":{"__isSmartRef__":true,"id":15663},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":15664},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":14349},"isCopyMorphRef":true,"morphRefId":27,"_Rotation":0,"_Scale":1,"derivationIds":[223,"5E3A69EF-26C1-4D0D-B04C-8C3894017F56"],"__LivelyClassName__":"lively.morphic.Text"},"15651":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15652},"_Extent":{"__isSmartRef__":true,"id":15653},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15654},"renderContextTable":{"__isSmartRef__":true,"id":15655},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15656},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15652":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15653":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15654":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15655":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15656":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15657":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15658":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15659":{"style":{"__isSmartRef__":true,"id":15660},"chunkOwner":{"__isSmartRef__":true,"id":15650},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"15660":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15661":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15662":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15663":{"morph":{"__isSmartRef__":true,"id":15650},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15664":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15665":{"submorphs":[],"scripts":[],"id":"985FADEF-E893-4819-87CF-9E15D521D8FD","shape":{"__isSmartRef__":true,"id":15666},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15672},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":15669},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":15673},"textChunks":[{"__isSmartRef__":true,"id":15674}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15676},"renderContextTable":{"__isSmartRef__":true,"id":15677},"eventHandler":{"__isSmartRef__":true,"id":15678},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":15679},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":14349},"_Rotation":0,"_Scale":1,"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340"],"__LivelyClassName__":"lively.morphic.Text"},"15666":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15667},"_Extent":{"__isSmartRef__":true,"id":15668},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15669},"renderContextTable":{"__isSmartRef__":true,"id":15670},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15671},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15667":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15668":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15669":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15670":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15671":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15672":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15673":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15674":{"style":{"__isSmartRef__":true,"id":15675},"chunkOwner":{"__isSmartRef__":true,"id":15665},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"15675":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15676":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15677":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15678":{"morph":{"__isSmartRef__":true,"id":15665},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15679":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15680":{"submorphs":[{"__isSmartRef__":true,"id":15681}],"scripts":[],"id":"C81E5C1A-6F04-4484-A29F-7C3FE272FBBD","shape":{"__isSmartRef__":true,"id":15696},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15712},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":15713},"lighterFill":{"__isSmartRef__":true,"id":15699},"label":{"__isSmartRef__":true,"id":15681},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":15722},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":15723},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":15724},"eventHandler":{"__isSmartRef__":true,"id":15725},"distanceToDragEvent":{"__isSmartRef__":true,"id":15726},"priorExtent":{"__isSmartRef__":true,"id":15727},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":14349},"setTargetToListSelection":"all","savedTextString":"all","_Rotation":0,"_Scale":1,"derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15728},"__LivelyClassName__":"lively.morphic.Button"},"15681":{"submorphs":[],"scripts":[],"id":"AB5130DB-E92A-46FC-B510-4CD056AD7FDB","shape":{"__isSmartRef__":true,"id":15682},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15688},"textColor":{"__isSmartRef__":true,"id":15685},"owner":{"__isSmartRef__":true,"id":15680},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":15689}],"padding":{"__isSmartRef__":true,"id":15691},"_Padding":{"__isSmartRef__":true,"id":15691},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15692},"attributeConnections":[{"__isSmartRef__":true,"id":15693}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":15694},"eventHandler":{"__isSmartRef__":true,"id":15695},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"_Scale":1,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015"],"__LivelyClassName__":"lively.morphic.Text"},"15682":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15683},"_Extent":{"__isSmartRef__":true,"id":15684},"_BorderColor":{"__isSmartRef__":true,"id":15685},"renderContextTable":{"__isSmartRef__":true,"id":15686},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":15687},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15683":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15684":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15685":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15686":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15687":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"15688":{"x":2,"y":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15689":{"style":{"__isSmartRef__":true,"id":15690},"chunkOwner":{"__isSmartRef__":true,"id":15681},"storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15690":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15691":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15692":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15693":{"sourceObj":{"__isSmartRef__":true,"id":15681},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":15680},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"15694":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"15695":{"morph":{"__isSmartRef__":true,"id":15681},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15696":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15697},"_Extent":{"__isSmartRef__":true,"id":15698},"_Fill":{"__isSmartRef__":true,"id":15699},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15709},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":15710},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15711},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15697":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15698":{"x":130,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15699":{"stops":[{"__isSmartRef__":true,"id":15700},{"__isSmartRef__":true,"id":15702},{"__isSmartRef__":true,"id":15704},{"__isSmartRef__":true,"id":15706}],"vector":{"__isSmartRef__":true,"id":15708},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15700":{"offset":0,"color":{"__isSmartRef__":true,"id":15701}},"15701":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15702":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15703}},"15703":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15704":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15705}},"15705":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15706":{"offset":1,"color":{"__isSmartRef__":true,"id":15707}},"15707":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15708":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15709":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15710":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15711":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15712":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15713":{"stops":[{"__isSmartRef__":true,"id":15714},{"__isSmartRef__":true,"id":15716},{"__isSmartRef__":true,"id":15718},{"__isSmartRef__":true,"id":15720}],"vector":{"__isSmartRef__":true,"id":15708},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"15714":{"offset":0,"color":{"__isSmartRef__":true,"id":15715}},"15715":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15716":{"offset":0.4,"color":{"__isSmartRef__":true,"id":15717}},"15717":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15718":{"offset":0.6,"color":{"__isSmartRef__":true,"id":15719}},"15719":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15720":{"offset":1,"color":{"__isSmartRef__":true,"id":15721}},"15721":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15722":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15723":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15724":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15725":{"morph":{"__isSmartRef__":true,"id":15680},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15726":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15727":{"x":130,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15728":{"createListMorph":{"__isSmartRef__":true,"id":15729},"getList":{"__isSmartRef__":true,"id":15733},"removeList":{"__isSmartRef__":true,"id":15737},"reset":{"__isSmartRef__":true,"id":15741},"onMouseUp":{"__isSmartRef__":true,"id":15745},"onBlur":{"__isSmartRef__":true,"id":15753},"setTag":{"__isSmartRef__":true,"id":15761}},"15729":{"varMapping":{"__isSmartRef__":true,"id":15730},"source":"function createListMorph() {\n var items = this.getList();\n\n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n \n connect(listMorph, 'selection', this, 'setTag');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":15731},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15730":{"this":{"__isSmartRef__":true,"id":15680}},"15731":{"timestamp":{"__isSmartRef__":true,"id":15732},"user":"lauritz","categories":[]},"15732":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:35:59 GMT-0800 (PST)"},"15733":{"varMapping":{"__isSmartRef__":true,"id":15734},"source":"function getList() {\n if (!this.owner.target) return [''];\n\n var target = this.owner.target;\n\n var tags = Functions.own(target).collect(function (each) {\n return target[each].tags || [];\n }).flatten().uniq();\n\n var sortedTags = tags.sortBy(function(name) { \n return name.toLowerCase() \n });\n \n sortedTags.unshift('all'); \n return sortedTags;\n}","funcProperties":{"__isSmartRef__":true,"id":15735},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15734":{"this":{"__isSmartRef__":true,"id":15680}},"15735":{"timestamp":{"__isSmartRef__":true,"id":15736},"user":"lauritz","tags":[]},"15736":{"isSerializedDate":true,"string":"Fri Dec 16 2011 11:27:25 GMT-0800 (PST)"},"15737":{"varMapping":{"__isSmartRef__":true,"id":15738},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15739},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15738":{"this":{"__isSmartRef__":true,"id":15680}},"15739":{"timestamp":{"__isSmartRef__":true,"id":15740},"user":"lauritz","categories":[]},"15740":{"isSerializedDate":true,"string":"Thu Nov 17 2011 10:06:51 GMT-0800 (PST)"},"15741":{"varMapping":{"__isSmartRef__":true,"id":15742},"source":"function reset() {\n this.list = [];\n this.setLabel('all');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":15743},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15742":{"this":{"__isSmartRef__":true,"id":15680}},"15743":{"timestamp":{"__isSmartRef__":true,"id":15744},"user":"lauritz","tags":[]},"15744":{"isSerializedDate":true,"string":"Fri Dec 16 2011 11:27:53 GMT-0800 (PST)"},"15745":{"varMapping":{"__isSmartRef__":true,"id":15746},"source":"function onMouseUp(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n return true;\n } \n if (this.getList().size() < 2) return;\n var list = this.createListMorph();\n this.addMorph(list);\n this.listMorph = list;\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":15751},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15746":{"this":{"__isSmartRef__":true,"id":15680},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15747}},"15747":{"$super":{"__isSmartRef__":true,"id":15748}},"15748":{"varMapping":{"__isSmartRef__":true,"id":15749},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15750},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15749":{"obj":{"__isSmartRef__":true,"id":15680},"name":"onMouseUp"},"15750":{},"15751":{"timestamp":{"__isSmartRef__":true,"id":15752},"user":"lauritz","categories":[]},"15752":{"isSerializedDate":true,"string":"Thu Nov 17 2011 09:59:16 GMT-0800 (PST)"},"15753":{"varMapping":{"__isSmartRef__":true,"id":15754},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15759},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15754":{"this":{"__isSmartRef__":true,"id":15680},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15755}},"15755":{"$super":{"__isSmartRef__":true,"id":15756}},"15756":{"varMapping":{"__isSmartRef__":true,"id":15757},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15758},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15757":{"obj":{"__isSmartRef__":true,"id":15680},"name":"onBlur"},"15758":{},"15759":{"timestamp":{"__isSmartRef__":true,"id":15760},"user":"lauritz","categories":[]},"15760":{"isSerializedDate":true,"string":"Mon Nov 21 2011 14:10:03 GMT-0800 (PST)"},"15761":{"varMapping":{"__isSmartRef__":true,"id":15762},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":15763},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15762":{"this":{"__isSmartRef__":true,"id":15680}},"15763":{"timestamp":{"__isSmartRef__":true,"id":15764},"user":"lauritz","categories":[]},"15764":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:36:12 GMT-0800 (PST)"},"15765":{"target":{"__isSmartRef__":true,"id":14349},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":9813,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"15766":{"position":{"__isSmartRef__":true,"id":15767},"_Extent":{"__isSmartRef__":true,"id":15768},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15769},"_Fill":{"__isSmartRef__":true,"id":15770},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":15771},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15772},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15767":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15768":{"x":925.0285365288845,"y":343.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15769":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"15770":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"15771":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"15772":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15773":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15774":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":15775}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15775":{"date":{"__isSmartRef__":true,"id":15776},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"15776":{"isSerializedDate":true,"string":"Thu Oct 20 2011 15:39:30 GMT-0700 (PDT)"},"15777":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15778":{"morph":{"__isSmartRef__":true,"id":14349},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15779":{"x":925.0285365288845,"y":343.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"15780":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"15781":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"15782":{"displayInitialScript":{"__isSmartRef__":true,"id":15783},"displayJavaScriptSource":{"__isSmartRef__":true,"id":15787},"displaySourceForConnection":{"__isSmartRef__":true,"id":15791},"displaySourceForScript":{"__isSmartRef__":true,"id":15795},"generateSourceForConnection":{"__isSmartRef__":true,"id":15799},"generateSourceForScript":{"__isSmartRef__":true,"id":15803},"generateTargetCode":{"__isSmartRef__":true,"id":15807},"newConnection":{"__isSmartRef__":true,"id":15811},"newScript":{"__isSmartRef__":true,"id":15815},"reset":{"__isSmartRef__":true,"id":15819},"selectChangedContent":{"__isSmartRef__":true,"id":15823},"setTarget":{"__isSmartRef__":true,"id":15827},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":15831},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":15835},"updateLists":{"__isSmartRef__":true,"id":15839},"onShutdown":{"__isSmartRef__":true,"id":15843},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":15847},"update":{"__isSmartRef__":true,"id":15851},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":15855},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":15859},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":15863},"printTags":{"__isSmartRef__":true,"id":15871},"setTag":{"__isSmartRef__":true,"id":15875}},"15783":{"varMapping":{"__isSmartRef__":true,"id":15784},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15785},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15784":{"this":{"__isSmartRef__":true,"id":14349}},"15785":{"timestamp":{"__isSmartRef__":true,"id":15786},"user":"lauritz","tags":[]},"15786":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:13:43 GMT-0800 (PST)"},"15787":{"varMapping":{"__isSmartRef__":true,"id":15788},"source":"function displayJavaScriptSource(jsCode) {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n var callback = function(confirmed) {\n if (confirmed) that.scriptPane.display(jsCode)\n };\n this.confirmUnsavedChanges(callback);\n } else {\n this.scriptPane.display(jsCode);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15789},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15788":{"this":{"__isSmartRef__":true,"id":14349}},"15789":{"timestamp":{"__isSmartRef__":true,"id":15790},"user":"lauritz","tags":[]},"15790":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:59:26 GMT-0800 (PST)"},"15791":{"varMapping":{"__isSmartRef__":true,"id":15792},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":15793},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15792":{"this":{"__isSmartRef__":true,"id":14349}},"15793":{"timestamp":{"__isSmartRef__":true,"id":15794},"user":"lauritz","tags":[]},"15794":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:52:36 GMT-0800 (PST)"},"15795":{"varMapping":{"__isSmartRef__":true,"id":15796},"source":"function displaySourceForScript(scriptName) {\n var code = \"\",\n that = this;\n if (scriptName === null) {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":15797},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15796":{"this":{"__isSmartRef__":true,"id":14349}},"15797":{"timestamp":{"__isSmartRef__":true,"id":15798},"user":"lauritz","tags":[]},"15798":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:51:37 GMT-0800 (PST)"},"15799":{"varMapping":{"__isSmartRef__":true,"id":15800},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":15801},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15800":{"this":{"__isSmartRef__":true,"id":14349}},"15801":{"timestamp":{"__isSmartRef__":true,"id":15802},"user":"lauritz","tags":[]},"15802":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:59:26 GMT-0800 (PST)"},"15803":{"varMapping":{"__isSmartRef__":true,"id":15804},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\n\n if (script.timestamp && script.user) \n annotation = Strings.format('// changed at %s by %s \\n', script.timestamp, script.user);\n scriptSource = Strings.format('this.addScript(%s)', script.getOriginal());\n tagScript = Strings.format('.tag(%s);', this.printTags(script));\n\n return annotation + scriptSource + tagScript;\n}","funcProperties":{"__isSmartRef__":true,"id":15805},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15804":{"this":{"__isSmartRef__":true,"id":14349}},"15805":{"timestamp":{"__isSmartRef__":true,"id":15806},"user":"lauritz","tags":[]},"15806":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:32:42 GMT-0800 (PST)"},"15807":{"varMapping":{"__isSmartRef__":true,"id":15808},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":15809},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15808":{"this":{"__isSmartRef__":true,"id":14349}},"15809":{"timestamp":{"__isSmartRef__":true,"id":15810},"user":"lauritz","tags":[]},"15810":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:59:26 GMT-0800 (PST)"},"15811":{"varMapping":{"__isSmartRef__":true,"id":15812},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15813},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15812":{"this":{"__isSmartRef__":true,"id":14349}},"15813":{"timestamp":{"__isSmartRef__":true,"id":15814},"user":"lauritz","tags":[]},"15814":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:59:26 GMT-0800 (PST)"},"15815":{"varMapping":{"__isSmartRef__":true,"id":15816},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15817},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15816":{"this":{"__isSmartRef__":true,"id":14349}},"15817":{"timestamp":{"__isSmartRef__":true,"id":15818},"user":"lauritz","tags":[]},"15818":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:24:25 GMT-0800 (PST)"},"15819":{"varMapping":{"__isSmartRef__":true,"id":15820},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.connectionList.setList();\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":15821},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"15820":{"this":{"__isSmartRef__":true,"id":14349}},"15821":{"timestamp":{"__isSmartRef__":true,"id":15822},"user":"lauritz","tags":[]},"15822":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:37:05 GMT-0800 (PST)"},"15823":{"varMapping":{"__isSmartRef__":true,"id":15824},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i